18

Pointer Latency

 4 years ago
source link: https://rsms.me/pointer-latency/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

dispatch → requestAnimationFrame: avg/min/max - / - / - ms

This measures the time between an event being dispatched in the document and the event being read in a requestAnimationFrame callback function. This is a good measure for the average input delay a game would experience. requestAnimationFrame(() => sample = now() - ev.timeStamp)

Note that an input event is usually delayed by 5-20ms on top of the delay you see above; the time it takes an event to be queued in the OS until the web browser app has received it and processed the event.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK