|
|
|
|
|
by jefftk
1162 days ago
|
|
That's right. These demos are, as they should be, using requestAnimationFrame [1]. The docs have "Warning: Be sure to always use the first argument (or some other method for getting the current time) to calculate how much the animation will progress in a frame, otherwise the animation will run faster on high refresh rate screens." Though there are cases like iOS cross-origin frames where it's throttled to 30fps [2] for power-saving reasons. [1] https://developer.mozilla.org/en-US/docs/Web/API/window/requ... [2] https://bugs.webkit.org/show_bug.cgi?id=168837 |
|