PDA

View Full Version : How to use vsync???



akila
05-14-2008, 07:01 AM
I want to use Vsync with my opebGL
application. Can anyody help me out?

Relic
05-14-2008, 07:48 AM
Depends on the OS.
Under Windows, first look if your graphics driver's control panel offers an option to enable/disable vsync for OpenGL programs and make sure it's not set to Force Off or the like.
Then read the WGL extension
http://www.opengl.org/registry/specs/EXT/wgl_swap_control.txt
and set the swap interval to 1 inside your application to enable vsync.

glfreak
05-14-2008, 07:48 AM
No! Joking :)

Use this extension with interval set to 0 if u want to disable vsynch, wglSwapIntervalEXT(interval).

Hope this help.

Relic
05-14-2008, 07:50 AM
Or simply search the internet for a tutorial which already did this. There should be plenty! :D