• Advertisement
Sign in to follow this  

[solved]how do i unlock vsync mdx in c#

This topic is 4294 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

I'm stuck at 60fps. Is there a way to set in Presentation Parameters to unlock vsync?

Share this post


Link to post
Share on other sites
Advertisement
Set your presentation interval to Immediate. I don't know the syntax in MDX, but in unmanaged C++, it's pp.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE;

Share this post


Link to post
Share on other sites
COOL thx man, found it:
it's going to be

presentParams.PresentationInterval = PresentInterval.Immediate;


as defined below... hah thanks!

namespace Microsoft.DirectX.Direct3D
{
// Summary:
// Defines flags that describe the relationship between the adapter refresh
// rate and the rate at which Microsoft.DirectX.Direct3D.Device.Microsoft.DirectX.Direct3D.Device.Present()
// operations are completed.
public enum PresentInterval
{
Immediate = -2147483648,
Default = 0,
One = 1,
Two = 2,
Three = 4,
Four = 8,
}
}

Share this post


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

  • Advertisement