Fix for KDE/Plasma Tearing in nVidia GPUs like GTX970
Created by: wilfred1986
On all linux distros I use, in Plasma desktop, I always have tearing, even with vsync, no matter wich render or config I use for the compositor KWin, its a bug of KDE, (it don't happend with Gnome). I know It happens with other nVidia models, but mine is a GTX970 model and is very annoying to me.
But the good news is, there's a fix to that:
#!/bin/sh
#
# ~/.config/plasma-workspace/env/kwin-fix-nvidia_tearing.sh
#
# Make this script executable with:
# chmod +x ~/.config/plasma-workspace/env/kwin-fix-nvidia_tearing.sh
#
# Fix tearing with nVidia Propietary Driver
#
# Info: https://wiki.archlinux.org/index.php/KDE#Screen_tearing_with_Nvidia
# Info: https://community.kde.org/KWin/Environment_Variables#GL_YIELD
#
export __GL_YIELD="USLEEP"
Thanks.
PD. Sorry for my bad english.