vsync

Hello,

is it possible to synchronize rendering with vsync under linux, and how ist this done?

Jan

Hi,

There’s an GLX extension available that seems to work like WGL_ext_swap_control but I think it isn’t used by any of the most common graphic cards:
GLX_SGI_swap_control
(http://oss.sgi.com/projects/ogl-sample/registry/SGI/swap_control.txt)

Perhaps there’s a way to do that through the X-Server?

See you,
-Stone.
http://www.steinsoft.net

For nVidias drivers I think there is some env variable that you can set. That means that you do not have SW control over it

Perhaps it is possible to change the env variable from your program before you open your window, but I don’t know when the variable is read by the drivers. Also, this is vendor specific and not a very nice solution.

I’m pretty sure nVidia does not support GLX_SGI_swap_control.

setenv("__GL_SYNC_TO_VBLANK",“1”,1)
seems to work in my app… before setting up the GLX context

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.