add resolution to FPS display
GitOrigin-RevId: c414668d0521f78965bcdb6559782bd99b6a7da2
This commit is contained in:
parent
0d7af3edbe
commit
523d1b519d
@ -93,7 +93,8 @@ namespace Jumpy {
|
||||
Rectangle drawRect = new Rectangle(
|
||||
0, 0, GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height);
|
||||
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.End();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user