• Advertisement

Archived

This topic is now archived and is closed to further replies.

Disable VSync for OpenGL?

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

Hi Can anyone tell me how to disable VSync in OpenGL? Thanks

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
I almost forgot: lookup wglGetProcAddress(), you''ll need to use that to grab the two other functions.

Share this post


Link to post
Share on other sites

  • Advertisement