mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-25 15:47:26 -05:00
Added Stopwatch timer to measure overall prefab import time.
This commit is contained in:
parent
5f5b3be5d2
commit
69bf34b7d7
|
|
@ -63,6 +63,9 @@ namespace VRM
|
|||
return;
|
||||
}
|
||||
|
||||
System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch();
|
||||
sw.Start();
|
||||
|
||||
/// <summary>
|
||||
/// これは EditorApplication.delayCall により呼び出される。
|
||||
///
|
||||
|
|
@ -91,6 +94,9 @@ namespace VRM
|
|||
editor.SaveAsAsset(loaded);
|
||||
}
|
||||
|
||||
sw.Stop();
|
||||
|
||||
Debug.Log($"Import complete [importMs={sw.ElapsedMilliseconds}]");
|
||||
};
|
||||
|
||||
using (var data = new GlbFileParser(vrmPath).Parse())
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user