Patrick Dubroy
@dubroy
I tried to doing something "dumb" and update the position of an object with requestAnimationFrame.

In theory, rAF is supposed to be synced to the display refresh rate.

It's surprisingly inconsistent in Chrome! Compare the distribution of frame times to Swift/CVDisplayLink
Tweet image Tweet image
Dec 13, 2023 · 2

Not sure how to get meaningful results on Safari, since I'm relying on performance .now(), which (TIL) is not as accurate as one might like: github.com/w3c/hr-time/pu…

https://twitter.com/dubroy/status/1734863322078433673 ∙ Archived on 2025-03-28.

← Twitter Archive: 2023