Kobingo

When I run my game in window mode it runs at 60 fps and 60 Hz (which runs fine). But when i run it in fullscreen it runs at 75 Hz (but 60 fps, which makes the movements a little jerky). My monitor is set at 60 Hz. Why does XNA run in 75 Hz in fullscreen Other games run at 60 Hz (in fullscreen) on my computer.



Re: XNA Game Studio Express Why does XNA render at 75 Hz in fullscreen?

Shawn Hargreaves - MSFT

By "runs at 75 hz" do you mean that the monitor refresh rate is being set to 75, or that we are calling your Draw function at 75

My guess would be that we're just using the default monitor refresh rate. If you want to change that you can hook the GraphicsDeviceManager.PreparingDeviceSettings event, and modify the args.GraphicsDeviceInformation.PresentationParameters.FullScreenRefreshRateInHz property.





Re: XNA Game Studio Express Why does XNA render at 75 Hz in fullscreen?

Kobingo

Thanks! That helped :-)



Re: XNA Game Studio Express Why does XNA render at 75 Hz in fullscreen?

Ultrahead

Shawn: after swithcing to fullscreen, XNA GSE changes the monitor refresh rate to 240Hz by default (at least, in my case) for 800x600 and to 200Hz for 1024x768. Everything is back to normal after hooking the event you mentioned and manually setting the rate to an accepted one (like 60Hz, 72Hz or 75Hz).

 






Re: XNA Game Studio Express Why does XNA render at 75 Hz in fullscreen?

Peter D.

Shawn

I think there is a bug in there somewhere as on windows XNA seems to take the maximum reported refresh rate when you go fullscreen. In some cases people are getting a maximum rate that their monitor does not actually support.

Looking into this a bit further I notice that windows has two lists of refresh rates. One that covers everythig and a filtered one that covers only what the monitor can actually use. XNA seems to use the former list or at the very least doesn't take into a ccount the difference between the two.