xsession: with nvidia, just use xrender backend

GLX backend just triggers bugs everytime. It seems I don't need to use
a vsync method as there is no tearing as is.
This commit is contained in:
Vincent Bernat 2018-08-01 11:09:38 +02:00
parent a73094f48c
commit 93fe3e3cef

View file

@ -42,7 +42,8 @@ systemd-run -q --scope --user tmux start-server
case $(glxinfo | awk -F': ' '($1 == "OpenGL vendor string") {print $2}') in
"NVIDIA Corporation")
# --glx-swap-method 2 causes cursor to be duplicated earlier on the line
compton --daemon --backend glx --vsync opengl-swc --glx-swap-method 3 --glx-no-rebind-pixmap
#compton --daemon --backend glx --vsync opengl-swc --glx-swap-method 3 --glx-no-rebind-pixmap
compton --daemon --backend xrender
;;
*)
compton --daemon --backend glx --xrender-sync --xrender-sync-fence --vsync opengl-swc --paint-on-overlay