[solved]how do i unlock vsync mdx in c#
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;
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,
}
}
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,
}
}
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement