private void OnGarbageCollectedStart() { base.enabled = true; Application.runInBackground = true; Application.targetFrameRate = 30; Service.Engine = this; this.InitLogger(); long monoUsedSizeLong = Profiler.GetMonoUsedSizeLong(); long monoHeapSizeLong = Profiler.GetMonoHeapSizeLong(); Service.Logger.DebugFormat("Managed memory on load: {0:F1}MB/{1:F1}MB", new object[] { (float)monoUsedSizeLong / 1048576f, (float)monoHeapSizeLong / 1048576f }); this.reloadWait = false; this.inputManager = new TouchManager(); this.simTimeEngine = new SimTimeEngine(33u); this.viewTimeEngine = new ViewTimeEngine(0.033f); new MainController(); }
private void OnGarbageCollectedStart() { this.CleanupBundles(); Application.runInBackground = true; Application.targetFrameRate = 30; Service.Set <Engine>(this); this.InitLogger(); uint monoUsedSize = Profiler.GetMonoUsedSize(); uint monoHeapSize = Profiler.GetMonoHeapSize(); Service.Get <StaRTSLogger>().DebugFormat("Managed memory on load: {0:F1}MB/{1:F1}MB", new object[] { monoUsedSize / 1048576f, monoHeapSize / 1048576f }); this.reloadWait = false; this.inputManager = new InputManager(); this.simTimeEngine = new SimTimeEngine(33u); this.viewTimeEngine = new ViewTimeEngine(0.033f); new MainController(); base.enabled = true; }