software-mansion / react-native-reanimated

React Native's Animated library reimplemented
https://docs.swmansion.com/react-native-reanimated/
MIT License
8.61k stars 1.27k forks source link

Fix slow animation mode on Android #6014

Closed piaskowyk closed 3 weeks ago

piaskowyk commented 1 month ago

Summary

This PR fixes the issue of slow animations on Android. We utilize two different sources of timestamps on Android, so we need to slow down both of them instead of just one to fix the problem. Previously, almost all animations were canceled immediately after starting because the current frame timestamp was 10 times higher than the slowed-down start timestamp.

before after
efstathiosntonas commented 1 month ago

@piaskowyk I believe PR title is confusing, I read it like "improve the performance of -normal- animations" 😅

piaskowyk commented 1 month ago

Hey, this PR is about our feature that slow down all animation for debugging purposes 😅