https://bugs.kde.org/show_bug.cgi?id=528669

--- Comment #3 from [email protected] ---
(In reply to Zamundaaa from comment #1)
> How is that "input time" measured? What does it measure?
> 
> Input latency determined through X11 is definitely not meaningful. Xwayland
> doesn't support presentation-time to check the actual presentation
> timestamps.

My bad. The "ms" value I used earlier is osu!'s frame time counter (1000 /
FPS), not
input latency, and I should not have called it that. I have not measured input
or presentation
latency, and I take that claim back. I understand Xwayland has no
presentation-time, so such a
measurement from inside osu! is not possible.

What I can show is the frame rate osu! reaches with its frame limiter set to
Unlimited, depending
on whether KWin uses direct scanout or compositing. Only
KWIN_DRM_NO_DIRECT_SCANOUT=1 changed
between runs (log out/in).

METHOD
MangoHud logging, ~30 s per run, started at the same point of the same map.
osu! fullscreen under
XWayland, no other programs running, 6 runs in this order: compositing x2,
direct scanout x2,
compositing, direct scanout. The state was checked beforehand with KWin's
showcompositing effect
(unloaded before logging). I did not use screenshots because they force
compositing.

RESULTS (MangoHud summary files, 3 runs per state)
- Direct scanout (default): avg 683-716 fps (1.40-1.46 ms), 1% min 318-333 fps,
  99th percentile frame time 2.9-3.1 ms
- KWIN_DRM_NO_DIRECT_SCANOUT=1: avg 1220-1233 fps (0.81-0.82 ms), 1% min
590-597 fps,
  99th percentile frame time 1.4-1.7 ms
Run order made no difference. CPU clock was the same in both states (~4.1 GHz);
mean CPU load was
lower with direct scanout (about 4.7% vs 6.7%).

HARDWARE / VERSIONS
Intel UHD (TGL GT1) iGPU drives the 144 Hz internal panel; the NVIDIA dGPU is
idle.
kwin 6.8.2-2, plasma-desktop 6.8.2-1, xorg-xwayland 24.1.15-1, mesa 1:26.2.6-1,
kernel 7.2.15-arch1-1.

The logs are attached. I changed the report title to describe the frame rate
observation. If there
is a KWin-side way to inspect frame pacing in the direct scanout case, tell me
what to run and I
will provide the output.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to