Massive Memory Usage When Rendering and Playing 6mb Lottie #2414
Replies: 3 comments 2 replies
-
@calda @absolute-heike I saw you both responded to similar issues so just want to tag you on this 😄 |
Beta Was this translation helpful? Give feedback.
-
Is there any way we can maybe change the amount of frames that are buffered? I think that might be significantly impacting performance. |
Beta Was this translation helpful? Give feedback.
-
Have you tried the Main Thread rendering engine? A 6.6MB animation is very large so I’m not surprised that there are memory issues. Can the size of the animation be reduced? Are there embedded images, or just 6+ MB of json? |
Beta Was this translation helpful? Give feedback.
-
Which Version of Lottie are you using?
Lottie 4.4.3
Expected Behavior
Low memory usage when Lottie is being rendered.
The Lottie file is 6.6MB (exported from AE with complex layering, then compressed with LottieFiles.com) and so I expect maybe 100MB of memory utilization tops.
Actual Behavior
When I load and play the Lottie in a very simple view with basically nothing else in it, the app memory usage is 1.2GB
When i exit that view and go back to the previous view (also very minimal) the app memory usage is 52MB, meaning over 1.15GB of memory is just the lottie.
The only thing I could find online about this only was changing the rendering engine and I tried both Automatic and CoreAnimation and both yielded the same results.
This lottie (and 5-6 other ones I created, exported, and compressed in the same way) are CRITICAL to my application's UX and it would really mean the world if you could help me with this!
Thanks for all the great work yall have done in creating and supporting this library, and thanks in advance for helping on this important issue :)
Animation JSON
Listening_lottie.json
Beta Was this translation helpful? Give feedback.
All reactions