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

Gradient stroke not rendering properly on main thread #2205

Open
leesue630 opened this issue Oct 4, 2023 · 0 comments
Open

Gradient stroke not rendering properly on main thread #2205

leesue630 opened this issue Oct 4, 2023 · 0 comments
Labels
bug Main Thread rendering engine Bugs in the legacy Main Thread rendering engine

Comments

@leesue630
Copy link

Which Version of Lottie are you using?

Lottie specific commit: cc7b5c6

Expected Behavior + Actual Behavior

In the first half of the video, when the button says "Switch to main thread", the animation is running on the GPU and it is working properly:

  • checkmark starts gray
  • is turquoise blue at the end

In the second half of the video, when the button says "Switch to GPU", the animation is running on the main thread and it is inconsistent:

  • sometimes starts gray and ends gray
  • sometimes starts turquoise blue and ends turquoise blue

We were able to find a workaround by using "gradient fill" instead of "gradient stroke"

Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-10-02.at.12.45.11.1.mp4

Animation JSON

ocean_glow_checkmark.json.zip

@calda calda added bug Main Thread rendering engine Bugs in the legacy Main Thread rendering engine labels Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Main Thread rendering engine Bugs in the legacy Main Thread rendering engine
Projects
None yet
Development

No branches or pull requests

2 participants