frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

https://marco-nett.de/blog/measuring-input-latency-on-linux-x11-vs-wayland-vrr-dxvk/
93•hoechst•1h ago

Comments

overtone1000•57m ago
This is why I read Hacker News. Thank you.
cgyvbunji•51m ago
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 more often, of all sorts of things.
superkuh•42m ago
You can't just test one wayland compositor and talk about the performance of all wayland compositors. They're vastly different, especially when it comes to the extensions to wayland needed to handle input devices (ref: https://wayland.app/protocols/). It's not like how xorg is the standard strong reference implementation for X11 everywhere that works the same everywhere.

What's probably happening is that other wayland compositors are slower than KDE Plasma wayland which he tested. And people report that experience. Some other wayland compositors might even be faster than plasma. But what is for sure is that every wayland is very different from every other wayland.

hparadiz•15m ago
You will also get different results by gpu, compiler, kernel, architecture, and then of course compositor. Even a slightly different version of some lib might throw off the results.

In any case the methodology in the post is sound and should be used for benchmarking in the future.

zamalek•9m ago
And FWIW, KDE probably make the most effort with their compositor. They have historically been well ahead of the curve for things that might affect this (e.g. VRR).
datakan•23m ago
I've been using Linux since the mid 1990's. I'm no newbie to any of this. I literally can't tell the different between X11 and Wayland when using either of them and I don't care about all the arguing. This is just Vim vs Emacs and Gnome vs KDE all over again. At this point when I see people complaining about it I just click off the page. It's all stupid and pointless.
cgyvbunji•15m ago
Yes, fully agree, advice like "old thing is better than new thing in this particular category" tends to not last because new thing has people actively working to make new thing good. Exceptions are when the underlying technology is inherently different like the response time of CRT and OLED (fast) vs LCD (inherently slow, keeps getting faster but will probably never match OLED).
tapoxi•11m ago
I mean normally this type of discussion is silly, but in playing competitive shooters latency does make a huge difference, and it shows that XWayland is adding ~4ms of latency.

There is a native Wayland driver for Wine/Proton but it's enabled through an environment variable, not by default. This will probably be default in Wine 12/Proton 12 because Valve wants to squeeze as much performance out of SteamOS as possible. The gaming mode UI runs under Valve's own Wayland compositor (gamescope) already, but games are currently in nested XWayland windows.

hparadiz•47m ago
Amazing work. Thank you for putting this together.
shmerl•44m ago
> A lot of people still use X11 over Wayland because Wayland is said to have much worse input lag

Wayland is fine. People should use AMD and KDE Plasma.

I'd avoid Nvidia to begin with.

bigyabai•41m ago
AMD's Mesa drivers are better, but if you already have an Nvidia card then you can still use it just fine with Wayland.

The biggest hit is Vulkan performance (~20% less than Windows iirc) but for desktop and casual gaming use, Nvidia's proprietary drivers are perfectly fine.

tfrancisl•18m ago
Seconding this. I'm not happy with the fact that the drivers are proprietary, I really prefer FOSS. But, I am tired of having to deal with FUD around performance and issues with NVIDIA devices which simply don't exist at scale.

I have friends who are stuck on Windows not because they play games with Windows-only anticheat, but because theyve been told by GNU heads that NVIDIA drivers simply don't perform acceptably on Linux.

BearOso•13m ago
[delayed]
PcChip•42m ago
I saw a very similar post a month or two ago, is this the same author?

edit: no, this is the one I was remembering: https://farnoy.dev/posts/linux-latency

stusmall•38m ago
Great article! Thank you. Also in case others walked away with the same question I had, I'll save you the googling: use the utility vrrtest to help validate if VRR is properly configured on your machine.
esseph•38m ago
From the "Similar Efforts" section toward the bottom:

---

David Ramiro built his m2p-latency and compared X11 vs Wayland in his article Building an Input Latency Meter (Because ‘Wayland Feels Off’ Isn’t a Metric) as well, coming to similar conclusions:

Native Wayland is on par with native X11 (all tied at ~7 ms), while XWayland roughly doubled the latency in his tests.

farnoy did extensive testing with the Open-Source-LDAT in his post Linux latency measurements and compositor tuning, also concluding that XWayland should be avoided.

prhn•34m ago
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 very interested how that fits in these results. hyprland uses Wayland so I hope the author might revisit now that hyprland is gaining in popularity.

I’ve considered using gamescope to hopefully get in front of some of these concerns, but I’m on nvidia and there is some discussion about it not working well there.

Now the author's got me thinking about gaming-optimized kernels, which I did not realize was a thing.

I play competitive fighting games so input latency is a huge concern. Would love to hear from anyone else who’s been down this path.

marinhero•9m ago
I moved to OpenSuse and have the same experience/opinion. The only caveat I had in Wayland is Game Streaming. Sunshine/Moonlight work but the input lag is noticeable and there are artifacts in the game. I go back and forth between X11 and Wayland just because X11 better for game streaming but in time I'm sure I'll go full-time into Wayland.
seba_dos1•34m ago
There's no such thing as "Wayland input latency". It's just a word salad, akin to "HTTP animation smoothness". The post is measuring Xorg vs. KWin (and also XWayland), other implementations of either X11 or Wayland will have different characteristics.

I wonder where the XWayland's added latency comes from though, it seems suspiciously high to just be easily hand-waved as overhead.

modeless•21m ago
This is awesome. I would like to see tests like this done at 60 Hz as well, and also with non-3D apps. I suspect the results might look different in those conditions. A 500 Hz monitor is not the common case. 2ms is a whole frame!
NelsonMinar•21m ago
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 is possible.

I recently switched to Linux after years on Windows desktop, mostly because the KDE Plasma desktop feels snappier than Windows 11. Also the feeling that if something isn't working right I can probably tinker and improve it. It's been really nice. If you haven't tried Linux desktops in awhile give Bazzite a whirl: it's a Fedora customized for gaming. Even if you don't game it's an easy way to get a very functional Linux desktop in no time at all.

calvinmorrison•20m ago
X11 is a protocol. Xorg is an end of life'd project run by the Wayland team.

Xlibre is an actively developed and maintained X11 protocol display server.

Xfree86 is dead, long live Xorg. Xorg is dead, long live Xlibre!

dreamlayers•15m ago
Why isn't Wayland better than X11?
hs86•13m ago
It looks like consoles and PCs have settled on somewhat different gaming configurations. Consoles usually try to target a fixed output frame rate, while the resolution is often dynamic. On PCs, by contrast, the resolution stays static, while the frame rate and frame-time pacing are dynamic. How does this fit into the latency discussion?

Especially in competitive gaming, I often see people targeting frame rates way beyond their display’s refresh rate. I’m not sure whether this actually provides a real benefit or whether they’re chasing a placebo effect.

Am I out of touch, or is it the children with colored LEDs on their DRAM sticks who are wrong?

Cieric•8m ago
As someone who is in the rendering space for work. Having a higher framerate does help, but in a weird way. Basically the start of the frame rendering is what mostly dictates where objects are rendered. By getting a higher framerate the position of objects that you see in game are much closer to their "real" position. So it's less about seeing more frames at that point and more about seeing the most up to date information possible. Technically it could be possible to render the frame in sync with the framerate and just offset the rendering so it finishes right before it's pushed to the screen, but if you're slightly wrong you'll get really bad stuttering and the execution time of gpus and the cpu submitting the work isn't really deterministic.
rcxdude•6m ago
Framerates beyond your display's refresh rate are not completely pointless, though a bit wasteful: they do mean that each frame as it is displayed shows a more up-to-date representation of the game state than if your framerate is matched to your refresh rate. In principle you don't need to render the excess frames: ideally your frame time is predictable enough you can kick off the render just before the display refresh, but the penalty is that if you miss the deadline you get some pretty jarring jankiness.
bsimpson•6m ago
The Rock Band guitars have a photoresistor for precisely this purpose: the screen flashes and the guitar responds when the light hits it. It helps make the otherwise very painful calibration process transparent.

It would be so cool to get that to work in Linux. I know the instrument code is in hid-sony. I think I've got some tabs open somewhere with some leads from the last time I was curious about this.

Telaneo•5m ago
I have a vague memory of (X?)Wayland being much worse than X11 before, and some patch or protocol making it out to all the relevant implementations, but I might have imagined that, since these result show virtually no difference, and only XWayland shows a marginal difference.

Or maybe it just came out of nowhere and was never true.

The Most Expensive Dinosaur Just Sold for $50.1M

https://www.wsj.com/arts-culture/fine-art/gus-trex-auction-sothebys-sale-price-07f7ef40
2•fortran77•1m ago•1 comments

6× faster batched binary search in Rust

https://pythonspeed.com/articles/branchless-binary-search/
1•fanf2•2m ago•0 comments

Massive AI spending is driving up prices on laptops and electricity, Fed watches

https://www.fastcompany.com/91572617/massive-ai-spending-driving-up-prices-laptops-electricity-as...
2•1vuio0pswjnm7•2m ago•0 comments

Congressional Ratification of President Trump's Corporatism

https://ronpaulinstitute.org/congressional-ratification-of-president-trumps-corporatism/
1•metanoia_•4m ago•1 comments

I built a no-signup solar cost and payback calculator

https://sunmetriclab.com/
1•georgejr•4m ago•0 comments

Jovita one AI hub instead of five subscriptions

https://usejovita.com
1•Ayo245•4m ago•0 comments

Fibonacci's Liber Abaci [pdf]

https://www.mifami.org/eLibrary/Fibonacci-LiberAbaci-QuadClass-2pp.pdf
1•jruohonen•6m ago•0 comments

Weather App Could Soon Develop Blind Spots

https://www.bloomberg.com/opinion/articles/2026-07-14/your-weather-app-could-soon-develop-blind-s...
1•littlexsparkee•7m ago•1 comments

Tokenomics: View token usage, costs, and rate-limit metrics

https://github.com/skuznetsov/tokenomics-viewer
1•samaysharma•8m ago•0 comments

Migrate from Datadog to Grafana

https://shiftmetrics.com/
1•gunapologist99•9m ago•1 comments

Long Covid May Affect Motivation and Memory by Injuring Brain's Dopamine System

https://www.discovermagazine.com/long-covid-may-affect-motivation-and-memory-by-injuring-the-brai...
1•amichail•10m ago•1 comments

Korea Financial Telecommunications Files Patent for Won Stablecoin System

https://en.sedaily.com/finance/2026/06/19/korea-financial-telecommunications-files-patent-for-won
1•mushstory•11m ago•0 comments

Harness Engineering for Self-Improvement

https://lilianweng.github.io/posts/2026-07-04-harness/
2•gmays•11m ago•0 comments

Another Entry in the "Stuff Im Glad Im Not Responsible for" Ledger

https://blog.cloudflare.com/dnssec-nta-ede-33/
1•c_f_•12m ago•0 comments

AI makes learning feel too easy

https://blog.danielyj.com/blog/ai-makes-learning-feel-easy
1•bear_with_me•13m ago•0 comments

Generative AI Is an Engineering Disaster

https://www.theatlantic.com/technology/2026/07/generative-ai-engineering-disaster/687901/
3•Jtsummers•14m ago•1 comments

show hn: 1d data to 3D topology, AI deepfakes to protien folding

https://github.com/bitofabluetit/knotreel
1•bitofabluetit•14m ago•1 comments

Cyclist disqualified for using video-recording sunglasses

https://www.bikeradar.com/news/cyclist-disqualified-for-using-video-recording-sunglasses-calls-ou...
1•cainxinth•16m ago•0 comments

I used to believe in Andrew Kelley

https://liamswayne.github.io/andrew.html
2•liamswayne•18m ago•0 comments

Litert.js, Google's High Performance Web AI Inference

https://developers.googleblog.com/litertjs-googles-high-performance-web-ai-inference/
1•impostervt•18m ago•0 comments

Mise – swipe to discover recipes, get a handled grocery list and meal plan

https://www.themiseapp.com
2•brycehenley•19m ago•0 comments

One issue every 62 lines: 21.6M lines of AI-generated code, scanned

https://github.com/qualityclouds/state-of-ai-code-2026-
3•albertfranquesa•19m ago•0 comments

Apple Is Suing OpenAI for Allegedly Stealing Hardware Secrets

https://www.wired.com/story/apple-sues-openai-allegedly-stealing-ip-hardware/
3•1vuio0pswjnm7•20m ago•1 comments

AI agent for Skylight Calendar Chore chart [video]

https://www.youtube.com/watch?v=EHghXf1IIo4
1•timliu9•21m ago•0 comments

Crates.io: Development Update

https://blog.rust-lang.org/2026/07/13/crates-io-development-update/
3•birdculture•23m ago•0 comments

Meta's Pursuit of the *Careless People* Author Is Relentless and Self-Defeating

https://www.wired.com/story/metas-pursuit-of-the-careless-people-author-is-relentless-and-self-de...
2•1vuio0pswjnm7•23m ago•0 comments

Show HN: Automagically synchronize subtitles with video, in-browser clientside

https://smacke.net/ffsubsync/
1•smacke•24m ago•0 comments

Show HN: Pullrun – Run One OCI Image as a Container, Firecracker, or Apple VM

https://github.com/pullrun/pullrun
2•pullrun•25m ago•0 comments

Microsoft Reports Maasive 25 Percent Jump in Emissions

https://www.wired.com/story/microsoft-25-percent-jump-in-carbon-emissions/
4•1vuio0pswjnm7•25m ago•1 comments

Ask HN: Advice for first-year CS students?

4•jassembk•25m ago•2 comments