Improve performance for prehandling by disabling rendering.
This commit is contained in:
@@ -504,6 +504,7 @@ namespace Cryville.Crtr {
|
||||
Game.AudioSequencer.SeekTime(startOffset, SeekOrigin.Current);
|
||||
Logger.Log("main", 0, "Load/Prehandle", "Cleaning up"); yield return .95f;
|
||||
if (logEnabled && Settings.Default.HideLogOnPlay) ToggleLogs();
|
||||
Camera.main.cullingMask |= 1;
|
||||
GC.Collect();
|
||||
if (disableGC) GarbageCollector.GCMode = GarbageCollector.Mode.Disabled;
|
||||
timer.Stop();
|
||||
@@ -525,6 +526,7 @@ namespace Cryville.Crtr {
|
||||
Logger.Log("main", 1, "Game", "Stopping");
|
||||
Game.AudioClient.Start();
|
||||
Game.AudioSession = Game.AudioSequencer.NewSession();
|
||||
Camera.main.cullingMask &= ~1;
|
||||
inputProxy.Deactivate();
|
||||
inputProxy = null;
|
||||
judge = null;
|
||||
|
Reference in New Issue
Block a user