Profiling for starting play mode, fixed unnecessary font loading

This commit is contained in:
Simon Lübeß
2025-07-30 19:00:22 +02:00
parent ed644b5b41
commit c01ccf571e
3 changed files with 28 additions and 2 deletions
+2
View File
@@ -837,6 +837,8 @@ namespace GlitchyEditor
/// Starts the play mode for the current scene
private void OnScenePlay()
{
Debug.Profiler.ProfileFunction!();
Log.EngineLogger.AssertDebug(_scriptSerializer.SerializedObjectCount == 0, "Somehow some entities are serialized.");
if (Application.Instance.Settings.EditorSettings.ClearLogOnPlay)