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

Dynamic refresh rate issue #1890

Closed
konstantin-tcherkashin opened this issue Jan 1, 2023 · 2 comments
Closed

Dynamic refresh rate issue #1890

konstantin-tcherkashin opened this issue Jan 1, 2023 · 2 comments

Comments

@konstantin-tcherkashin
Copy link

konstantin-tcherkashin commented Jan 1, 2023

Noticed on iPhone 13 Pro (with dynamic screen refresh rate), SwiftUI project, iOS 16.1.

When nothing happens on screen for a couple of seconds, iOS lowers the refresh rate to a 10-12 hertz. Hence the animation have only 10-12fps.

  • The issue only appears when a custom animationSpeed < 1 is applied;
  • If any other animation is running on screen (including notifications and other system stuff), the issue is not reproducing;
  • If screen recording is enabled, the issue is not reproducing (feels like screen recording forces 60fps system-wide).

Which Version of Lottie are you using?

Lottie 4.0.1, CoreAnimation rendering engine

Expected Behavior

Forcing system to sustain normal refresh rate

Actual Behavior

Dropping frames as screen refresh rate is lowered

@calda
Copy link
Member

calda commented Jan 3, 2023

Can you share a sample project that reproduces this issue? I'm unable to reproduce this issue when testing with the Lottie example app on my iPhone 14 Pro. I always see the animation playing at 60fps, according to Instruments.

@github-actions
Copy link

This issue is stale because it is marked "can't reproduce" and has had no activity in the past week. Please comment with additional information, or this issue will be closed due to inactivity in one week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants