stats-gl
stats-gl copied to clipboard
Question: Possible PR
Hello, I was wondering if you would be interested in a pull request. I currently use this lib with deck.gl and have a number of custom panels. The current rolling max was leading to some confusion. So I added an additional parameter to the Stat and Panel constructors. This facilitates setting a static max flag so that max/maxGraph are always the highest value seen instead of a re-averaged value as they fall off of the array. (here & here).
Altered the demo to pipe the current mouse X into a custom graph.
Current rolling max:
The image is moving from the left to right and back. The graph always being "maxed" has the potential to, I guess, hide what the history really was.
With both of the static max flags:
The graphs have a more relative visualization. If one would prefer the internal (FPS/CPU/GPU) graphs to be as is but custom to be static (on a per Panel basis). Thats possible too.
Would this be something you would be interested in? Don't want to PR if it is something unwanted.