Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

xiazeyu/fpscounter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks