Turning off VSYNC in OpenGL
How do you turn off VSYNC in your opengl app?? I know you can do this by change a setting in your display driver, but I wanna do this for my app, perhaps by calling some function in the code... Please advice, thanks!!
Normally OpenGL apps don''t wait for the VSYNC! When I am correctly imformed than the red book says that it only can be done with the initalizing of the window! But ask NeHe for more information.
well, I know for a fact that VSYNC is on by default... unless you explicitly turn it off in your Display Properties window. And that your SwapBuffers() wait on it... My frame rate in my app was hovering around 85, then I turned off VSYNC, and the frame rate shot up to around 250.
And 85 also happens to be my monitor''s refresh rate at 1280x1024
And 85 also happens to be my monitor''s refresh rate at 1280x1024
Check out the WGL swap control extension.
http://oss.sgi.com/projects/ogl-sample/registry/EXT/wgl_swap_control.txt
http://oss.sgi.com/projects/ogl-sample/registry/EXT/wgl_swap_control.txt
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement