Beispiel #1
0
        /// <summary>
        /// Disables the profiling system drawing.
        /// </summary>
        public void DisableProfiling()
        {
            Enabled = false;
            Visible = false;

            Profiler.DisableAll();
            gcProfiler.Disable();
        }
Beispiel #2
0
        /// <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();
        }