protected override void Draw(GameTime gameTime) { if (IsMinimized) { return; } SpriteBatch3D.ResetZ(); GraphicsDevice.Clear(Color.Black); ActiveModel.GetView() .Draw(gameTime.ElapsedGameTime.TotalMilliseconds); UserInterface.Draw(gameTime.ElapsedGameTime.TotalMilliseconds); EngineVars.UpdateFPS(gameTime.ElapsedGameTime.TotalMilliseconds); Window.Title = Settings.Debug.ShowFps ? string.Format("UltimaXNA FPS:{0}", EngineVars.UpdateFPS(gameTime.ElapsedGameTime.TotalMilliseconds)) : "UltimaXNA"; }