We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9dc78c commit cfa8860Copy full SHA for cfa8860
Assembly-CSharp/Preloader.cs
@@ -1,6 +1,7 @@
1
using System;
2
using System.Collections;
3
using System.Collections.Generic;
4
+using System.Diagnostics;
5
using System.IO;
6
using System.Linq;
7
using System.Threading.Tasks;
@@ -27,6 +28,7 @@ public IEnumerator Preload
27
28
Dictionary<string, List<Func<IEnumerator>>> sceneHooks
29
)
30
{
31
+ var stopwatch = Stopwatch.StartNew();
32
MuteAllAudio();
33
34
Logger.APILogger.Log($"Preloading using mode {ModHooks.GlobalSettings.PreloadMode}");
@@ -48,6 +50,7 @@ Dictionary<string, List<Func<IEnumerator>>> sceneHooks
48
50
yield return CleanUpPreloading();
49
51
52
UnmuteAllAudio();
53
+ Logger.APILogger.LogError($"Finished preloading in {stopwatch.ElapsedMilliseconds/1000:F2}s");
54
}
55
56
/// <summary>
0 commit comments