/fpscounter

A fps counter package to let js know what's the maximum framerate that the client can run.

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

fpscounter

A fps counter for browsers

Useage

npm install fpscounter
import 'fpscounter';
console.log(window.fpsCounter.fps);
fps.counter.stop();
fps.counter.start();

Polyfill

window.requestAnimationFrame and window.cancelAnimationFrame may not supported by some browsers.

You can use import 'fpscounter/polyfill'; to polyfill it manually.