_time CreateScenes

This commit is contained in:
2023-05-21 20:22:27 +03:00
parent 19b5da4338
commit 07c34fa70b

View File

@@ -2,6 +2,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using FlaxEngine;
@@ -101,6 +102,7 @@ namespace FlaxEditor.Utilities
Editor.Log("Creating scenes");
Stopwatch sw = Stopwatch.StartNew();
// Deserialize new scenes
int scenesCount = _scenesData.Count;
for (int i = 0; i < scenesCount; i++)
@@ -113,6 +115,9 @@ namespace FlaxEditor.Utilities
throw new Exception("Failed to deserialize scene");
}
}
sw.Stop();
Editor.Log("Creating scenes time: " + sw.Elapsed.TotalMilliseconds + "ms");
Profiler.EndEvent();
}