Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multithreading animations #212

Open
cheeck8131 opened this issue Jun 13, 2023 · 2 comments
Open

Multithreading animations #212

cheeck8131 opened this issue Jun 13, 2023 · 2 comments

Comments

@cheeck8131
Copy link

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?

@aholachek
Copy link
Owner

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

@cheeck8131
Copy link
Author

cheeck8131 commented Jun 14, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants