Use [ and ] to decrease and increase the UpdateFrame frequency.
Use < and > to decrease and increase the RenderFrame frequency.
case Key.V:
VSync = VSync == VSyncMode.On ? VSyncMode.Off : VSyncMode.On;
break;
+
+ case Key.BracketLeft: TargetUpdateFrequency--; break;
+ case Key.BracketRight: TargetUpdateFrequency++; break;
+ case Key.Comma: TargetRenderFrequency--; break;
+ case Key.Period: TargetRenderFrequency++; break;
}
}
using (GameWindowStates ex = new GameWindowStates())
{
Utilities.SetWindowTitle(ex);
- ex.Run(30.0);
+ ex.Run(30.0);
}
}
}