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

VersionDownloads (Last 7 Days)Tag
1.0.01latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.01

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