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
rlottie animations not running as fast as they should #6142
Comments
The next frame callback is initialized using the frame rate specified in the lottie: lvgl/src/extra/libs/rlottie/lv_rlottie.c Line 148 in 36a8052
and then in the callback, the frame number is simply incremented by 1: lvgl/src/extra/libs/rlottie/lv_rlottie.c Lines 253 to 254 in 36a8052
I think it should instead calculate which frame should be rendered based on the time elapsed. |
Hi, Can you try it this PR? It uses a more recent Lottie implementation and it's also easier to integrate into LVGL. |
Nice development @kisvegabor! Unfortunately I'm still on v8.3 so testing your PR will involve quite a bit of refactoring for me. I'll report back when I get it done. |
We need some feedback on this issue. Now we mark this as "stale" because there was no activity here for 14 days. Remove the "stale" label or comment else this will be closed in 7 days. |
LVGL version
8.3
What happened?
When an rlottie animation has a higher framerate than the lvgl update rate (frequency of calls to
lv_timer_handler
) then it runs slower as it should.How to reproduce?
No response
The text was updated successfully, but these errors were encountered: