This project has moved and is read-only. For the latest updates, please go here.

Tip for achieving Mango 60 FPS with Farseer!

Topics: Developer Forum
Jan 27, 2012 at 12:43 AM

Hi everybody,

In order to be achieve the maximum frames per second (around 60 fps) provided by WP Mango in your device, you have to change the Farseer source code you downloaded like this:

1) Double click the "Samples XNA WP7" solution. Choose the "Upgrade Windows Phone Projects..." to upgrade them all to the latest Windows Phone 7.5 Mango.

2) For each project in the solution: replace AppPlatformVersion="7.0" by AppPlatformVersion="7.1"

<Deployment xmlns="" AppPlatformVersion="7.1">

3) In the constructor of game class, add this event handler:

            _graphics.PreparingDeviceSettings += 
new EventHandler<PreparingDeviceSettingsEventArgs>(_graphics_PreparingDeviceSettings);

4) Then add this event:

        void _graphics_PreparingDeviceSettings(object sender, PreparingDeviceSettingsEventArgs e)        
	e.GraphicsDeviceInformation.PresentationParameters.PresentationInterval = PresentInterval.One;        

5) In Initialize method of game class, be sure to modify the PresentationInterval parameter to PresentationInterval.One:

        protected override void Initialize()       
		this.GraphicsDevice.PresentationParameters.PresentationInterval = 

Hope this helps!