Someone finally measured Linux input latency — X11 still wins

4 min read 1 source explainer
├── "X11 still beats Wayland on input latency, but the gap has narrowed dramatically and Hyprland nearly closes it"
│  └── Marco Nett (marco-nett.de) → read

Nett's hardware-instrumented measurements (photodiode + microcontroller reading the same button press the OS sees) show X11 still has lower end-to-end latency than Wayland in most desktop scenarios, but the gap is far smaller than 2020-era benchmarks suggested. Hyprland closes almost all of the gap, Mutter closes some, and KWin sits in the middle — meaning the choice of compositor now matters more than the display server protocol.

├── "Hardware measurement is the only credible way to evaluate input latency — software tools lie"
│  └── Marco Nett (marco-nett.de) → read

Nett explicitly rejects xinput, libinput debug, and in-game overlays because they each add their own latency to what they claim to measure. His rig reports the wall-clock delta between physical click and first photon of the resulting frame, which is the only number that reflects what a user actually feels. He also insists on reporting jitter and frame counts alongside means, because a compositor averaging 8ms with 40ms spikes feels worse than a steady 12ms one.

├── "DXVK on Linux matches or beats native DirectX on Windows — the 'translation overhead' folklore is wrong"
│  └── Marco Nett (marco-nett.de) → read

The measured end-to-end latency of D3D9/10/11 titles running through DXVK on Linux was comparable to or better than the same titles running natively on Windows. Nett attributes this to DXVK being a leaner layer than what modern Windows drivers wrap around DirectX, plus the X11 compositor path avoiding forced compositor round-trips. This directly contradicts a decade of forum wisdom about translation layers being inherently slower.

└── "VRR on Wayland is fragile — mixed-workload outputs break frame pacing"
  └── Marco Nett (marco-nett.de) → read

VRR reduces average latency when framerates are unstable, which is its intended benefit. But on Wayland compositors, VRR interacts badly with other windows sharing the same output — a browser scrolling next to a game visibly perturbs frame pacing. This means the practical benefit of VRR on Linux today depends heavily on running the game as the sole active surface, which is an unrealistic constraint for typical desktop use.

What happened

Marco Nett published a long-form measurement study that does something the Linux desktop community has argued about for a decade without actually doing: measure end-to-end input latency with hardware, not software. The rig uses a photodiode taped to the monitor and a microcontroller reading the same button press the OS sees, so the number reported is the wall-clock delta between the physical click and the first photon of the resulting frame. No `xinput`, no `libinput debug`, no in-game overlays — all of which add their own latency.

