Someone finally measured Linux input latency with a real oscilloscope

4 min read 1 source explainer
├── "Wayland is no longer the latency-cursed cousin of X11 — the old folklore is obsolete"
│  ├── Marco Nett (marco-nett.de) → read

Using a photodiode-and-microcontroller rig to measure true click-to-photon latency, Nett shows that modern Wayland compositors (KWin, Hyprland, Mutter) with tearing presentation support are no longer meaningfully worse than X11 — and are often better. He argues the persistent 'Wayland has more input lag' narrative is based on 2019-era compositor behavior that no longer describes the current landscape.

│  └── @hoechst (Hacker News, 364 pts) → view

By submitting the study to Hacker News where it earned 364 points, hoechst signal-boosts the finding that instrumented hardware measurement — not subjective feel or framerate counters — is what's needed to settle the X11-vs-Wayland latency debate. The high score reflects broad community appetite for empirical resolution of this long-running argument.

├── "Hardware instrumentation is the only credible way to measure input latency"
│  └── Marco Nett (marco-nett.de) → read

Nett rejects framerate counters, presentation_time protocol traces, and subjective feel as inadequate proxies for what users actually experience. His photodiode-on-monitor plus microcontroller-on-mouse-button setup captures the true click-to-photon interval in microseconds, which he argues is the only measurement that corresponds to human perception of responsiveness.

└── "Variable Refresh Rate is the dominant factor in latency — bigger than the X11/Wayland choice"
  └── Marco Nett (marco-nett.de) → read

Across the test matrix, Nett finds that toggling VRR produces larger latency swings than switching display servers or translation layers. This reframes the optimization priority for Linux gamers: enabling VRR matters more than picking the 'right' compositor or arguing about DXVK overhead.

What happened

Marco Nett published a hardware-instrumented input latency study that does something the Linux graphics discourse has been missing for years: it actually measures the thing everyone argues about. Instead of relying on framerate counters, `presentation_time` protocol traces, or subjective feel, the setup uses a photodiode taped to the monitor and a microcontroller wired to a mouse button, timestamping the click and the resulting photon change on the display. That gives a true click-to-photon number in microseconds, which is the only latency measurement that matters to a human hand.

The test matrix covers the combinations that actually ship on desktops today: X11 vs Wayland (both with tearing and vsync variants), Variable Refresh Rate on and off, and native Vulkan vs DXVK-translated Direct3D. The workload is a game — the domain where these differences are felt hardest — but the results generalize to anything where a compositor sits between your input device and your eyes: terminals, IDEs, drawing tablets, live coding.

The headline result is that Wayland, long treated as the latency-cursed cousin of X11, is no longer meaningfully worse — and in several configurations is meaningfully better. The forced-vsync narrative that dominated Wayland criticism from roughly 2018 through 2022 no longer describes the current compositor landscape. KWin, Hyprland, and (increasingly) Mutter now support tearing presentation, which removes the compositor's insistence on holding a frame until the next vblank.

Why it matters

For a decade, "Wayland has more input lag" has been a load-bearing argument in the Linux desktop discourse. It came from real measurements on real 2019-era compositors — but the ecosystem moved on, and the folklore didn't. This kind of instrumented study is how you break a stale consensus: not with a Reddit thread, but with a photodiode and a scope trace.

The far more interesting finding is that Variable Refresh Rate dominates the latency budget on any modern display. When VRR is on, the monitor refreshes when the GPU is ready instead of forcing the GPU to align to a fixed 60/120/144 Hz grid. That single change often produces a larger latency reduction than the entire X11-to-Wayland gap that people have been arguing about. If you're on a FreeSync or G-Sync-compatible panel and you've left VRR off because the KDE toggle scared you, you're leaving the biggest possible win on the table.

The DXVK numbers are the other quiet surprise. DXVK translates Direct3D 9/10/11 calls to Vulkan on the fly, and the received wisdom is that this translation layer costs you meaningful latency versus a native Vulkan path. The measurements show the DXVK overhead is small enough that in many titles it disappears into the noise floor of the compositor and driver stack. For the Proton/Steam Deck audience, that's a pretty consequential data point — it means the translation layer is not the bottleneck people assumed, and further optimization effort is better spent on the compositor and swapchain paths.

The methodological point may outlast the specific numbers. Most latency measurements on Linux to date have been indirect: `MangoHud` frame times, `vblank_mode=0` benchmarks, or Wayland's `presentation_time` protocol reporting when the compositor *thinks* the frame went out. All of those miss the last mile — the scanout, the panel response, the monitor's own internal processing. A photodiode doesn't lie. If you're serious about latency work on Linux, the takeaway is that you should be building or buying hardware measurement rigs, not trusting the software counters.

What this means for your stack

If you're on Wayland and haven't touched your compositor settings since installing, three concrete moves are worth making tonight. First, enable tearing (`kwin_wayland --tearing` on KDE, `env = WLR_DRM_NO_ATOMIC,1` and the tearing flag in Hyprland's config, or the equivalent for your compositor). This is what closes the gap with X11 in the measurements. Second, turn on VRR at both the compositor and the game level — the compositor pass-through has to be enabled for the game's VRR request to actually reach the monitor. Third, verify your panel is actually in its VRR range; some monitors only VRR between 48 and 144 Hz and fall back to fixed refresh outside that window.

For gamedev, engine, and Proton contributors, the DXVK finding reframes the optimization priority list. If translation overhead is not where the milliseconds are going, then the swapchain presentation mode, compositor buffer handoff, and driver scheduling are the places to focus. This aligns with the direction Valve's Proton team has been pushing — the recent work on `gamescope`'s low-latency path is more consequential than any further trimming of DXVK's shader translation.

For anyone shipping a desktop app where responsiveness matters — creative tools, terminals, IDEs — the instrumented approach is worth adopting, at least once, to see where you actually sit on the click-to-photon axis. You cannot optimize what you cannot measure, and the software counters people have been trusting for a decade are measuring the wrong thing.

Looking ahead

The interesting follow-up work is a wider matrix: more compositors (GNOME's Mutter is the notable absence here), more GPUs (the AMD-vs-NVIDIA split on Wayland is still non-trivial), and more workloads outside gaming. The instrumentation is cheap enough — a photodiode, a Teensy, an evening's soldering — that this could and should become the standard rig for anyone benchmarking desktop responsiveness on Linux. The Wayland-is-laggy meme took years to die. Hardware measurements like this are how it finally gets buried.

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.