From 523d1b519d9b242df101154bb78a6af37785033d Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Sun, 8 Dec 2019 21:38:05 -0500 Subject: [PATCH] add resolution to FPS display GitOrigin-RevId: c414668d0521f78965bcdb6559782bd99b6a7da2 --- Jumpy.Shared/JumpyGame.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jumpy.Shared/JumpyGame.cs b/Jumpy.Shared/JumpyGame.cs index 107020e..d5333b3 100644 --- a/Jumpy.Shared/JumpyGame.cs +++ b/Jumpy.Shared/JumpyGame.cs @@ -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();