Stop screen tearing on Ubuntu by changing compositor
Install Compton (https://github.com/chjj/compton/)
sudo apt-get install compton
Disable existing compositor (I used Metacity with Gnome Flashback)
gsettings set org.gnome.metacity compositing-manager false
Add Compton to “Startup Applications”
compton --backend glx --paint-on-overlay --vsync opengl-swc