This bug is in Xfce 4.4 (debian stable - lenny) but it is also in Xfce4.6 (debian testing - squeeze).
These bars are show in shots in the film where camera moving fast but in static shots the image is normal. It isn't so visible but after strict looking it can be notice. Without compositor the image doesn't have this bug.
Does it show with other players as well? And what about other render (not opengl) based compositors or compositing window managers (xcompmgr, metacity with compositing enabled)?
Xcompmgr give same results as compositor.
Compiz doesn't have that problem, everything is smooth.
However gxine with compositor give good result, no bars or they appear so slightly that I can't see them.
I don't know how can I change this "render based compositors", it is other driver to nvidia card, some other module for Xorg or something else. Can you give me some clue about changing it and rest I will try do.
No, it's the backend used by the compositor, OpenGL (compiz) or XRender (xcompmgr, xfwm4, metacity), this is not something you can change from your config, you would have to rewrite the compositor.
If the problem is present with xcompmgr as well, then this is not something specific to xfwm4 compositor.
This is most likely related to tearing due to vsync not working with XRender.
Definitely not fixable in Xfwm4.
I have the same problem. Disabling the compositor fixes the issue, for mplayer at least. I would like to point out that the same thing (lack of vsync / tearing) happens to regular desktop windows too, regardless of whether compositing is on or off.
According to this topic: http://www.phoronix.com/forums/showthread.php?t=25192 vsync should work on recent kernel/driver/mesa combo's, at least for ati cards (I have an r300 based card). Something to note is the following sentence: "Xv windows are redirected to an offscreen buffer so they do not wait for the vline before rendering. The compositing manager copies the content to the visible buffer when it composites the front buffer. As such, it might still tear unless that copy waits for vline as well.". This is taken from a post by 'agd5f' in the above topic. agd5f is the online pseudonym of Alex Deucher, an active X.Org ATI Driver Developer, so that is a reliable source. This indicates that tearing (in video at least) is indeed an issue of the compositing manager, and hence should be fixable in xfwm4.
Personally, I think having a tear-free desktop experience is really important, and I would appreciate it if you could look into this some more.
Came here to say: tearing in the compositor (not just in video programs) is the one reason I'm not using XFCE4 right now.
Is there any way the compositor can be written to optionally use OpenGL (AIGLX?) instead of XRender? Every XRender-based compositor has been a poor performer with problems like these.
I'd just like to resurrect this thread and add my comment.
I too am experiencing this very same issue - tearing in video with fast motion, when Xfce compositing is turned on. No tearing when compositing is turned off.
The only way to fix vsync tearing is to switch to OpenGL, and I don't think XFCE have the manpower to rewrite the compositor.
One, workaround that could be done, is some kind of option that disable compositor effects completely when entering fullscreen applications, like kwin does.
That won't fix tearing in the desktop, but at least it could fix tearing while watching videos or playing some games.
XFWM4 already unredirects fullscreen windows, but it won't work with videoplayers and some games like Trine2. The result is lower peformance and video tearing.
I love XFCE, but the compositor is becoming outdated, and it's time to think of some changes for the future.
The only way to fix vsync tearing is to switch to OpenGL, and I don't think
XFCE have the manpower to rewrite the compositor.
One, workaround that could be done, is some kind of option that disable
compositor effects completely when entering fullscreen applications, like
kwin does.
That won't fix tearing in the desktop, but at least it could fix tearing
while watching videos or playing some games.
XFWM4 already unredirects fullscreen windows, but it won't work with
videoplayers and some games like Trine2. The result is lower peformance and
video tearing.
I love XFCE, but the compositor is becoming outdated, and it's time to think
of some changes for the future.
Hi!
Why would a change to OpenGL fix the tearing issues? What is the compositor using now? software rendering or what?
One, workaround that could be done, is some kind of option that disable
compositor effects completely when entering fullscreen applications, like
kwin does.
[...]
xfwm4 had that option since the very beginning, even before KDE had a compositor...
wm tweaks -> compositor -> display fullscreen overlay window directly
One, workaround that could be done, is some kind of option that disable
compositor effects completely when entering fullscreen applications, like
kwin does.
[...]
xfwm4 had that option since the very beginning, even before KDE had a
compositor...
wm tweaks -> compositor -> display fullscreen overlay window directly
If i turn on the compositor and run a movie in mplayer i get tearing with the option "display fullscreen overlay window directly" activated. Fair enough i have not bothered testing this since 4.8 but this has not changed since then, has it?
I agree, however a WONTFIX isn't really a solution over such a long time
frame. Compositing and VSYNC is such a basic feature in most DE's.
I believe it should really be something that should be addressed - even if
it does mean a large project to keep XFCE current and usable.
Vsync support is there, see comment 11
Are you in a bitchy mode or are you just happy to see us? ;)
Regarding comment 11;:
"Cons:
Only works on videodrivers that use DRI, I've only tested it on the Intel HD 3000, but it should also work on AMD gpus, support for Nvidia could be done using OpenGL, but this is a lot of work."
Then again... Nothing here actually mentions Nvidia so you are sort of right.
If we shall be serious for a moment i think we can actually close this bug as non fixable. Until Wayland we will probably have to live without a compositor. Which is ok for me.