stats-gl icon indicating copy to clipboard operation
stats-gl copied to clipboard

Question: Possible PR

Open belsrc opened this issue 1 year ago • 2 comments

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: curr-a curr-b

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: new-a new-b

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.

mix-a mix-b

Would this be something you would be interested in? Don't want to PR if it is something unwanted.

belsrc avatar Aug 11 '23 18:08 belsrc