Lottie-ios: Animation Frame Rate Drop and Lag

Created on 23 Sep 2019  路  4Comments  路  Source: airbnb/lottie-ios

Check these before submitting:

  • [X] The issue doesn't involve an Unsupported Feature
  • [X] This issue isn't related to another open issue

This issue is a:

  • [x] Non-Crashing Bug (Visual or otherwise)
  • Crashing Bug
  • Feature Request
  • Regression (Something that once worked, but doesn't work anymore)

Which Version of Lottie are you using?

Lottie 3.1.3

What Platform are you on?

  • MacOS
  • [X] iOS

What Language are you in?

  • [X] Swift
  • Objective-C

Expected Behavior

Smooth animations like in lottie version 2.0

Actual Behavior

Animations lag a lot (especially during other UIView animations). I've been using lottie 2.0 until a couple days ago (because I liked the old way Lottie used to work) until I came across a bug that caused Lottie 2.0 to crash. Since then, I've updated all of my animations to support Lottie 3.0 and things seem to be way more laggy now. Playing an animation while running other UI animations like changing opacity and size of a UIView using "transform" causes animation frame rates to drop. In general, things feel less polished and hurts my app flow. I'm sorry if this is a horrible description but I can't find another way to describe it. This might not even be Lottie's fault but I know something changed from the way animations were running in Lottie v2.0 to the way they are running now (using Lottie v3.1.3)

Code Example

N/A

Animation JSON

This happens on basically all Lottie animations.

Most helpful comment

Duplicate of https://github.com/airbnb/lottie-ios/issues/895

Im aware of the performance issues, but dont have the bandwidth right now to tackle them. The short of the long story is, swift overhead for memory management of structs is killing performance of the renderer and needs to be rewritten.

All 4 comments

Duplicate of https://github.com/airbnb/lottie-ios/issues/895

Im aware of the performance issues, but dont have the bandwidth right now to tackle them. The short of the long story is, swift overhead for memory management of structs is killing performance of the renderer and needs to be rewritten.

Hi @buda447, it's been a while; this rewriting hasn't happening yet in recent releases and still sits in TODO here. Any ETA for a fix please?

Any update on this? I'm experiencing similar lagging issues.

I've been hoping to find answers as well. I don't think my character animation is using anything unsupported (aside from some object I had feathered which doesn't render anyways and I'll just take it out now that I know) but I guess the frames are dropping/skipping the WHOLE walk cycle when it seems perfectly fine in the render preview window. I haven't found much in terms of troubleshooting this issue...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JALsnipe picture JALsnipe  路  4Comments

whisterlee picture whisterlee  路  3Comments

muraterd picture muraterd  路  5Comments

MaximKeegan picture MaximKeegan  路  3Comments

awschuerholz picture awschuerholz  路  3Comments