XNA frame rate spikes in full screen mode
- by ProgrammerAtWork
I'm loading a simple texture and rotating it in XNA, and this works.
But when I run it in full screen 1920x1080 mode I see spikes while my texture is rotating.
If I run it windowed with 1920x1080 resolution, I don't get the spikes.
The size of the texture does not seem to matter, I tried 512 texture size and 2048 texture size, same thing happens. Spikes in full screen, no spikes in windowed, resolution does not seem to matter, Debug or Release does not seem to do anything either.
Anyone got ideas of what could be the problem?
Edit:
I think this problem has something to do with the vertical retrace.
Set this property:
_graphicsDeviceManager.SynchronizeWithVerticalRetrace = false;
you'll lose vsync but it will not stutter.