https://bugs.kde.org/show_bug.cgi?id=528669
Bug ID: 528669
Summary: Fullscreen XWayland game has higher input time with
direct scanout than with compositing (Intel iGPU,
6.8.2)
Classification: Plasma
Product: kwin
Version First 6.8.2
Reported In:
Platform: EndeavourOS
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: performance
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
I used an AI assistant to help organize my notes. All numbers are from my own
testing.
SUMMARY
On Plasma 6.8.2, osu! (wine, XWayland) reports about 1.4 ms input time in
fullscreen when KWin uses
direct scanout. With compositing forced, it reports 0.8-0.9 ms. Before updating
from Plasma
6.7.5 to 6.8.2 it was 0.6-0.7 ms. I would expect direct scanout to be equal to
or lower than
compositing, not higher.
STEPS TO REPRODUCE
1. Run osu! stable via the osu-wine script (wine-osu 11.19-1,
https://github.com/NelloKudo/osu-winello)
under XWayland, mode osu!mania.
2. osu! settings: fullscreen, native 1920x1080, frame limiter unlimited,
compatibility mode off,
reduce dropped frames off, all detail settings off.
3. Read the average input time from osu!'s own tool and/or from
goverlay/MangoHud.
4. Repeat with KWIN_DRM_NO_DIRECT_SCANOUT=1 exported from
~/.config/plasma-workspace/env/kwin.sh.
OBSERVED RESULT
- Default (KWin "Show Compositing" label NOT visible in osu, so direct scanout
is active): ~1.4 ms
- Night Light enabled (label visible, compositing): ~0.8-0.9 ms
- KWIN_DRM_NO_DIRECT_SCANOUT=1 (label visible, compositing): ~0.8-0.9 ms
- Unchecking "Enable EDR" in Display Configuration (panel is HDR-incapable)
changed it by only
~0.1 ms.
EXPECTED RESULT
Direct scanout should not increase input time compared to compositing.
SYSTEM
EndeavourOS (Arch Linux)
kwin 6.8.2-2, plasma-desktop 6.8.2-1, xorg-xwayland 24.1.14-1, mesa 1:26.2.6-1
kernel 7.2.14.arch1-1, wine 11.21-1, nvidia-open-dkms 615.78.08-1
Hybrid ASUS laptop: Intel UHD (TGL GT1) iGPU drives the internal 1920x1080 144
Hz panel; the
NVIDIA RTX 2050 dGPU has no outputs and is idle while playing. osu! renders on
the Intel GPU.
Adaptive sync: Never. Screen tearing: allowed in fullscreen. No color profile.
Color accuracy:
prefer efficiency.
ADDITIONAL INFORMATION
My measurements are averages over repeated play sessions, not in a controlled
benchmark. The
regression was first noticed after a system update on Oct 30 (Plasma 6.7.5 to
6.8.2) that also
changed the kernel, pipewire and wine, so I can't rule out other causes from
that update alone.
However, the comparison above (direct scanout versus
KWIN_DRM_NO_DIRECT_SCANOUT=1) was done on
the same installed system with only that environment variable changed (log
out/in), so the
difference comes from KWin's presentation path. I can provide a DRM debug log
for the direct
scanout case if needed.
--
You are receiving this mail because:
You are watching all bug changes.