Might be a long shot, but it’s been a problem for me ever since i switched to Linux.
Why are standalone compositors for Linux so… bad? The only one with recent development is compton and it often feels like a sience project.
I’ve been trying for over 3 or so years to get a compositor to work perfectly on my systems. Nvidia or Intel, no dice. It’s always extremely laggy (window drags behind the mouse cursor), scrolling in the Browser gets a half second delay etc.
Windows and Mac can both do realtime transparency and blur with close to no performance impact. Why is this so hard on Linux? I can get the look that i want with tryone’s fork of compton. But even with all the glx options and setting, i can not get it to run smoothly. And if it does work better, it gets worse over time. Like, at startup it’s fine and every 5 minutes it’s getting noticably worse.
I really enjoy the responsiveness of my system with awesomewm without a compositor. Everything happens instantly. It’s great. But is it to much to ask to also want some moder design?
To be clear, i’m not saying that i disrespect the work that all the people working on those projects do. I’m sure there is a reason. And i have mad respect for those coding this stuff. I’m just curous if i’m doing something wrong, or if there is a technological challenge that will make this impossible on this platform.
I dont know my music player is also lagging around the desktop when being dragged with a 1070 because it has no window frame (appearently since android emulator does the same but is fine when I disable device frame). Yet on my notebook with intel graphics, but wayland its fine. Not sure wether to blame nvidia, praise intel, blame xorg, or praise wayland or a combination of all of them.
someone at some point tried fixing some of those issues, and so Wayland was born, … (which adds new problems, but has a chance of fixing some old ones)
Compiz is still the smoothest compositor i have used.That said i think one of the goals of wayland compositing is to eliminate screen lag/tear.
afaik when you have page flipping & buffering interacting with two things that need to be on the same page (no pun) it can be a problem. This is why the Intel / AMD opensource driver is typically much better as it is integrated into the system correctly and in my experience eliminate the issue. Using AMD on the ‘desktop’ is way nicer than using nvidia … but then gaming performance… etc…
Isn’t compiz a window manager too? I remeber having lots of fun with burning windows when i was, like 10 or so…
Can Compiz be used as a compositor for awesomewm (or any other wm for that matter)?
I’m working on this on my Work Laptop, which is and Integrated Intel GPU.
Wayland is sadly not an option, as awesomewm or openbox haven’t been ported. Overall, the wm and compositor choices for wayland are slim. Like, sway is the only real effort im aware of atm.
Honestly, the best compositor I have used is KWin ( might get some hate, but it’s fast. )
Compton is good, I like the Tryone fork with the Dual-Kawase blur. It’s way fast and looks awesome.
I use an nVidia card and I have never had a problem with tearing. I just set “Force Composition Pipeline” on my monitors, and then turn off Vsync in everything. No tearing, everything is super smooth.
Here are some options I used in my compton config that might help your performance issues. I had it running flawlessly on an old 2nd gen Intel i7 with Intel HD3000 graphics. ( For nvidia it might be a little different )
# Set VSync method. VSync methods currently available:
# none: No VSync
# drm: VSync with DRM_IOCTL_WAIT_VBLANK. May only work on some drivers.
# opengl: Try to VSync with SGI_video_sync OpenGL extension. Only work on some drivers.
# opengl-oml: Try to VSync with OML_sync_control OpenGL extension. Only work on some drivers.
# opengl-swc: Try to VSync with SGI_swap_control OpenGL extension. Only work on some drivers. Works only with GLX backend. Known to be most effective on many drivers. Does not actually control paint timing, only buffer swap is affected, so it doesn’t have the effect of --sw-opti unlike other methods. Experimental.
# opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically the same as opengl-swc above, except the extension we use.
# (Note some VSync methods may not be enabled at compile time.)
# When using DRI3 on Intel Cards be sure to only use opengl vsync and disable paint-on-overlay, glx-no-stencil, glx-no-rebind-pixmap, glx-copy-from-front, xrender-sync-fence. Otherwise glitches will happen.
vsync = "opengl";
glx-swap-method = 0; # undefined(0) | copy(1) | exchange(2) | 3-6 | buffer-age(-1)
paint-on-overlay = true; # Improves performance (usually) and reduces flickering
glx-no-stencil = true; # Improves performance
glx-no-rebind-pixmap = true; # Improves performance with rapid window changes, might not work with some drivers
glx-copy-from-front = true; # Should reduce flickering
refresh-rate = 60; # 0 for Auto detect
xrender-sync-fence = true;
unredir-if-possible = true; # Improves performance with fullscreen applications`
I would say to mess around with the vsync option, as the one that works best is dependent on the graphics chip being used.
If you are using Compton with i3 or another EWMH-compliant WM try use-ewmh-active-win = true; in your compton.conf it seems to make active windows more responsive. If I remember correctly that is what fixed the scrolling in Firefox for me. But it’s been a while so I can’t remember for sure.
I wish the Plasma devs would let KWin be used as a stand-alone compositor, as it would kick ass. As it is currently, you can’t have the Kwin compositor without the window manager.
I have had issues with FCP option on nvidia. Where by some games run slower, even if you turn off the in game vsync. Speaking of which on the flip side it is nice to be able to just use the games in built sync option rather than have it permanently forced.
it’s fast but until EGL stream is added for nvidia support it still tears (maybe EGL has landed now i haven’t checked recently). The reason historically is that the kwin dev refused to support nvidia closed drivers, so it always kind of sucked. Still the effects are nice and the slide back effect is awesome. It would be nice for other DE’s to implement that feature as it looks so cool
I thought it was in the AUR ? It’s been a few years now but i used to use xfce+kwin to great effect. Is there something about the new Plasma desktop that doesn’t allow this ?
You can use KWin as a Window manager and compositor, but not just a compositor.
When you see KWin + XFCE, KWin is both the compositor and Window manager, replacing the default XFCE window title bars and buttons with the KWin ones.
The main issue is not being able to use KWin without the window manager portion. The Plasma team calls KWin a window manager that supports compositing.
I have a RTX 2080 so I can’t speak about slowdown. I don’t notice more than a few FPS difference between having it on or off. Only time it is an issue for me are games where Vsync is forced on with no way to turn it off. On other cards there may be a higher penalty, I am not sure. This is the only nvidia card I have had recently. Last one was a GeForce 260.
I had to set some settings in Plasma ( under Display and Monitor > Compositor ) to get a fully tear free experience. I set scale method to Crisp, Rendering backend to OpenGL 3.1, Tearing prevention to Never. After that moving windows, scrolling, and everything else is super smooth and tear free.
It looks like the EGL stream patches are set for Plasma 5.16.
I’m trying some of those now. Most options i’ve already tested to some extend. What really improved responsiveness was setting glx-swap-method to copy or exchange. Both produce major artifacts on my Intel GPU though. Not sure if there is a way around this.
For now, it’s halfway smooth. I’ll see if the “slows down over time” thing comes back.
Make sure you disable DRI3 on the Intel chip. That should get rid of the artifacts.
That is, if any of these options are set to true paint-on-overlay, glx-no-stencil, glx-no-rebind-pixmap, glx-copy-from-front, xrender-sync-fence while using DRI3 rendering method it will cause graphical artifacts.