Xfce Forum

Sub domains
 

You are not logged in.

#1 2011-11-03 21:59:12

AsureDawn
Member
Registered: 2011-11-03
Posts: 3

xfwm4 opengl composite: implement{ed,ing}?

I have a few questions relating to xfwm4 and compositing:

  1. Does xfwm4 use (hardware/software) opengl for compositing?

  2. If not, then what code would I have to work on to implement it, is there a specific library that would be preferred?

  3. Do you think it would be a lot of work?

  4. Would it (as a feature*) be something that would be greeted with open arms?

    • *in other words, assuming it's coded well, performance is reasonable, and there are few or no regressions.

I'm asking because, although I likely won't be working on this full time and may never finish it, I'd like to try and implement it myself (I'll of course accept help, and I'll have the code up where others can easily contribute if they want to).

Offline

#2 2011-11-04 20:36:20

stqn
Member
Registered: 2010-10-11
Posts: 174

Re: xfwm4 opengl composite: implement{ed,ing}?

That would be great, if it solved the tearing issue in videos of course. (AFAIK xfwm uses xrender and not opengl which is why there is tearing.)

Offline

#3 2011-11-05 07:48:53

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: xfwm4 opengl composite: implement{ed,ing}?

Use the xfce4-dev mailing list. Xfwm4 is not using opengl that will be a lot of work, however the X extensions is uses are accelerated by most video drivers.

Offline

#4 2011-11-05 19:15:20

AsureDawn
Member
Registered: 2011-11-03
Posts: 3

Re: xfwm4 opengl composite: implement{ed,ing}?

Alright, thanks. ^_^

stqn: Yeah, that would be nice. This behavior: tearing in Parole only when the compositor is enabled (with the built in one and compiz)?

Interesting note: I get tearing in flash and html <video> no matter what (in Chrome), with or without compositing.

Offline

#5 2011-11-06 13:44:17

stqn
Member
Registered: 2010-10-11
Posts: 174

Re: xfwm4 opengl composite: implement{ed,ing}?

Not sure what you're asking... I get tearing in VLC and smplayer with xfwm's compositor, but not with compiz. I think there's a "sync to vblank" setting to enable in compiz first.

Last edited by stqn (2011-11-06 13:44:37)

Offline

#6 2011-11-06 16:46:05

Ivan The Black
Member
Registered: 2011-09-01
Posts: 7

Re: xfwm4 opengl composite: implement{ed,ing}?

I have the same tearing with compositing enabled when watching movies regardless the player. It is an Xfce issue I always had, that is not happening with Compiz, but I do not use Compiz under Xfce. Flash is another story, here I have tearing also without compositing under Xfce.

I hope in the future that could be somehow improved, at the moment I do not use compositing because of mentioned issues and I really like Xfwm.


Debian Wheezy Xfce 4.8

Offline

#7 2011-11-06 16:52:38

AsureDawn
Member
Registered: 2011-11-03
Posts: 3

Re: xfwm4 opengl composite: implement{ed,ing}?

Using compiz, I get tearing with "sync to vblank" enabled (in OpenGL) and with "don't wait for video sync" disabled (in workarounds). I guess it could be a driver issue, but I've never heard of it...

Apparently, nouveau has a GLXVBlank setting which defaults to off. I can imagine why, but I'd think individual clients should still be able to sync on their own. I guess that rendering is usually fast enough that I don't notice tearing, but on some workloads it's more obvious.

Edit: Even with GLXVBlank enabled I get tearing (but it's less noticeable, only occurring at the top of the video) when using compiz. hmm

Last edited by AsureDawn (2011-11-06 17:12:59)

Offline

#8 2011-11-09 04:30:16

dhor
Member
Registered: 2011-04-30
Posts: 3

Re: xfwm4 opengl composite: implement{ed,ing}?

Tearing is caused by Xrender (which is used to composition in Xfwm4), which can't sync (I can't belive that, but it's true). The bug is there for years - tearning video, tearning windows, and so on.

Solution is to fix Xrender, or teach Xfwm4 to use OpenGL, or use Compiz.

Offline

#9 2012-01-04 07:41:55

aga
Member
Registered: 2011-12-30
Posts: 17

Re: xfwm4 opengl composite: implement{ed,ing}?

Does xfce v4.8 have a GUI panel which enables toggling openGL vs xrender ?
(If it does, can I buy a clue? I'm having a tough time finding it)

Offline

Board footer

Powered by FluxBB