Live data from Hacker News

Lottie 4.0 for iOS: new render engine with significant performance improvements

medium.com

1–10 of 127 posts

Re: Lottie 4.0 for iOS: new render engine with significant performance improvements

#3
Crazy to me that animations would have been done on the main thread but that showed how far you can get with kiss. The performance improvement they’re showing is great -17% CPU to display a loading animation down to 0. Before the animation could be interfering with the loading!

Re: Lottie 4.0 for iOS: new render engine with significant performance improvements

#4

Crazy to me that animations would have been done on the main thread but that showed how far you can get with kiss. The performance improvement they’re showing is great -17% CPU to display a loading animation down to 0. Before the animation could be interfering with the loading!

Are you on iOS Developer? Anything related to UI is always suggested to be done on the main thread by Apple.

Re: Lottie 4.0 for iOS: new render engine with significant performance improvements

#5

Crazy to me that animations would have been done on the main thread but that showed how far you can get with kiss. The performance improvement they’re showing is great -17% CPU to display a loading animation down to 0. Before the animation could be interfering with the loading!

Are you on iOS Developer? Anything related to UI is always suggested to be done on the main thread by Apple.

Suggested? It's required, otherwise behavior is undefined for many APIs. And with the main thread checker you now also get runtime issues when you access such APIs.

It's more shocking to me that Apple hasn't explicitly shifted at least some of its UI frameworks off the main queue in the last 15 years, especially as they've added tools to make it easier. Of course, given the bugs with the parts that are off the main queue, especially in SwiftUI, perhaps that's a good thing.

Re: Lottie 4.0 for iOS: new render engine with significant performance improvements

#6

Crazy to me that animations would have been done on the main thread but that showed how far you can get with kiss. The performance improvement they’re showing is great -17% CPU to display a loading animation down to 0. Before the animation could be interfering with the loading!

Are you on iOS Developer? Anything related to UI is always suggested to be done on the main thread by Apple.

In fact, it's everything else they encourage you to do off the main thread.

Though I expect things like complex animations are exactly sort of thing that ought to be considered an exception to that guideline. Especially ones that have limited or no interactivity, as in these examples.

Re: Lottie 4.0 for iOS: new render engine with significant performance improvements

#8
post #2

Can anyone recommend a course or tutorial series on creating simple 2d bodymovin animations in after effects? I always wanted to use lottie, but never really dived into 2d animations. Edit: To make it clear: I'm a complete afterfx noob.

If you want a course and are willing to pay for it I can recommend School of Motion — https://www.schoolofmotion.com/courses/after-effects-kicksta... (did not take this one, I took more advanced stuff and it was good). Or just like in SE a good way to learn is to choose what you want to make and then watch tutorials on youtube about that specific topic.

> I always wanted to use lottie, but never really dived into 2d animations.

However, as a person who worked as a motion designer for several years, I must say that creating good animations, especially for lotties limited toolset is not a technical problem, but an artistic one. Making animation feel good is hard and takes a lot of practice. Even more for character animation.

Re: Lottie 4.0 for iOS: new render engine with significant performance improvements

#9

Crazy to me that animations would have been done on the main thread but that showed how far you can get with kiss. The performance improvement they’re showing is great -17% CPU to display a loading animation down to 0. Before the animation could be interfering with the loading!

Are you on iOS Developer? Anything related to UI is always suggested to be done on the main thread by Apple.

I’m not, I guess the difference is animation vs UI? From the article, the ios library is set up to run animations off thread on a render server.

>On iOS, the most performant and power-efficient way to play animations is by using Core Animation. *This system framework renders animations out-of-process with GPU hardware acceleration.* Animation playback is managed by a separate system process called the “render server”. This means Core Animation-powered animations don’t contribute to the CPU utilization of the app process itself, and can continue even when its main thread is blocked or busy.

Re: Lottie 4.0 for iOS: new render engine with significant performance improvements

#10

Crazy to me that animations would have been done on the main thread but that showed how far you can get with kiss. The performance improvement they’re showing is great -17% CPU to display a loading animation down to 0. Before the animation could be interfering with the loading!

Are you on iOS Developer? Anything related to UI is always suggested to be done on the main thread by Apple.

It's not isolated to iOS in particular — it's the case in every single GUI framework I've ever dealt with. Android for example would throw an exception if you try touching the views from another thread.
Post reply on HN