From 1ea4d6c39bcd95167a389ec8049a1af003910f36 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Fri, 24 Jan 2020 19:57:07 -0500 Subject: [PATCH] don't vsync; set target FPS to 120-ish GitOrigin-RevId: 724e876b9ad97f515919cb150ef7be164d096367 --- Shared/SneakGame.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Shared/SneakGame.cs b/Shared/SneakGame.cs index 25dba68..94d2001 100644 --- a/Shared/SneakGame.cs +++ b/Shared/SneakGame.cs @@ -28,6 +28,9 @@ namespace SemiColinGames { public SneakGame() { graphics = new GraphicsDeviceManager(this); + graphics.SynchronizeWithVerticalRetrace = false; + IsFixedTimeStep = true; + TargetElapsedTime = TimeSpan.FromSeconds(1.0 / 120); IsMouseVisible = true; Content.RootDirectory = "Content"; }