You are not logged in.

#1 2013-04-12 19:45:17

Archdove
Member
Registered: 2011-09-23
Posts: 118

[SOLVED] Tearless compositing.

Hi

My problem is not a problem in particular. I just want to ask the masses if they have the same experiences as i do.

So. For me using Awesome WM it seems impossible to have both, compositing and videos without tearing. I've tried with different compositing managers and even without one, but the only thing solving the issue is disabling composite for Xort.

Is there anyone using Awesome WM with activated compositioning, who can watch videos without tearing? If yes: Which graphics card is used?

Window Managers which do not suffer from tearing seem to be:
- Compiz
- Gnome3
- Others?


ps. Any suggestions for solving this for Nvidia cards are much appreciated.

Last edited by Archdove (2013-04-13 23:06:22)

Offline

#2 2013-04-12 20:10:06

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Tearless compositing.

Yeah... Same goes for Openbox/Fluxbox, Xfce, E17, etc. They all have tearing during videos, because Xorg has this limitation. Well, actually XRendr does (or was it "XRandR"? I forget). Wayland doesn't have this limitation, but a lot of applications don't support Wayland (yet).

Basically, with Xorg, you need an OpenGL WM, and "Gnome3" is not a WM; you probably mean Mutter. There's also KWin (KDE).

Last edited by DSpider (2013-04-12 20:11:06)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#3 2013-04-13 05:59:10

z1lt0id
Member
Registered: 2012-09-20
Posts: 177

Re: [SOLVED] Tearless compositing.

I was able to solve all tearing issues with compositing under the Awesome WM using a Nvidia GTX 670 last night.  Which I was amazed at.  I installed the compton-git from Aur and inputted the following:

compton --backend glx --paint-on-overlay --vsync opengl-swc 

Offline

#4 2013-04-13 06:46:41

Archdove
Member
Registered: 2011-09-23
Posts: 118

Re: [SOLVED] Tearless compositing.

Hey z1lt0id that sounds interesting. I will try this next week and give some feedback here.b

Offline

#5 2013-04-13 09:40:11

koshak
Member
Registered: 2013-03-13
Posts: 35

Re: [SOLVED] Tearless compositing.

I confirm z1lt0id's words. Using the same setup. Just share my own string from .xinitrc:

compton -bfzcCG --backend glx --vsync opengl-swc --paint-on-overlay -D5 -r6 -l-8 -t-8

Using this on both PC with nvidia 9500gt and latest nvidia drivers and on a laptop with old gm965 and xf86-video-intel

Offline

#6 2013-04-13 13:48:54

z1lt0id
Member
Registered: 2012-09-20
Posts: 177

Re: [SOLVED] Tearless compositing.

koshak wrote:

I confirm z1lt0id's words. Using the same setup. Just share my own string from .xinitrc:

compton -bfzcCG --backend glx --vsync opengl-swc --paint-on-overlay -D5 -r6 -l-8 -t-8

Using this on both PC with nvidia 9500gt and latest nvidia drivers and on a laptop with old gm965 and xf86-video-intel

Glad it worked for you to koshak smile

Offline

#7 2013-04-13 16:08:29

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [SOLVED] Tearless compositing.

The funny part about this thread -- when I read the title, I thought 'tearless' meant how to do it without crying hmm


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2013-04-13 16:13:05

ooo
Member
Registered: 2013-04-10
Posts: 1,637

Re: [SOLVED] Tearless compositing.

compton(-git) works amazingly well! Just got the glx backend working just as fast as xrender with latest git, with absolultely no tearing!
Even if the opengl backend isn't working for you, you can make it almost tear-free with --vsync drm.

here are my settings for reference. I think --glx-no-stencil and --glx-no-rebind-pixmap were the crucial settings for me (using open source radeon driver)

compton -c -r4 -l-6 -t-4 -z -b \
 -G -C -e0.85 \
 -f -D30 -I0.45 -O0.45 \
 --paint-on-overlay --unredir-if-possible \
 --backend glx --glx-no-stencil --glx-no-rebind-pixmap

Last edited by ooo (2013-04-14 16:45:14)

Offline

#9 2013-04-13 16:16:24

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: [SOLVED] Tearless compositing.

^ Always a worry when using a onion-based compositor. Fortunately compton uses potatoes for this purpose.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#10 2013-04-13 20:46:34

koshak
Member
Registered: 2013-03-13
Posts: 35

Re: [SOLVED] Tearless compositing.

Onion comes out of the box for almost all linux distros. And only few projects, like compiz and compton (maybe there are some more, like infinality, but it's the matter of taste...) seem to replace it with potatoes wink

Offline

#11 2013-04-13 22:28:24

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,130

Re: [SOLVED] Tearless compositing.

Maybe some of this could go in the wiki?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#12 2013-04-13 22:39:10

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 997
Website

Re: [SOLVED] Tearless compositing.

Thanks for the tip on compton. It is really awesome, rock solid and does exactly what it is supposed to.

Offline

#13 2013-04-14 16:20:13

Archdove
Member
Registered: 2011-09-23
Posts: 118

Re: [SOLVED] Tearless compositing.

ewaller wrote:

The funny part about this thread -- when I read the title, I thought 'tearless' meant how to do it without crying hmm

It is funny because thats basically what you get out of this thread :-)

