-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Notebook slow scrolling caused by update layer tree #126880
Comments
@digitarald can you try below when you get a chance to reproduce the issue
|
Hi @claudiaregio , I tried making a new notebook (using the disable-gpu flag) with only a few cells of code and one markdown cell, and the behavior is the same. Are there any other options I can test? To me it seems that it's not slow at all, only that the sensitivity of the mouse scroll goes up for those cells. Thank you! |
@alceballosa do you have |
Hi @rebornix , that's right. |
…nitor which slows down scrolling.
Did quite some experiments with scrolling last week, there are multiple ways to reduce the creation time of a cell or reducing the browser rendering time. Having all the experiments doesn't necessarily lead to better perceived user experience so we would need to fine tune each improvement and cherry-pick them to main branch one by one. The experiments and findings:
Perf log before and after the experiments |
I don't understand how the resize observer avoids a forced layout, wouldn't it have to do that to know the size? Is the benefit just that we get to delay that a little bit? |
The resize observer doesn't avoid forced layout, but stop checking |
Reduced forced reflow after changes in #133571 |
Let's continue the following work in #117644 |
Originally reported by @digitarald
After digging into the perf log, it seems there is a long
update layer tree
(~10ms) for every scroll.The text was updated successfully, but these errors were encountered: