Jump to content
  • Advertisement
Sign in to follow this  
theycallhimSeeD

XNA and DirectX capping at 60 FPS

This topic is 4091 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

So I'm doing some general purpose GPU work (calculating PI on the GPU etc.). I am using XNA which uses DirectX. Using Fraps it appears that the frame rate is being capped at 60 fps. Also my timing data supports that claim. I remember seeing something about windows capping frame rates at 60 fps. Is there some way to work around that? Also do we know how the frame rate cap is applied?

Share this post


Link to post
Share on other sites
Advertisement
This is just the VSync option, which is enabled by default. This is intended to make your game match your monitor's refresh rate, mainly to prevent 'tearing'. You can disable this in your derived game class constructor after the graphics object has been created by adding this line:


graphics.SynchronizeWithVerticalRetrace = false;


In DirectX, this is set in the PresentParameters object, by setting the PresentationInterval to Immediate.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!