How to disable VSync with OpenGL

Each time I call SDL_GL_SwapWindow() the function waits for a bit. I figure this happens because vsync is on.

How would I go about disabling VSync?

I do SDL_GL_SetSwapInterval(0);, but as almost everything these days, is
not a guarantee, it depens on the drivers and the graphics card.

2014-07-09 17:34 GMT-06:00 ShiroAisu :> Each time I call SDL_GL_SwapWindow() the function waits for a bit. I

figure this happens because vsync is on.

How would I go about disabling VSync?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Javier Flores

Yep, that?s how you tell the driver to disable vsync, but it might ignore you (for example if the user forced vsync on in their driver config.)On Jul 9, 2014, at 8:36 PM, Javier Flores wrote:

I do SDL_GL_SetSwapInterval(0);, but as almost everything these days, is not a guarantee, it depens on the drivers and the graphics card.

2014-07-09 17:34 GMT-06:00 ShiroAisu :
Each time I call SDL_GL_SwapWindow() the function waits for a bit. I figure this happens because vsync is on.

How would I go about disabling VSync?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Javier Flores


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I do SDL_GL_SetSwapInterval(0)

Alright, thank you very much. Solved.