1.0.0 • Published 6 years ago
fpscounter v1.0.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.
1.0.0
6 years ago