5 ms·
> very hard to avoid microstuttering It's not just very hard to avoid microstuttering. It's quite literally impossible. And it's not just the timer precision.
by smaddox 5y ago
> very hard to avoid microstuttering
It's not just very hard to avoid microstuttering. It's quite literally impossible. And it's not just the timer precision. Chrome's `requestAnimationFrame` actually provides a full precision frame start time, but even if all your page does is render a single solid-color triangle (that alternates between cyan and magenta every frame), you still cannot avoid microstuttering, because the compositor will periodically drop frames. Ironically, the browser engines on mobile phones seem to do better, presumably because of limited multitasking.
Source: I've spent more hours than I care to admit trying to avoid dropped frames in https://sneakysnake.io https://sneakysnake.io . To see how bad it remains, check out the triangle in the bottom left corner of https://sneakysnake.io?dev=true https://sneakysnake.io?dev=true . If it looks anything other than grey, then the browser is dropping frames.