Skip to content

Vsync SDL GL

Vitek edited this page Nov 30, 2016 · 1 revision

For SW display (SDL/OpenGL) users:

To prevent tearing, you may need to enable waiting for vertical synchronization for your card. UltraGrid OpenGL driver enables sync on VBlank by default. However, driver may refuse to set this setting, in this case, try to use compositing manager (below).

Global configuration

This can be done using your graphic card's configuration utility (nvidia-settings for NVidia amdcccle for AMD):

NVidia

OpenGL X Screen 0 -> OpenGL Settings -> Sync to VBlank -> on

SDL X Screen 0 -> X Server XVideo Settings -> Sync to VBlank -> on

Note: If you have the option switched on but you can still see tearing, try to switch it on and then off.

AMD

OpenGL 3D -> More Settings -> Wait for vertical refresh -> Always On

SDL Display Options -> Tear Free -> Enable Tear Free Desktop to reduce tearing

Using compositing manager

If tearing still remains, this (or here) may also help - simply run compton composition manager + openbox with this parameters:

compton -b --backend glx --vsync opengl-swc

Clone this wiki locally