Skip to content

Best practices for minimizing input latency? #10332

Answered by photonstorm
tylandercasper asked this question in Q&A
Discussion options

You must be logged in to vote

This is just how the main thread of the browser works. The only thing you can do is eliminate every possible thing the browser could be doing (including extensions, prefetching, background loads, etc). Low latency input is currently being discussed by the w3c and was the subject of a recent breakouts day (w3c/breakouts-day-2024#2) - although I wouldn't hold your breath for this landing client side for a good while. Wrapping your code into a native app may help eliminate some of the cruft going on that you've no control over. Equally, the very use of Pixi is going to cause delays in the main thread. Would be worth using a very simple plain HTML page, with nothing on it but a bit of JS to t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tylandercasper
Comment options

Answer selected by tylandercasper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants