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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

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
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

3 participants