I recently changed my game to run at 144 fps rather than the default 60 fps but it always stays at 143 fps. It's not a big deal since you can't tell the difference without an fps counting program but I'd still like to know why this happens and how to fix it. Here's my code.
protected override void Initialize()
{
TargetElapsedTime = TimeSpan.FromSeconds(1.0 / 144.0f);
IsFixedTimeStep = true;
graphics.SynchronizeWithVerticalRetrace = false;
base.Initialize();
}
After hours of tinkering with code I've found this to be the best combination of settings. I left VSync on but disabled "FixedTimeStep". The game now runs fairly consistently at 144fps unless it's on a standard monitor in which case it runs at 60fps. This means I'll have to change a few animations to be time based rather than frame based but I was thinking of doing that anyways.
protected override void Initialize()
{
TargetElapsedTime = TimeSpan.FromSeconds(1.0 / 144.0f);
IsFixedTimeStep = false;
base.Initialize();
}