//[CallOnThread("Updater")] public void Update() { Profiler.Start(); try { watchdogToken.Ping(); CurrentFrame.Clear(); foreach (GameComponent component in GameComponents) { if (component.Enabled) { component.Update(gameTime); } } if (game.State != null) { game.State.Update(CurrentFrame, gameTime.TotalGameTime.TotalSeconds, gameTime); CurrentFrame.Sort(); } } finally { Profiler.Stop(); } }
//[CallOnThread("Updater")] public void Update() { Profiler.Start(); try { WatchdogToken.Ping(); CurrentFrame.Clear(); Game.State.Update(CurrentFrame, TotalRealSeconds); CurrentFrame.Sort(); } finally { Profiler.Stop(); } }