|
@ -93,7 +93,8 @@ namespace Jumpy { |
|
|
Rectangle drawRect = new Rectangle( |
|
|
Rectangle drawRect = new Rectangle( |
|
|
0, 0, GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height); |
|
|
0, 0, GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height); |
|
|
spriteBatch.Draw(renderTarget, drawRect, Color.White); |
|
|
spriteBatch.Draw(renderTarget, drawRect, Color.White); |
|
|
string fpsText = $"FPS: {fpsCounter.Fps:F1}"; |
|
|
|
|
|
|
|
|
string fpsText = $"{GraphicsDevice.Viewport.Width}x{GraphicsDevice.Viewport.Height}, " + |
|
|
|
|
|
$"{fpsCounter.Fps:F1} FPS"; |
|
|
spriteBatch.DrawString(font, fpsText, new Vector2(10, 10), Color.White); |
|
|
spriteBatch.DrawString(font, fpsText, new Vector2(10, 10), Color.White); |
|
|
spriteBatch.End(); |
|
|
spriteBatch.End(); |
|
|
|
|
|
|
|
|