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 for setting a manually measured time #16

Closed gkjohnson closed 3 years ago

gkjohnson commented 3 years ago

To enable optimization based on GPU time rather than just JS time with this extension:

https://www.khronos.org/registry/webgl/extensions/EXT_disjoint_timer_query_webgl2/

Add a recordTime or addSample function that takes an explicit, manually computed time.