-
Notifications
You must be signed in to change notification settings - Fork 80
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
CPU usage is verrrrrry high #130
Comments
I also encounter this issue, not only the CPU usage also the memory is too big. I have a dynamic number of Lottie animations. |
We are running into similar issue, where CPU and GPU usage is going beyond acceptable, even when using only 2 lottie files and not much of other stuff going on the page. Without lottie, CPU is at around 10% and GPU around 20%, while running about 30 chrome tabs, slack, vs-code, terminals and the web app itself. Something seems off with the way the resources are consumed, 2 small files shouldn't increase usage of resources as much as it currently does. Would be great to hear something from maintainers, since this issue soon to be 2 months old and 0 replies. |
Hi @BabakScript It could be good to go per animation and see which one is causing large CPU usage, 350kb is on the large size for Lotties. You can also create an issue on the lottie-web repo and upload your files to get help with your animations and see why they're causing large CPU usage: https://github.com/airbnb/lottie-web |
I am experiencing the same high CPU usage - I tried the suggestion here: airbnb/lottie-web#2427 (comment) |
@deshario9 Does your animation use a repeater? This is from the docs animationData: an Object with the exported animation data. Note: If your animation contains repeaters and you plan to call loadAnimation multiple times with the same animation, please deep clone the object before passing it (see airbnb/lottie-web#1159 and airbnb/lottie-web#2151.) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. |
Any plan to fix this issue? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. |
Any updates here? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. |
Any updates? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. |
Overview
I have 4 Lottie animations on my page. I downloaded them from lottiefiles.com but after adding these animations the CPU usage of the page and my system increased a lot. It's always between 80% to 100% and the laptop fan is working constantly but after closing the page everything is OK. Is it normal with Lottie animations? This is just a small personal website with 4 small Lottie animations. Also, the size of my animation files is between 70 KB to 350 KB.
I also tried to set
subframe
to false to save some CPU but that's not improve anything:Any suggestions for improving the page and CPU performance?
Consuming repo
...
Labels
Type: Bug
label to this issue.The text was updated successfully, but these errors were encountered: