Browse Source

set vsync = true; setting it false seems to cause crashes on UWP

GitOrigin-RevId: 6f30cefcaa
master
Colin McMillen 4 years ago
parent
commit
8c6b0e3c92
  1. 3
      Shared/SneakGame.cs

3
Shared/SneakGame.cs

@ -28,7 +28,8 @@ namespace SemiColinGames {
public SneakGame() {
graphics = new GraphicsDeviceManager(this) {
SynchronizeWithVerticalRetrace = false
SynchronizeWithVerticalRetrace = true,
GraphicsProfile = GraphicsProfile.HiDef
};
IsFixedTimeStep = true;
TargetElapsedTime = TimeSpan.FromSeconds(1.0 / 60);

Loading…
Cancel
Save