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

Fix slow animation mode on Android #6014

Merged
merged 9 commits into from
Jun 12, 2024
Merged

Conversation

piaskowyk
Copy link
Member

@piaskowyk piaskowyk commented May 14, 2024

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
Screen.Recording.2024-05-14.at.14.30.22.mov
Screen.Recording.2024-05-14.at.14.15.50.mov

@piaskowyk piaskowyk requested review from tomekzaw and tjzel May 14, 2024 12:37
@efstathiosntonas
Copy link
Contributor

efstathiosntonas commented May 14, 2024

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

@piaskowyk
Copy link
Member Author

piaskowyk commented May 14, 2024

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

Screen.Recording.2024-05-14.at.15.01.44.mp4

@piaskowyk piaskowyk changed the title Fix slow animation on Android Fix slow animation mode on Android May 14, 2024
Base automatically changed from @wolewicki/use-proper-react-host to main May 14, 2024 13:06
Copy link
Contributor

@tjzel tjzel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The animations are so slow now they made the 'after' video 3x longer!

@piaskowyk piaskowyk added this pull request to the merge queue Jun 12, 2024
Merged via the queue into main with commit 1bb748b Jun 12, 2024
8 checks passed
@piaskowyk piaskowyk deleted the @piaskowyk/fix-slow-animation branch June 12, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants