Hacker News new | ask | show | jobs
by dannyw 2256 days ago
It actually uses a time-based interval and tries to move every 5ms. At this resolution, different browsers will handle it differently.

Most web displays run at 60 Hz (16.66ms), making it inefficient to update every 5ms. 144Hz displays do exist and are wonderful, but you should always use requestAnimationFrame anyway.