I use it like this:
compton --opengl --sw-opti --vsync opengl-swc --paint-on-overlay -cCGb -r 10 -o 0.5 -l-12 -t-12 -fF -D35 -I0.4 -O0.4 --shadow-exclude 'g:e:Conky' --blur-background --blur-background-frame
I'm using Compton development branch (richardgv-dev) with Openbox and it has fixed vsync (it was implemented ~ 2 months ago).
You can get it from: https://github.com/chjj/compton/tree/richardgv-dev
I use it with these settings: compton -cCG-r 8 -o0.7 -l-12 -t-12 -f -D10 -I0.11 -O0.07 -m0.93 -z -b --vsync opengl
Discussion about it: https://github.com/chjj/compton/issues/7
This doesn't do anything to solve tearing with xv output (nor the smartBorders tearing), not that I would use xv, it just seems to be the default/benchmark. It also causes tearing in vaapi which wasn't there before. It does however fix tearing when I'm moving windows around which has always been an issue. Don't do this anymore (tiling WM) but I'm sure it will be useful for others who do float windows. Thanks a bunch Janhouse.
]]>You can get it from: https://github.com/chjj/compton/tree/richardgv-dev
I use it with these settings: compton -cCG -r 8 -o0.7 -l-12 -t-12 -f -D10 -I0.11 -O0.07 -m0.93 -z -b --vsync opengl
Discussion about it: https://github.com/chjj/compton/issues/7
]]>Section "Device"
Identifier "HD 4000"
Driver "Intel"
Option "AccelMethod" "uxa"
# Option "TearFree" "true"
# Option "TripleBuffer" "True"
# Option "XvPreferOverlay" "true"
# Option "DRI" "true"
# Option "SwapbuffersWait" "false"
EndSection
I've tried enabling and disabling all those options to no avail. Tearing is worse with sna acceleration. I've also tried the development versions of xf86-video-intel-git, libdrm-git and libva-driver-intel-git. I've always had tearing problems on this hardware (so I think these issues have wider implications for running Linux on the latest Macbooks) and the only output methods that work tear-free are vaapi and gl. Now that I'm running xmonad-contrib (instead of Fluxbox or Openbox) only gl2 works. Really don't want to switch back to Fluxbox just to save some battery.
Ideally I'd like to remove the tearing entirely but this probably isn't going to happen at the moment on this hardware. I would be happy to just get vaapi working like it did in Fluxbox, seeing as CPU usage is much higher with gl2, especially with HD videos. Additionally with gl the screen sometimes turns black when toggling fullscreen and I have to kill mplayer from another tty. Is there something I can change with the way xmonad treats the mplayer window? I've tried changing the mplayer fstype and removing the xmonad windowborder but this didn't make any difference.
]]>