I know where the option is. But it isn't stored. When I choose 'sync to vblank', close xfwm4-tweaks-settings and open it again, the setting is off like before.
From https://bugzilla.xfce.org/show_bug.cgi?id=8898 :
Bugs:
- The setting in the window manager tweaks gui doesn't work, I don't know why. For now the sync to vblank setting can be enabled with:
xfconf-query -c xfwm4 -p "/general/sync_to_vblank" -s true
And then restart xfwm.
Thorsten Reinbold wrote:kellerman wrote:How is the test with xfwm4-vsync?
Doesn't work for me with Nouveau. Simply has no effect.
Both compton and xfwm4-vsync doesnt work? With xfwm4-vsync you must go to xfwm4-tweaks-settings and enable compositor and 'sync to vblank' option, did you do that?
I know where the option is. But it isn't stored. When I choose 'sync to vblank', close xfwm4-tweaks-settings and open it again, the setting is off like before.
]]>kellerman wrote:Only problem is a little delay (when moving windows for example), you can feel it a bit more than with 'compton --vsync opengl', but it seems to be acceptable to me.
Did you try --glx-no-stencil? Here it helps a lot. (Not sure if you have seen my second edit above.)
You mean
compton --backend glx --paint-on-overlay --glx-no-stencil --vsync opengl-swc &
or
compton --backend glx --glx-no-stencil --vsync opengl-swc &
Hard to see the difference here, but it seems to be a little bit better maybe (with both variants).
]]>Only problem is a little delay (when moving windows for example), you can feel it a bit more than with 'compton --vsync opengl', but it seems to be acceptable to me.
Did you try --glx-no-stencil? Here it helps a lot. (Not sure if you have seen my second edit above.)
]]>kellerman wrote:A week ago or smth I hooked my laptop to external monitor via hdmi. The resolution was 1920x1200, and there was tearing. On 1366x768 it was less visible.
But when I played video through vaapi, the tearing was minimal just on the top of screen.
compton with vsync was enabled all the time.compton --backend glx --paint-on-overlay --vsync opengl-swc
actually works very well, there is a bit of lag, but not huge. but seems to be no tearing at all (this time for real)
So you are saying the latest compton-git with glx backend has no tearing at all on intel, not even near the top? If so thats great news, and I can finally go back to XFCE
Yes! This time, not even at the top, flash/html5 videos work well within the browser too. I'll try this on my external monitor (1920x1200) later, but on 1366x768 it's really fine! Only problem is a little delay (when moving windows for example), you can feel it a bit more than with 'compton --vsync opengl', but it seems to be acceptable to me. If I want extra responsiveness, then I can go back to '--vsync opengl' or simply kill compton.
]]>A week ago or smth I hooked my laptop to external monitor via hdmi. The resolution was 1920x1200, and there was tearing. On 1366x768 it was less visible.
But when I played video through vaapi, the tearing was minimal just on the top of screen.
compton with vsync was enabled all the time.compton --backend glx --paint-on-overlay --vsync opengl-swc
actually works very well, there is a bit of lag, but not huge. but seems to be no tearing at all (this time for real)
So you are saying the latest compton-git with glx backend has no tearing at all on intel, not even near the top? If so thats great news, and I can finally go back to XFCE
]]>compton --backend glx --paint-on-overlay --vsync opengl-swc
actually works very well, there is a bit of lag, but not huge. but seems to be no tearing at all (this time for real)
]]>compton -c -f -o 1.0 -I 0.1 -O 0.1 -C -i 0.95 -z --vsync opengl --unredir-if-possible --shadow-exclude "! name~=''" -b
The important bit with regards to tearing is "--vsync opengl". It also worked with "--vsync drm", but I felt it was slightly better with opengl. There is still some tearing sometimes, but it’s rare enough not to be annoying (at least with VLC and Flash videos).
The other option that may be useful to Xfwm users is “--shadow-exclude "! name~=''"”. It removes the “black window” effect when you use alt-tab with shadows enabled.
Supposedly the ultimate solution is to use Compton’s new OpenGL backend (“--backend glx --paint-on-overlay --vsync opengl-swc” according to RichardGv on the AUR), but when I tried the glx backend there was a lot of lag on my display.
Edit: I tried again the glx backend, this time with the options suggested by RichardGv, and there is much less lag than when I first tried it, but still it looks like a 30 fps refresh instead of the 60 fps I seem to be getting with the (default) xrender backend.
Edit 2: with --glx-no-stencil in addition, I’m back to 60 fps, but still a one-frame lag.
]]>edit: the first aur package not solve this issue. .
]]>kellerman wrote:How is the test with xfwm4-vsync?
Doesn't work for me with Nouveau. Simply has no effect.
Both compton and xfwm4-vsync doesnt work? With xfwm4-vsync you must go to xfwm4-tweaks-settings and enable compositor and 'sync to vblank' option, did you do that?
]]>How is the test with xfwm4-vsync?
Doesn't work for me with Nouveau. Simply has no effect.
]]>By the way, I tried this test http://www.youtube.com/watch?v=ceX18O9pvLs directly from youtube via flash with compton enabled. When fullscreen there were only a little tearing on the very top of test video. Fully acceptable to me and for example when viewing normal fluid videos in youtube at fullscreen the tearing is not noticable at all. When not fullscreen (1366x768) it's perfect. How is the test with xfwm4-vsync?
EDIT: Just tried the package and now I know that it includes the tiling patch too! And that the compositor has that option to sync to vblank. Results look like to be the same, tried myself In this case I'll stick to compton as it's more configurable.
]]>