TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The effect of web browser “Input Lag” in HTML5 games (2017)

56 pointsby HugoDanielabout 4 years ago

3 comments

modelessabout 4 years ago
Fun fact: DWM enforces &gt;1 frame of input lag on every Windows application running in a window. It is impossible to do better than 1 frame. But DWM itself does better: when you drag windows around they apparently stick to the mouse cursor exactly, which would be zero frames of latency. How do they do it? By cheating: they <i>delay</i> the mouse cursor by one frame, only while you are dragging a window. So the latency is still there but less obvious because it doesn&#x27;t cause a difference between the cursor and window motion.
评论 #26532001 未加载
评论 #26532054 未加载
评论 #26531828 未加载
flohofwoeabout 4 years ago
Mouse-to-display lag is even a hard problem in native desktop applications. TBH in this demo it doesn&#x27;t look much worse than in a macOS, Windows or Linux UI application that renders through a 3D-API (and doesn&#x27;t use all sorts of platform-specific hacks and tricks trying to minimize mouse latency).
newobjabout 4 years ago
Can anyone opine as to how these tests are achievable in a browser?
评论 #26535680 未加载