protected override void Update(GameTime gameTime) { PerformanceManager.StartStopwatch(PerformanceStopwatchType.GlobalFrame); PerformanceManager.StartStopwatch(PerformanceStopwatchType.GlobalUpdate); HandleKeyboardInputs(); base.Update(gameTime); if (Pause && !_computeNextFrame) { return; } MusicManager.Update(gameTime); Camera.Update(gameTime); ScreenManager.Update(gameTime); GuiManager.Update(gameTime); SpriteBatchManager.Update(gameTime); GameManager.Update(gameTime); PerformanceManager.StartStopwatch(PerformanceStopwatchType.PerformanceManagerUpdate); PerformanceManager.Update(gameTime); PerformanceManager.StopStopwatch(PerformanceStopwatchType.PerformanceManagerUpdate); PerformanceManager.StopStopwatch(PerformanceStopwatchType.GlobalUpdate); }