To main page | 3dengine.org

Disable Vsync


Vertical sync is a limiting factor by GPU so that program don't draw more than 60 frames per second.

The easiest way to disable vsync is via GLEW (highly recommended), then you can just call:
wglSwapIntervalEXT(false); // false to disable, true to enable
other method (raw OpenGL):
typedef bool (APIENTRY *PFNWGLSWAPINTERVALFARPROC)(int);
PFNWGLSWAPINTERVALFARPROC wglSwapIntervalEXT = 0;
wglSwapIntervalEXT = 
    (PFNWGLSWAPINTERVALFARPROC)wglGetProcAddress("wglSwapIntervalEXT");
if (wglSwapIntervalEXT)
wglSwapIntervalEXT(0);

PyOpenGL

Theoretically this should do it, but it doesn't work:
from OpenGL.WGL import *
wglSwapIntervalEXT(0)