antoniolago / react-gauge-component

React gauge component for data visualization.
https://antoniolago.github.io/react-gauge-component/
MIT License
132 stars 19 forks source link

Performance drag in tooltip animation #3

Closed antoniolago closed 1 year ago

antoniolago commented 1 year ago

as pointed by reddit's user mahade in his own words:

It looks really cool, but the performance seems to be not so good. I can't debug it currently, but the tooltips and the arrows that animate seem to not reach their maximum FPS.

I see you use requestAnimationFrame a plenty but I'm wondering what properties you're animating. Perhaps diving into CSS paint/composite/layout might clear some things up and make it all feel buttery smooth.

But awesome effort man!