Summary: | WindowHeap-based effects have low window preview quality due to cheap / fast scaling algorithm | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Adam Fontenot <adam.m.fontenot+kde> |
Component: | effects-window-management | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | mihai.bazon, nate, postix, vlad.zahorodnii, xaver.hugl |
Priority: | NOR | ||
Version: | 5.24.4 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | screenshot of the problem and proposed resolution |
Just adding my voice here. I'm with KDE for 5 years and loving it, but since the QML rewrite of the desktop effects, that occurred in 5.25, the experience has been degraded to say the least. Window thumbnails look poor, and animation is choppy (for both desktop grid and present windows). I'm a developer myself and understand the benefits of having cleaner and more maintainable code, but this seems to have been rushed and the result is ugly compared to the smoothness of 5.24. Operating System: Arch Linux KDE Plasma Version: 5.26.0 KDE Frameworks Version: 5.99.0 Qt Version: 5.15.6 Kernel Version: 6.0.1-arch2-1 (64-bit) Graphics Platform: X11 Processors: 16 × AMD Ryzen 7 5700U with Radeon Graphics Memory: 22.9 GiB of RAM Graphics Processor: RENOIR Manufacturer: ASUSTeK COMPUTER INC. Product Name: VivoBook_ASUSLaptop X513UA_M513UA System Version: 1.0 *** This bug has been marked as a duplicate of bug 422117 *** |
Created attachment 151292 [details] screenshot of the problem and proposed resolution Everywhere a window preview is shown (e.g. in present-windows, in the window previews of Plasma's icons-only task manager, etc), it is low quality - meaning "pixelated" looking, with strong color fringing around text (when sub-pixel anti-aliasing is enabled for font rendering on the system). I am assuming that different tools utilizing window previews under KWin rely on the same scaling code, since the issue is the same in each case, so I'm reporting this as a general bug. STEPS TO REPRODUCE 1. Make sure the compositor's scale method is set to "accurate" instead of smooth - just in case it might have an effect. 2. Open a bunch of windows and then activate the "present windows" effect. (Opening a bunch of windows will make the resulting preview size smaller, which will make the problem easier to see on high resolution screens.) OBSERVED RESULT Quality is poor (see attached screenshot). Strong color fringing around text is probably caused by using a nearest neighbor / point algorithm to rescale the window preview. EXPECTED RESULT Quality is acceptable (see attached screenshot). For the sample shown in the screenshot, I captured the window at full resolution and used a (still very cheap and fast) bilinear filter to create a preview of the same size as the one created by KWin. Window rescaling is probably GPU accelerated anyway (?) so I don't think using a slightly more expensive algorithm like bilinear should be a problem. If it might be on some systems, perhaps a setting to enable or disable it could be added. SOFTWARE/OS VERSIONS Linux: Arch Linux x86_64 (kernel 5.18.16-arch1-1) KDE Plasma Version: 5.25.4 (x11) KDE Frameworks Version: 5.96.0 Qt Version: 5.15.5 ADDITIONAL INFORMATION I've always thought it would be nice if window previews also showed the window decorations.