News for hackers. Stuff that matters.
Re:GNOME Shell and Mutter by emersion on Friday February 01, 2019 @05:30AM (#19053088)
>macOS doesn't expose fractional scaling to applications, it is done by the output encoder by scaling the entire framebuffer. For software, it is strictly integer only.

Wayland works the same way.

Re:GNOME Shell and Mutter by vetinari on Friday February 01, 2019 @05:41AM (#19053125)
I haven't looked into the sources, but my impression was, that it was using GPU to scale surfaces and then compose into final framebuffer, that is the same resolution as display. Not that it uses output encoder.

The quick test is, when I do a screenshot, I get a file with dimensions same as physical display, not logical resolution. On macOS, it is exacly the other way.

Scaling with GPU is more flexible; you can do things per surface instead of per desktop; but slightly more complicated (because you do things per surface instead of per desktop), takes away GPU capacity/memory bandwidth from applications when then might it, and is more power hungry when the GPU could be idle.

Re:GNOME Shell and Mutter by floatboth on Friday February 01, 2019 @09:36AM (#19054361)
That's up to the compositor, but pretty much everyone does it per surface indeed.

What everyone means by "it's like macOS" is that the same "render at ceil(scale) and downscale" general principle is used.