react-flip-toolkit icon indicating copy to clipboard operation
react-flip-toolkit copied to clipboard

Multithreading animations

Open cheeck8131 opened this issue 1 year ago • 2 comments

I work with multi-threaded animations, would it make sense for me to make a contribution to add the possibility of parallel non-blocking animation rendering?

cheeck8131 avatar Jun 13 '23 07:06 cheeck8131

Hey, interesting, do you mean moving the animation calculations to a web worker? Or something else?

aholachek avatar Jun 14 '23 13:06 aholachek

My very first suggestion is to use .animate() from WAAPI (you need to calculate keyframes in advance, you can do it in the main thread and in a web worker)

WAAPI does not freeze while you do in main thread heavy operations

waapi does a smooth transition on any values, which makes it easier to calculate the accuracy of a Spring value, where a lot of performance goes.

cheeck8131 avatar Jun 14 '23 14:06 cheeck8131