Disable VSync for OpenGL?

Started by
4 comments, last by Dtag 21 years, 3 months ago
Hi Can anyone tell me how to disable VSync in OpenGL? Thanks
Advertisement
I have the Detonator 41.something (I think) drivers for my GF2 and in the advanced video settings I can turn it on and off for opengl.

Desktop -> rightclick -> properties -> settings -> advanced -> geforce tab -> OpenGL settings

I don''t know you can disable it in code though.
STOP THE PLANET!! I WANT TO GET OFF!!
Yeah, I think it''s a user feature. I don''t think you can disable it in code for you app.

I don''t have a signature
I don't have a signature
Of course you can disable VSYNC in code. I believe you have to query the OpenGL driver for GL_EXTENSIONS and then look to see if it supports WGL_EXT_swap_control. If it does you load the wglSwapIntervalEXT and wglGetSwapIntervalEXT extension functions.

I believe that is how you do it.

[edited by - Digitalfiend on January 19, 2003 12:00:33 PM]
[email=direwolf@digitalfiends.com]Dire Wolf[/email]
www.digitalfiends.com
Just did a search and nVidia states that you won''t find the functions listed in the GL_EXTENSIONS string. You can still query the ICD for wglSwapIntervalEXT and wglGetSwapIntervalEXT:

http://www.nvidia.com/dev_content/nvopenglspecs/WGL_EXT_swap_control.txt

[email=direwolf@digitalfiends.com]Dire Wolf[/email]
www.digitalfiends.com
I almost forgot: lookup wglGetProcAddress(), you''ll need to use that to grab the two other functions.
[email=direwolf@digitalfiends.com]Dire Wolf[/email]
www.digitalfiends.com

This topic is closed to new replies.

Advertisement