Delay in applying animated styles during decreased app performance #4446
Labels
Needs review
Issue is ready to be reviewed by a maintainer
Platform: iOS
This issue is specific to iOS
Repro provided
A reproduction with a snippet of code, snack or repo is provided
Description
I previously reported an issue regarding the delayed application of animated styles when the connected shared value is updated, as discussed in link to the discussion. Subsequently, I discovered that the problem was addressed in ticket #3970. To resolve the issue, I upgraded to version 3.1.0 of react-native-reanimated and verified that the solution worked in my test case.
Unfortunately, I noticed that the same behavior persists in my production application. To further investigate, I introduced some insignificant computations in the test case and was able to reproduce the same behavior. The frequency of the issue increased as I added more computations.
In essence, the updates to animated styles are still delayed until the next frame when the app's performance decreases, resulting in visible flickering. In my production application, I frequently observe this behavior even when the decrease in performance is not significant and the frame rates remain close to 60.
Steps to reproduce
Snack or a link to a repository
https://github.com/bglgwyng/Reanimated3Sandbox/tree/animated-style-test
Reanimated version
3.1.0
React Native version
0.71.6
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Release mode
Device
Real device
Device model
iPhone 13
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: