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

Poor performance (drop frame) during scrolling when animation is loop #1388

Merged
merged 1 commit into from
May 16, 2022

Conversation

liwenfei1991
Copy link
Contributor

let animation = Animation.named("XXX")
let animationView = AnimationView()
animationView.animation = animation
animationView.loopMode = .loop
animationView.backgroundBehavior = .pauseAndRestore
animationView.play()

insert the animationView into an UITableViewCell, when scrolling , the fps is about 40, the json file is below attach files
bojin1.json.zip

@liwenfei1991 liwenfei1991 reopened this Aug 27, 2021
@liwenfei1991 liwenfei1991 marked this pull request as draft August 27, 2021 09:34
@liwenfei1991 liwenfei1991 marked this pull request as ready for review August 27, 2021 09:34
@liwenfei1991 liwenfei1991 marked this pull request as draft August 27, 2021 09:34
@liwenfei1991
Copy link
Contributor Author

test ok

@calda
Copy link
Member

calda commented May 16, 2022

Hi @liwenfei1991, looks like the tests for this change are passing. Could you rebase to resolve the merge conflict? Then I think we can merge this.

* 'master' of https://github.com/liwenfei1991/lottie-ios:
  Poor performance (drop frame) during scrolling when animation is loop

# Conflicts:
#	Sources/Private/LayerContainers/Utility/InvertedMatteLayer.swift
@liwenfei1991
Copy link
Contributor Author

liwenfei1991 commented May 16, 2022 via email

@calda
Copy link
Member

calda commented May 16, 2022

Thanks!

@calda
Copy link
Member

calda commented Jul 31, 2022

@liwenfei1991 FYI, we had to revert this change due to #1683.

calda pushed a commit that referenced this pull request Nov 28, 2022
calda pushed a commit that referenced this pull request Dec 1, 2022
MoroziOS pushed a commit to MoroziOS/tmg-lottie-ios that referenced this pull request May 22, 2024
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

Successfully merging this pull request may close these issues.

2 participants