How to use vsync???

I want to use Vsync with my opebGL
application. Can anyody help me out?

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.

No! Joking :slight_smile:

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

Hope this help.

Or simply search the internet for a tutorial which already did this. There should be plenty! :smiley: