Turn on/off V_Sync.

How do I turn V_Sync on and off within my OpenGL program? I’m using Win98, GeForce2, OGL, and VC++.

That is a video driver option, as far as I know you can not access it from opengl. There maybe some way to access it, but not through normal opengl options.

Originally posted by Zy:
How do I turn V_Sync on and off within my OpenGL program? I’m using Win98, GeForce2, OGL, and VC++.

WGL_EXT_swap_control should be able to do this. Specs are here .

You can also have a look at GLFW - it provides a function called glfwSwapInterval(), which maps to wglSwapIntervalEXT under Windows and to glXSwapIntervalSGI under X11.