I have a question about complex animation performance with compose, which is more efficient (memory/cpu/...)? Made with the API or premade (like Lottie animation). Has someone made a study or something?
r
romainguy
09/09/2024, 5:46 PM
It depends on what the animation does. But for equivalent visuals it should be more or less the same
romainguy
09/09/2024, 5:46 PM
If you use Lottie just make sure to use the latest
f
François
09/09/2024, 5:48 PM
So, I should try both and see what is the best about CPU/memory usage.
François
09/09/2024, 5:50 PM
It’s an idea to benchmark animation efficient with compose.
r
romainguy
09/09/2024, 5:52 PM
What are you trying to do exactly?
romainguy
09/09/2024, 5:52 PM
The rendering itself will matter more than the animations themselves (and that's where what you are animating matters)