This has to go to the wiki somewhere. Up until now it was just impossible to google a solution.

Thanks guys. Great work!

Offline

#14 2013-04-15 09:08:24

koshak
Member
Registered: 2013-03-13
Posts: 35

Re: [SOLVED] Tearless compositing.

Offline

#15 2013-04-16 18:18:16

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,390

Re: [SOLVED] Tearless compositing.

compton -c -r8 -l-12 -t-8  -b  -G  -f -D30 -I0.45 -O0.45  --paint-on-overlay --unredir-if-possible  --backend glx --glx-no-stencil --glx-no-rebind-pixmap

Intel 945gm, no ~/.drirc
Firefox never scrolled so smoothly with compositing enabled!

...going to report this to kwin developers, there is something in compton (probably vsync related) they should look for smile

Thank you for this thread.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#16 2013-04-16 19:59:24

JohnnyWho
Member
Registered: 2013-03-21
Posts: 20

Re: [SOLVED] Tearless compositing.

Also xfwm4, the xfce window manager works great with compositing enabled!

Offline

#17 2013-04-16 20:08:02

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Tearless compositing.

The window manager may work "great" on its own, but this topic is about video tearing and you do get video tearing in Xfce with compositing enabled.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#18 2013-04-17 08:35:05

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,390

Re: [SOLVED] Tearless compositing.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#19 2013-04-17 08:54:26

z1lt0id
Member
Registered: 2012-09-20
Posts: 177

Re: [SOLVED] Tearless compositing.

DSpider wrote:

The window manager may work "great" on its own, but this topic is about video tearing and you do get video tearing in Xfce with compositing enabled.

But can't you use the Compton composite manger instead of the default one in XFCE?

Offline

#20 2013-04-17 11:53:06

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Tearless compositing.

z1lt0id wrote:

can't you use the Compton composite manger instead of the default one in XFCE?

Yes. I tried this a couple of days ago. Compton fixes the flickering top of screen in e.g. Descent2, also.

In case it's important, my xfwm4 is compiled with --disable-compositor

It was nice to try, but I'll stick with disabling Composite in xorg.conf, for an easy life.

Offline

#21 2013-04-17 13:04:01

z1lt0id
Member
Registered: 2012-09-20
Posts: 177

Re: [SOLVED] Tearless compositing.

If you want the best absolute performance it is best to disable compositing anyway.  For me with Awesome if I didn't enable I'd get tearing in everything.

Offline

#22 2013-04-17 20:13:47

hamelg
Member
From: France
Registered: 2008-06-19
Posts: 128

Re: [SOLVED] Tearless compositing.

I use kde and mythtv. I solve that with a simple wrapper to launch mythtv :

#!/bin/bash

pidof /usr/bin/mythfrontend && exit 1
trap "qdbus org.kde.kwin /KWin org.kde.KWin.toggleCompositing" EXIT
qdbus org.kde.kwin /KWin org.kde.KWin.toggleCompositing
/usr/bin/mythfrontend "$@"

Offline

#23 2013-04-17 23:52:47

ooo
Member
Registered: 2013-04-10
Posts: 1,637

Re: [SOLVED] Tearless compositing.

hamelg wrote:

I use kde and mythtv. I solve that with a simple wrapper to launch mythtv :

#!/bin/bash

pidof /usr/bin/mythfrontend && exit 1
trap "qdbus org.kde.kwin /KWin org.kde.KWin.toggleCompositing" EXIT
qdbus org.kde.kwin /KWin org.kde.KWin.toggleCompositing
/usr/bin/mythfrontend "$@"

I thought kwin already disables desktop effects when you enter fullscreen applications, or at least there should be option for that.

compton has this feature as well if you enable the --unredir-if-possible option.

Offline

#24 2013-04-18 00:28:01

z1lt0id
Member
Registered: 2012-09-20
Posts: 177

Re: [SOLVED] Tearless compositing.

There is an option for Kwin to disable desktop effects on fullscreen applications but it can be problematic and doesn't always work.  I always just disabled compositing effects before I load up said program to be safer.   According to the compton manual --unredir-if-possible may cause flickering.  I'm curious to try this out and see how it goes smile

Offline

#25 2013-04-18 15:01:48

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,390

Re: [SOLVED] Tearless compositing.

For me, unredirecting via kwin worked all the time.
@hamelg: in newer kde versions, you can use window rules to completely block compositing when kwin detects a particular window.
see: http://userbase.kde.org/KWin_Rules_Window_Attributes

@z1lt0id
As for compton  --unredir-if-possible, it works too, and you'll get a flick everytime you go from unredirect to redirect, (eg: when you popup a menu while in fullscreen) --paint-on-overlay, makes the flickering less evident.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB