A vanilla, easy-to-use FPS meter with colored graph and no dependencies or separate CSS files
npm i yy-fps
or
copy the dist/fps.min.js file to your app, and include it:
<script src="fps.min.js"></script>
import { FPS } from 'yy-fps'
const fps = new FPS()
// or if including the file directly:
// const fps = FPS.FPS()
// update function
function update() {
// do stuff like rendering and dancing
fps.frame()
requestAnimationFrame(update)
}
update()
https://davidfig.github.io/fps/
https://davidfig.github.io/fps/jsdoc
MIT License (c) 2021 YOPEY YOPEY LLC by David Figatner
Generated using TypeDoc