xvrh / lottie-flutter

Render After Effects animations natively on Flutter. This package is a pure Dart implementation of a Lottie player.
https://pub.dev/packages/lottie
MIT License
1.16k stars 197 forks source link

The CPU usage is especially high #350

Open yangtianyan opened 4 months ago

yangtianyan commented 4 months ago

I used Lottie, and it's great, but it causes high CPU usage on my device, making the phone heat up significantly. How can I solve this issue? renderCache doesn't help either.

junko2013 commented 2 months ago

have u resolved?need help

yangtianyan commented 2 months ago

Hello, I have not resolved this issue. When I run your example directly, the CPU usage spikes very high. Further research indicates that this may not be due to your project but rather a mechanism issue within Flutter itself. When I run an animation in an infinite loop directly, the CPU usage also remains high and doesn't decrease, eventually causing the phone to overheat. Do you have any thoughts on how to address this problem?