Skip to content

Instantly share code, notes, and snippets.

@natanaeljr
Last active February 7, 2021 16:02
Show Gist options
  • Save natanaeljr/92feeca22dd78036a1948d916af6450c to your computer and use it in GitHub Desktop.
Save natanaeljr/92feeca22dd78036a1948d916af6450c to your computer and use it in GitHub Desktop.
Force VSync setting on Linux
<device screen="0" driver="dri2">
<application name="Default">
<option name="vblank_mode" value="1"/>
</application>
</device>
Create the above file in the home directory: ~/.dridr
vblank_mode:
0 - Never synchronize with vertical refresh, ignore application's choice
1 - Initial swap interval 0, obey application's choice
2 - Initial swap interval 1, obey application's choice
3 - Always synchronize with vertical refresh, application chooses the minimum swap interval
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment