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

just out of curiosity, why the latest version of task scheduler stop using requestAnimationFrame? Thanks for the answers~ #27998

Closed
jy90719 opened this issue Jan 19, 2024 · 1 comment

Comments

@jy90719
Copy link

jy90719 commented Jan 19, 2024

recently i have been investigating the latest React source code, and i found there are some changes have been made in terms of task scheduling logic, and i am really curious about the reason under the hood. any answers would be appreciated very much!

@rickhanlonii
Copy link
Member

There were perf issues that we tried to get around in #16166, but ultimately decided to just yield every 5ms in #16214 and that worked better than using rAF in our experiments. Check out those PRs for more info!

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

No branches or pull requests

2 participants