Repository navigation
Offload LottieAnimationView when off screen #2687
Replies: 1 comment 3 replies
|
The reason you are seeing GPU/CPU hitches even after hiding/pausing usually comes down to two major culprits: 1.
|
|
The reason you are seeing GPU/CPU hitches even after hiding/pausing usually comes down to two major culprits: 1.
|
Uh oh!
There was an error while loading. Please reload this page.
We have a LottieAnimationView that we want to offload when it moves off screen.
Currently we are pausing it and it has very little benefits.
We also tried hiding and rasterising, but still there are GPU render hitches.
What's the best way to make sure an off screen LottieAnimationView doesn't contribute to any GPU/CPU computations.
Is removing it from memory and recreating(Bad UX) the only option?
We check visibility and toggle play/pause
All reactions