added benchmark function

added .txt for benchmark results
fixed generating level message
This commit is contained in:
2024-10-27 14:08:19 +01:00
parent bb2f498ac5
commit 34aee98a6a
4 changed files with 35 additions and 3 deletions

View File

@@ -51,6 +51,10 @@ public partial class Main : Node2D {
mLevel.WritePixel<Dirt>((int)mappedX, (int)mappedY, BrushSize);
}
} else base._UnhandledInput(@event);
} else if (@event is InputEventKey keyEvent && keyEvent.Pressed) {
if (keyEvent.Keycode == Key.F9)
mLevel.StartBenchmark();
}
else base._UnhandledInput(@event);
}
}