Test: requestAnimationFrame

Use requestAnimationFrame to know the FPS.

検証済みのブラウザ

  • 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)