Exemple #1
0
        protected override void Draw(GameTime gameTime)
        {
            debugDrawTimeStopwatch.Start();
            GraphicsDevice.Clear(Color.Black);
            ScreenController.activeScreen.Draw(DisplayController.spriteBatch);
            base.Draw(gameTime);
            EngineController.AddDrawFrame();

            debugDrawTimeStopwatch.Stop();
            EngineController.drawTime = debugDrawTimeStopwatch.ElapsedTicks;
            debugDrawTimeStopwatch.Reset();
        }