_time CreateScenes
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user