sync to vblank commandline?

Hello all,

I generally like having sync 2 vblank enabled for all regular desktop use. However I do play quake2 and 3 quite a bit. There I like to have it disabled.
Currently I have to remeber going into nvidia settings and turn it off before playing a match and then switching it back on afterwards.

I use scripts to launch the games and I was wondering if there is any way to include in them the switching on and off of the sync to vblanc feature.

Something like:

switch_off_vblank
launch_quake
switch_on_vblank

I have however not found any way to di this. Is it even possible?

Thanks in advance,
Richard.

You don’t need any scripts for that, read the section of the documentation called “Appendix J. Application Profiles”.

Cheers!

Script lines:

nvidia-settings -a SyncToVBlank=0
nvidia-settings -a XVideoTextureSyncToVBlank=0
export __GL_SYNC_TO_VBLANK=0

The __GL_SYNC_TO_VBLANK environment variable is documented in the README’s Chapter 11. Specifying OpenGL Environment Variable Settings.