react-chartjs-2 icon indicating copy to clipboard operation
react-chartjs-2 copied to clipboard

Debounce / throttle rendering

Open adambowles opened this issue 7 years ago • 2 comments

As far as I can tell, rendering is responding to page layout changes up to every 1ms.

Is there any way to throttle the rendering? I think it should be max 60fps (~16ms frames)

adambowles avatar Dec 07 '16 11:12 adambowles

Hey Adam! Do you have an example? Throttling rerenders is a great idea.

jerairrest avatar Dec 08 '16 04:12 jerairrest

Suggest we use https://github.com/xnimorz/use-debounce once the component has been refactored to use hooks: #459

Pringels avatar Dec 11 '19 07:12 Pringels