Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animation Frame Rate Drop and Lag #1034

Closed
5 tasks done
CentrumGuy opened this issue Sep 23, 2019 · 5 comments
Closed
5 tasks done

Animation Frame Rate Drop and Lag #1034

CentrumGuy opened this issue Sep 23, 2019 · 5 comments

Comments

@CentrumGuy
Copy link

CentrumGuy commented Sep 23, 2019

Check these before submitting:

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

This issue is a:

  • 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
  • iOS

What Language are you in?

  • 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.

@buba447
Copy link
Collaborator

buba447 commented Sep 23, 2019

Duplicate of #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.

@superarts
Copy link

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?

@kapsyst
Copy link

kapsyst commented Feb 9, 2021

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

@Dianafadal
Copy link

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...

@calda
Copy link
Member

calda commented Jul 6, 2022

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.

@calda calda closed this as completed Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants