/// <summary> /// Disables the profiling system drawing. /// </summary> public void DisableProfiling() { Enabled = false; Visible = false; Profiler.DisableAll(); gcProfiler.Disable(); }
/// <summary> /// Disables the profiling system drawing. /// </summary> public void DisableProfiling() { Enabled = false; Visible = false; // Restore previous PresentInterval state GraphicsDevice.Presenter.PresentInterval = userPresentInterval; userPresentInterval = PresentInterval.Default; Profiler.DisableAll(); gcProfiler.Disable(); }