Test: requestAnimationFrame

Use requestAnimationFrame to know the FPS.

Browsers that have been tested

  • Chrome 93 passed
  • Firefox 90 failed
  • Edge 92 passed
  • Safari 14 passed

I checked with a 144hz monitor, Firefox does not seem to be able to use more than 60FPS.

  • The number of requestAnimationFrame calls per second depends on the monitor's refresh rate setting
  • When the tab of this page are hidden (background), will be called less of requestAnimationFrame for improve performance and reduce battery consumption.

0 fps
(max 0 fps)