PDA

View Full Version : disable vsync with Windows 7 ?



divide
05-20-2010, 05:10 AM
My OpenGL context (windowed) seems to be capped to 60fps.
I'm using a GeForce GTX260 with Windows 7.

Is there a way to disable this limit ? Does it happens only in windowed mode or fullscreen too ? I guess Vista has the same limit ?

Thanks !

ZbuffeR
05-20-2010, 06:15 AM
vsync seem to be on default, you can change that at runtime with wglSwapInterval(0);

Nighthawk
05-20-2010, 08:17 AM
Try disabling the desktop window manager(DWM)/Aero.

When DWM is active and vsync is off, your application can still run faster than 60fps*, but Win7 displays your rendered content only with 60fps.

*You can check your fps with the fraps tool, for example.

overlay
05-20-2010, 10:33 AM
Also watch your nVidia settings panel.

in 3D settings, the value "Vertical sync" can take 3 values:
1. Use the 3D application Setting
2. Force on
3. Force off

wglSwapInterval(0); will have no effect if the settings are in "Force" mode.