XNA frame rate spikes in full screen mode

Posted by ProgrammerAtWork on Game Development See other posts from Game Development or by ProgrammerAtWork
Published on 2012-09-12T18:09:41Z Indexed on 2012/09/12 21:51 UTC
Read the original article Hit count: 266

Filed under:
|

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.

© Game Development or respective owner

Related posts about XNA

Related posts about c#