Ejemplo n.º 1
0
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);

            base.Draw(gameTime);

            _graphCanvas.Draw(gameTime);

            _spriteBatch.Begin();
            _spriteBatch.DrawString(_usedSkin.Font, $"FPS: {_fpsCounter.FramesPerSecond:F1}\nMin: {_minFps}\nMax: {_maxFps:F1}",
                                    new Vector2(_settings.WindowWidth - 80, _settings.WindowHeight - 18 * 3), Color.Red);
            _spriteBatch.End();
        }