fpscounter

1.0.0 • Public • Published

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.

Dependents (0)

Package Sidebar

Install

npm i fpscounter

Weekly Downloads

1

Version

1.0.0

License

GPL-3.0

Unpacked Size

43.2 kB

Total Files

8

Last publish

Collaborators

  • xiazeyu