public void EndSample() { if (_sample != null) { Game.Components.Remove(_sample); _sample.Dispose(); _sample = null; Profiler.ClearAll(); ResourcePool.ClearAll(); GC.Collect(); } }
private void EndSample() { if (_sample != null) { _game.Components.Remove(_sample); _sample.Dispose(); _sample = null; ResetOptions(); Profiler.ClearAll(); ResourcePool.ClearAll(); GC.Collect(); } }