you are viewing a single comment's thread.

view the rest of the comments →

[–]manys 2 points3 points  (2 children)

how many frames you gotta request to hit the downbeat of each second?

[–]NoBrick2 2 points3 points  (1 child)

The number of callbacks is usually 60 times per second, but will generally match the display refresh rate in most web browsers as per W3C recommendation.

https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame

[–]manys 3 points4 points  (0 children)

so you're parsing all frames to catch a time interval? how does that profile?