Skip to content

A small class for measuring the FPS at which a page is running. Useful for throttling animations and heavy calculations on potatoes.

License

Notifications You must be signed in to change notification settings

wethegit/wtc-measureFPS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wtc-measureFPS

A small class for measuring the FPS at which a page is running. Useful for throttling animations and heavy calculations on potatoes.

npm i wtc-measure-fps
import getFPSMeasure from "wtc-measure-fps";

let fpsMeasure = getFPSMeasure();

if (fpsMeasure.average60 < 5) {
    // stop animation
}

About

A small class for measuring the FPS at which a page is running. Useful for throttling animations and heavy calculations on potatoes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published