Live data from Hacker News

Xfwl4 – The Roadmap for a Xfce Wayland Compositor

alexxcons.github.io

281–290 of 339 posts

Re: Xfwl4 – The Roadmap for a Xfce Wayland Compositor

#281
post #150

Earlier quoted context omitted.

only on the primary display. once you had more than one display there were only workarounds.

I don't know what "workarounds" you're talking about, or what unwanted behavior that I presume you're talking about. Would you be more specific? I ask because just a few minutes ago, I ran VRRTest [0] on my dual-monitor machine and saw no screen tearing on either monitor. Because VRR is disabled in multi-monitor setups, I saw juddering on both monitors when I commanded VRRTest render rates that weren't a multiple of…

(I'm posting in a reply in part because the edit window is long since past.)

Yeah. I'm actually quite interested in hearing what "workarounds" and/or misbehavior you're talking about. 'amdgpu(4)' says this about the TearFree property:

       Option "TearFree" "boolean"
              Set the default value  of  the  per-output  ’TearFree’  property,
              which  controls  tearing prevention using the hardware page flip‐
              ping mechanism.  TearFree is on for any CRTC associated with  one
              or  more  outputs with TearFree on.  Two separate scanout buffers
              need to be allocated for each CRTC with TearFree on.  If this op‐
              tion is set, the default value of the property is ’on’  or  ’off’
              accordingly.   If this option isn’t set, the default value of the
              property is auto, which means that TearFree  is  on  for  rotated
              outputs,  outputs  with  RandR  transforms applied, for RandR 1.4
              secondary outputs, and if ’VariableRefresh’ is enabled, otherwise
              it’s off.
              
The explicit mention that the "auto" enables TearFree only for secondary outputs and rotated and/or transformed outputs if 'VariableRefresh' is disabled seems to directly contradict what I think you're saying. And if "auto" enables TearFree on secondary displays, my recommendation of "on" certainly also does. But, yeah. I await clarification.

Re: Xfwl4 – The Roadmap for a Xfce Wayland Compositor

#282
post #280

Earlier quoted context omitted.

Watching a video will be the same as a on Wayland, just sending a video buffer, no? The icons: you allocate memory on server for that and do not transfare the icon everytime. I think x11 works like that, not sure. I know GUI lib that you can still compile with freetype disabled. Not everyone need the GUIs you talking about. Everyone is using cars, so lets ban bikes.. it does not need to be like that. I find X11 RPC u…

I don't really get your first 2 paragraphs. We are talking about connecting remotely to another computer, you can't do much at the other end of a network call with a server allocated buffer - at most you can cache stuff there. But that ain't helping with a video or any kind of fancier than a solid rectangle graphics. And sure, simple UIs have their place - but they will also work just as well with a proper transport…

You can cache icons on the server, you do not need to send them over a network, that is it. With video, I'm saying it is a case where wayland is not better, it is just the same.

So you say compression of said icons, etc, is better than caching them on the server? No.. You've mentioned web, but no one does that on the web.

Re: Xfwl4 – The Roadmap for a Xfce Wayland Compositor

#283
post #194

Earlier quoted context omitted.

The point is that we can improve latency of even old machines by simply attaching a display output that supports a higher refresh rate, or perhaps even variable refresh rate. This can negate most of the unavoidable latency of a compositor, while other techniques can be used to avoid compositor latency in more specific scenarios and try to improve performance and frame pacing. A new display is usually going to be chea…

Plenty of brand new displays are still sold that only go up to 60hz, especially if you want high quality IPS panels. They aren't as common now, but when making a list of screens to replace my current one, I am limiting myself to IPS panels and quite a few of the modern options are still 60hz.

Yeah, I personally still have a lot of 60 Hz panels. One of my favorites is a 43" 4K IPS. I don't think I will be able to get that at 120+ Hz any time soon.

Of course, this isn't a huge deal to me. The additional latency is not an unusable nightmare. I'm just saying that if you are particularly latency sensitive, it's something that you can affordably mitigate even when using a compositor. I think most people have been totally fine eating the compositor latency at 60 Hz.

Re: Xfwl4 – The Roadmap for a Xfce Wayland Compositor

#284
post #212
post #50

Earlier quoted context omitted.

If Rust has one weakness right now, it's bindings to system and hardware libraries. There's a massive barrier in Rust communicating with the outside ecosystem that's written in C. The definitive choice to use Rust and an existing Wayland abstraction library narrows their options down to either creating bindings of their own, or using smithay, the brand new Rust/Wayland library written for the Cosmic desktop composito…

(xfwl4 author here.) > using smithay, the brand new Rust/Wayland library Fun fact: smithay is older than wlroots, if you go by commit history (January 2017 vs. April 2017). > It would have been much easier and cost-effective to use wlroots As a 25+ year C developer, and a ~7-year Rust developer, I am very confident that any boost I'd get from using wlroots over smithay would be more than negated by debugging memory m…

Thanks for the extra info. I'm glad it hasn't turned out to be much of an issue. I've looked at your repository and it seems to be off to a great start.

Personally, I'm anxious to do some bigger rust projects, but I'm usually put off by the lack of decent bindings in my particular target area. It's getting better, and I'm sure with some time the options will fill out more.

Re: Xfwl4 – The Roadmap for a Xfce Wayland Compositor

#285
post #254

Earlier quoted context omitted.

Compositor overhead even with cheapo Intel laptop graphics is basically a non-issue these days. The people still rocking their 20 year old thinkpads might want to choose something else, but besides that kind of user I don't think it's worth worrying too much about.

It isn't always pure overhead, but also jitter, additional delays and other issues caused by the indirection. Most systems have a way to mostly override the compositor for fullscreen windows and for games and other applications where visible jitter and delays are an issue you want that even on modern hardware.

> Most systems have a way to mostly override the compositor for fullscreen windows and for games

No, they don't. I don't think Wayland ever supported exclusive fullscreen, MacOS doesn't, and Windows killed it a while back as well (in a Windows 10 update like 5-ish years ago?)

Jitter is a non-issue for things you want vsync'd (like every UI), and for games the modern solution is gsync/freesync which is significantly better than tearing.

Re: Xfwl4 – The Roadmap for a Xfce Wayland Compositor

#286
My response to the Wayland/X11 nonsense bickering has always been that I'll switch to Wayland when xfce does. I usually eyeroll when I see "in Rust" but the developers writeup in the linked article and their comments here are very reassuring and I look forward to their success!

Re: Xfwl4 – The Roadmap for a Xfce Wayland Compositor

#287
post #3

I hope that XFCE remains a solid lightweight desktop option. I've become a huge fan of KDE over the past couple of years, but it certainly isn't what you would consider lightweight or minimal. Personally, I'm a big proponent of Wayland and not big Rust detractor, so I don't see any problem with this. I do, however, wonder how many long-time XFCE fans and the folks who donated the money funding this will feel about it…

Why does Wayland "feel like the future?" It feels like a regression to me and a lot of other people who have run into serious usability problems. At best, it seems like a huge diversion of time and resources, given that we already had a working GUI. (Maybe that was the intention.) The arguments for it have boiled down to "yuck code older than me" from supposed professionals employed by commercial Linux vendors to sup…

> given that we already had a working GUI. (Maybe that was the intention.)

Neither X11 nor Wayland provide a GUI. Your GUI is provided by GTK or QT or TCL or whatever. X11 had primitive rendering instructions that allowed those GUIs to delegate drawing to a central system service, but very few things do that anymore anyway. Meaning X11 is already just a dumb compositor in practice, except it's badly designed to be a dumb compositor because that wasn't its original purpose. As such, Wayland is really just aligning the protocol to what clients actually want & do.

Re: Xfwl4 – The Roadmap for a Xfce Wayland Compositor

#288

Earlier quoted context omitted.

Fractional scaling for wayland is broken on a per app basis which feels strictly worse to me than it was before. Libre office currently is broken on wayland and works in x11

LibreOffice works for me on wayland lol. I don't know why you would wanna do fractional scaling on a per app basis whenever you got one screen. But, for your libreoffice woes, try using a different backend? Libreoffice includes support for gtk3, gtk4, Qt6, and other backends: https://github.com/LibreOffice/core/blob/master/vcl/README.m... Maybe you need to try wayland with an alternative backend?

> Maybe you need to try wayland with an alternative backend?

And this is the inherent problem with Wayland. Now we have to deal with a combinatorial explosion of things to try to get something that "just works."

Re: Xfwl4 – The Roadmap for a Xfce Wayland Compositor

#289

Earlier quoted context omitted.

LibreOffice works for me on wayland lol. I don't know why you would wanna do fractional scaling on a per app basis whenever you got one screen. But, for your libreoffice woes, try using a different backend? Libreoffice includes support for gtk3, gtk4, Qt6, and other backends: https://github.com/LibreOffice/core/blob/master/vcl/README.m... Maybe you need to try wayland with an alternative backend?

> Maybe you need to try wayland with an alternative backend? And this is the inherent problem with Wayland. Now we have to deal with a combinatorial explosion of things to try to get something that "just works."

Which, because we're talking rendering and GPU and drivers, is incredibly frustrating, because if we're here, it's because the system doesn't have working GPU drivers, at which point, a misconfiguration is a crash and a power cycle and a "hope pstore managed to save something", and the hardware/software cursor settings getting lost somewhere-how.

Re: Xfwl4 – The Roadmap for a Xfce Wayland Compositor

#290
post #254

Earlier quoted context omitted.

It isn't always pure overhead, but also jitter, additional delays and other issues caused by the indirection. Most systems have a way to mostly override the compositor for fullscreen windows and for games and other applications where visible jitter and delays are an issue you want that even on modern hardware.

> Most systems have a way to mostly override the compositor for fullscreen windows and for games No, they don't. I don't think Wayland ever supported exclusive fullscreen, MacOS doesn't, and Windows killed it a while back as well (in a Windows 10 update like 5-ish years ago?) Jitter is a non-issue for things you want vsync'd (like every UI), and for games the modern solution is gsync/freesync which is significantly b…

> I don't think Wayland ever supported

Isn't that true for even the most basic features you expect from a windowing system? X11 may have come with everything and the kitchen sink, Wayland drops all that fun on the implementations.

GNOME does unredirect on Wayland since 2019: https://www.reddit.com/r/linux/comments/g2g99z/wayland_surfa...

> Windows killed it

They replaced it with "Fullscreen Optimisations", which is mostly the same, but more flexible as leaves detection of fullscreen exclusive windows to the window manager.

https://devblogs.microsoft.com/directx/demystifying-full-scr...

As far as I can find the update removed the option to turn this of.

Post reply on HN