You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since performance is poor when scrolling (See #852), I have tried to work around it by stopping animation during scrolling.
However, performance stayed low even when the animation stopped.
To repro it I have created an app with 3 pages where every page has a Lottie animation.
With Core Animation profiling I have tried 3 scenarios:
Scrolling when Lottie is animating
Scrolling when Lottie is stopped
Scrolling when Lottie is replaced with a UIImage.
Here are the results:
setting shouldRasterizeWhenIdle to true had no affect.
[] Regression (Something that once worked, but doesn't work anymore)
Which Version of Lottie are you using?
Lottie 3.1.5
What Platform are you on?
[] MacOS
iOS
What Language are you in?
Swift
[] Objective-C
Expected Behavior
When scrolling, if animation is stopped, FPS (Frame Per Second) should stay high and Device Utilization should stay low. I am expecting the same performance as if Lottie would be replaced with a static UIImage.
Actual Behavior
Regardless of animation state (running/stopped) the performance is low.
A simple app with 3 pages where every page has a Lottie animation.
Also expose 2 buttons:
Remove/Add Lottie
Stop/Play Lottie
Note: the app was tested with a much bigger JSON file and the profiler screenshot above was created with that file but even the committed Animation JSON shows that Device Utilization stays high when animation is stopped (but the FPS stays stable above 55).
@Rapsssito it might be the same root cause as #895, however this issue is about scrolling when animation is stopped. Other issues refers to animation performance or scrolling performance when animation is running.
Today we released Lottie 3.4.0 which includes a new rendering engine powered by Core Animation (more details here). This new rendering engine has significantly better performance, and should resolve the performance issues folks have been encountering with the previous main thread rendering engine. Please try it out by setting the LottieConfiguration.renderingEngine feature flag, and feel free to report any new issues that you experience when using the new rendering engine.
Since performance is poor when scrolling (See #852), I have tried to work around it by stopping animation during scrolling.
However, performance stayed low even when the animation stopped.
To repro it I have created an app with 3 pages where every page has a Lottie animation.
With Core Animation profiling I have tried 3 scenarios:
Here are the results:
setting
shouldRasterizeWhenIdle
to true had no affect.Check these before submitting:
This issue is a:
Which Version of Lottie are you using?
Lottie 3.1.5
What Platform are you on?
What Language are you in?
Expected Behavior
When scrolling, if animation is stopped, FPS (Frame Per Second) should stay high and Device Utilization should stay low. I am expecting the same performance as if Lottie would be replaced with a static UIImage.
Actual Behavior
Regardless of animation state (running/stopped) the performance is low.
Code Example
Test app: https://github.com/IzikLisbon/lottie-performance-bug
A simple app with 3 pages where every page has a Lottie animation.
Also expose 2 buttons:
Note: the app was tested with a much bigger JSON file and the profiler screenshot above was created with that file but even the committed Animation JSON shows that Device Utilization stays high when animation is stopped (but the FPS stays stable above 55).
Animation JSON
https://github.com/IzikLisbon/lottie-performance-bug/blob/master/lottie_performance_bug/animations/medium_animation.json
The text was updated successfully, but these errors were encountered: