That's probably better than most scaling done on Wayland today because it's doing the rendering directly at the target resolution instead of doing the "draw at 2x scale and then scale down" dance that was popularized by OSX and copied by Linux. If you do it that way you both lose performance and get blurry output. The only corner case a compositor needs to cover is when a client is straddling two outputs. And even in…
Ancient X11 scaling technology
201–210 of 264 posts
Re: Ancient X11 scaling technology
#202Earlier quoted context omitted.
Using vector pipelines isn't new, of course: Windows has been doing DPI-independent rendering since almost the beginning with GDI. The actual issue with GDI's scaling is all about text: for something to be "scalable" it has to maintain its proportions when the scale factor changes, but this was not the case for text in Win32/GDI, due to pixel grid fitting. Because of this, it was common in the Windows XP era to see i…
> Because of this, it was common in the Windows XP era to see ill-sized text when changing the DPI to anything other than 96, resulting in things being cut off and generally broken. The underlying issue with this is the use of fixed-layout interfaces in Win32. If you tweak the layout dynamically to be "responsive" to how the text wraps, this becomes an absolute non-issue. It could also be done with reasonable efficie…
Re: Ancient X11 scaling technology
#203Earlier quoted context omitted.
> It's silly that people keep complaining about this. It's a very minor effect, and one that can be solved in principle only by moving to pure vector rendering for everything. If you have DPI virtualization, a very sufficient solution already exists: pick a reasonable scale factor for the underlying buffer and use it, then resample for any outputs that don't match. This is what happens in most Wayland compositors. Ex…
> Accurate DPI information is insufficient as users may want to scale differently anyways, either due to preference, higher viewing distance, or disability. Which is fine. There's already a standardized property in XSETTINGS to use on X11 to advertise the user's scaling preference. For Wayland they decided to include this into the protocol, so it can be per-output and/or per-window (though the per-window fractional s…
The same folks who are working on Wayland today did a lot of work to get X.org to where it is now. They could do more, but the writing was on the wall.
Re: Ancient X11 scaling technology
#204It's not "can you provide the screen DPI to a window?" people bemoan, it's "can you draw one window across two screens with differing DPIs, transparent to the application?"
Re: Ancient X11 scaling technology
#205Earlier quoted context omitted.
> It's silly that people keep complaining about this. It's a very minor effect, and one that can be solved in principle only by moving to pure vector rendering for everything. If you have DPI virtualization, a very sufficient solution already exists: pick a reasonable scale factor for the underlying buffer and use it, then resample for any outputs that don't match. This is what happens in most Wayland compositors. Ex…
>users may want to scale differently anyways Users think they want a lot of things they don't really need. Do we really want to hand users that loaded gun so that they can choose incorrectly where to fire?
For example, if I'm using KDE on a TV, which by the way I am (with Bazzite to be exact, works great) then I want to set the scale factor in KDE higher because I'm going to be standing further away. This is not optional; the UI is completely unreadable if you just let it use the physical dimensions to scale. There's nothing you can do. A preference is necessary to handle this case.
You could argue that this is a PEBKEC ignoring the fact that desktop environments care about this use case, but what you can't argue about is this: it's an accessibility issue. Having a magnifier tool is very important for people who have vision issues, but it is not enough. Users with vision problems need to be able to scale the UI. And yes, the UI, not text size. Changing the text size helps for text, but not for things like icons.
If you want to be able to sell Linux on devices in the EU, then having sufficient accessibility features is not optional.
Re: Ancient X11 scaling technology
#206Earlier quoted context omitted.
It's certainly very useful. I do half my work using X11 over ssh and it works reasonably well over a LAN (at least using emacs, plotting, etc).
"reasonably well" as in... yeah it works. But it's extremely laggy (for comparison, I know people who forwarded DirectX calls over 10Mbit ethernet and could get ~15 frames/sec playing Unreal Tournament in the early 00's), and any network blip is liable to cause a window that you can neither interact with nor forcefully close. It felt like a prototype feature that never became production-ready for that reason alone. T…
Re: Ancient X11 scaling technology
#207Earlier quoted context omitted.
You can absolutely do that on X11, but you have to do it in the client, and no one cares to do it.
if you have to do it in the client, aka the application, then it's not transparent to the application
Re: Ancient X11 scaling technology
#208It's not "can you provide the screen DPI to a window?" people bemoan, it's "can you draw one window across two screens with differing DPIs, transparent to the application?"
I'm struggling to imagine why would anyone ever want to do that. It's not even an edge case at this point, it's over the edge.
Re: Ancient X11 scaling technology
#209Earlier quoted context omitted.
Multi monitor with mixed DPIs absolutely does not work well in x11 in 2025. I don’t know about 20+ years ago.
It could , though. GTK has support for mixed DPI, just only for Wayland. There's no reason why it couldn't work on X11. It might be more tricky to get right, but it's just a matter of work.
Yeah, like every other conceivable feature, ever.
Re: Ancient X11 scaling technology
#210Earlier quoted context omitted.
It depends on the game/application and what you are running and your distro may have enabled TearFree for you. I use Debian and it isn't enabled by default. If I was to play Dark Souls 3 and/or Elden ring on Linux without tearfree. There is significant screen tearing and the game feels very choppy when playing. To enable TearFree on Xorg. You typically make a new configuration file that sits in /etc/X11/xorg.conf.d/…
> (it is the video itself not YouTube being a resource hog, I checked) Did you check by downloading the video and playing it with a good standalone video player like mplayer, vlc, or mpv? If you didn't, then you didn't disentangle the web browser from the video playback.
The only thing that was different was Wayland vs X11. Same browser, same browser settings, same OS and same plugins.