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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    5

Package Sidebar

Install

npm i fpscounter

Weekly Downloads

5

Version

1.0.0

License

GPL-3.0

Unpacked Size

43.2 kB

Total Files

8

Last publish

Collaborators

  • xiazeyu