The test matrix covers X11 vs. multiple Wayland compositors (KWin, GNOME's Mutter, Hyprland), with and without Variable Refresh Rate (VRR), and includes DXVK-translated D3D9/11 titles alongside native OpenGL and Vulkan workloads. Frame counts and jitter are reported alongside means, which matters because a compositor that averages 8ms but occasionally spikes to 40ms feels worse than one that lands at a steady 12ms.

The short version of the results: X11 still measures lower latency than Wayland in most desktop scenarios, though the gap has narrowed sharply from the numbers you'd see quoted from 2020-era benchmarks. Hyprland closes almost all of it. Mutter closes some. KWin sits in the middle. VRR reduces average latency when framerates are unstable, but on Wayland it interacts badly with other windows on the same output — a browser scrolling next to your game can visibly perturb frame pacing.

Why it matters

The interesting result isn't the ranking — it's the DXVK finding. DXVK, the Vulkan-based translation layer that lets Windows D3D9/10/11 games run on Linux, measured comparable or better end-to-end latency than native DirectX on Windows for the same titles. That contradicts a decade of forum wisdom about "translation overhead." The reason, once you look at it, is boring: DXVK is a leaner layer than what modern Windows drivers wrap around DirectX, and the Linux compositor path on X11 doesn't force triple-buffering the way DWM often does. The "overhead" was mythical because the baseline had its own overhead nobody was measuring.

Compare this to the standard way these debates get conducted. Someone runs `presentmon` on Windows, someone else runs a frame-time overlay in MangoHud on Linux, and the numbers get shouted across a Reddit thread. Both tools measure something real, but neither measures what the user actually feels — the delay between a mouse click and a photon. Nett's study is worth reading precisely because it exposes how much of the received wisdom about Linux desktop performance is downstream of measurement artifacts rather than the OS itself.

The Wayland-vs-X11 result also complicates the usual talking points. X11 protocol veterans point to its lower latency in the exact scenarios Nett tests as evidence Wayland is a regression. Wayland proponents point out that X11's latency win comes from architectural choices — direct scanout, minimal compositor involvement — that also make it structurally incapable of tear-free per-window VRR or HDR. Both are correct. The right frame is that Wayland is trading a small, measurable latency cost for a set of features X11 architecturally can't deliver, and whether that trade is worth it depends entirely on what you're doing.

For a competitive shooter on a 240Hz display, the trade is bad. For a laptop user who wants HDR video and fractional scaling without tearing on an external monitor, the trade is obviously good. "Wayland is slower" and "Wayland is better" are both true statements about non-overlapping workloads.

What this means for your stack

If you're on Linux for gaming or any latency-sensitive workload — audio production, live video, twitch-shooter esports — the study gives you a defensible reason to stay on X11 for now, or to specifically choose Hyprland if you want Wayland's ecosystem improvements without the latency regression on more mature compositors. It also gives you a reason to stop worrying about DXVK: if you're playing D3D9/11 titles through Proton, you're not leaving performance on the table versus running them on Windows. In some cases you're gaining it.

For everyone else — which is most developers, most of the time — the practical takeaway is that the desktop compositor you use adds 4-15ms of latency depending on choice, and the compositor's stability of that number matters more than the mean. If you're building software where UI responsiveness is a real KPI (IDEs, terminals, drawing tools, remote-desktop clients), measure your own tail latencies rather than trusting compositor benchmarks, because the compositor is one hop in a chain that also includes your event loop, your rendering pipeline, and your framebuffer path.

The methodological point generalizes past the Linux desktop. Any time you see a benchmark that reports latency using software timers running on the same machine as the thing being measured, be skeptical. Photodiodes and external microcontrollers exist because the alternative — asking the system under test to time itself honestly — is a category error. If you're evaluating a claim about database write latency, CDN edge latency, or GC pause times, the same question applies: what's measuring the measurer?

Looking ahead

The X11-vs-Wayland debate is on a slow clock that only runs one direction. X11's maintenance is winding down, and by the time the compositor situation is fully mature on Wayland, most of the desktop-Linux population will have migrated by attrition. The interesting question isn't whether Wayland wins — it does, eventually — but whether the compositor implementations converge on the low end of the latency band or whether Hyprland's numbers turn out to be a local optimum that Mutter and KWin can't reach without giving up the architectural bets they've made. Watch that gap over the next 18 months; it'll tell you more about the shape of the Linux desktop in 2028 than any roadmap will.

Hacker News 377 pts 246 comments

Measuring Input Latency on Linux: X11 vs. Wayland, VRR, and DXVK

→ read on Hacker News
NelsonMinar · Hacker News

One thing that's lovely about Linux is this kind of analysis is not only possible, but meaningful. These results will get reported back to the graphics software authors and the distribution packagers and the ecosystem will improve. There's no sense with Microsoft that kind of improvement i

prhn · Hacker News

Awesome article.I switched my daily driver / gaming rig to Fedora a few months back.Everything seems snappier compared to Windows, but not sure if it’s in my head, and I’ve been very curious about gaming input latency. This helps answer some questions.I recently switched to hyprland and I’m ver

billev2k · Hacker News

Contrast is your friend. Or at least mine.

Aurornis · Hacker News

This used a 500Hz display which hides a lot of the problems that would show up on slower displays.The XWayland result is 3ms slower, which at refresh rates this high makes me wonder if it was one frame behind.Running the tests at 120Hz or even 60Hz might be more interesting because we could start to

cgyvbunji · Hacker News

He seems confused at the end why people think wayland is so slow, but don't you think it's because of his xwayland result? People were probably running x11 games on wayland and noticed that significant lag. Just a wild guess. Very nice article, wish people did actual measurements like this

// share this

// get daily digest

Top 10 dev stories every morning at 8am UTC. AI-curated. Retro terminal HTML email.