Sign in to follow this  
theycallhimSeeD

XNA and DirectX capping at 60 FPS

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this