Open paplorinc opened 1 year ago
"Use one [Shimmer] to wrap a list of [Widget]s instead of a list of many [Shimmer]s"
Make sure you are not having little shimmers animating themselves instead you need to have parent shimmer, applying animation over multiple containers/placeholders
Even a single one was causing it - is there a busy wait underneath? A simple animation like this shouldn't cause the overheating. If there is, maybe even a tiny sleep
(or a https://api.flutter.dev/flutter/scheduler/Ticker-class.html, maybe, not sure) could solve the warming...
Hi everyone! Any updates?
Interesting, I found similar spike in CPU usage. Were you able to figure out the root cause? I've incorporated @dmitry-grin's feedback but is there anything else we can do to reduce the CPU usage?
Same here ...
Do any of you experience this overheating on Android? I'm facing the same issue but seems to be happening only on iOS. Also trying to figure out is this could be an Impeller issue.
Same here ...
Same here with shimmer: ^3.0.0
this is very bad!
Came across this issue after our users have reported our app is draining battery life and phone getting hot, only on iOS? Similar to @joaopmarquesini
Is there away round this or it is due to using multiple shimmers on the one view?
@b099l3 from what I tried, even if I used a single shimmer but had it constantly on screen (I was using it on animations for a gaming app) the phone would overheat.
Slightly unrelated but also good to know for others. We also use Intercom in our app and this issue also mentioned high CPU load. I updated Intercom to 16.5.4 it out and it massively dropped our CPU usage 120-130% to 30-40% 🤯
On my side, I have set the loop
to 1 as a temporary workaround. Now the shimmer only play 1 time, I don't have any CPU issues now.
Same here on Android, any updates?
It seems that shimmering causes a ~40-60% CPU usage when running:
It's so severe that my phone overheats.
If I give it a stopping condition (i.e.
loop: 2
), it's reduced considerably: