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

GitOrigin-RevId: 6f30cefcaa6c61fb0fc3b20eada333db79f4c480
This commit is contained in:
Colin McMillen 2020-01-26 22:50:14 -05:00
parent 95acee959d
commit 8c6b0e3c92

View File

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