Varcade Dev Blog

Unlocking the framerate in XNA with Mango

by on Jul.31, 2011, under XNA

With Mango, developers have the option to run their XNA apps at the full refresh rate of the devices.  Previously, this was limited to every other frame.   Here is the code, in the Game class constructor:

graphics = new GraphicsDeviceManager(this);
graphics.PreparingDeviceSettings += (s, e) => { e.GraphicsDeviceInformation.PresentationParameters.PresentationInterval = PresentInterval.One; };

The default is PresentInterval.Two

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!


A few highly recommended websites...