The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
How to disable VSync with OpenGL
ShiroAisu


Joined: 09 Jun 2010
Posts: 42
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?
How to disable VSync with OpenGL
javierecf


Joined: 21 Feb 2014
Posts: 52
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:
Quote:
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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org




--
Javier Flores
How to disable VSync with OpenGL
Alex Szpakowski
Guest

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:
Quote:
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:
Quote:
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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org




--
Javier Flores

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Re: How to disable VSync with OpenGL
ShiroAisu


Joined: 09 Jun 2010
Posts: 42
Quote:
I do SDL_GL_SetSwapInterval(0)


Alright, thank you very much. Solved.