gkjohnson / js-framerate-optimizer

Library for tracking and iteratively improving page framerate over time
https://gkjohnson.github.io/js-framerate-optimizer/example/
MIT License
32 stars 4 forks source link

Add a function to extend the wait time between measurements #6

Closed gkjohnson closed 3 years ago

gkjohnson commented 5 years ago

Some tweaks cause the framerate to dip for a few frames (allocating new rendertargets, etc) and it's best to wait for a few more frames before beginning a new average measurement.

gkjohnson commented 3 years ago

waitMillis and waitFrames already suppor this