Open
Bug 1426447
Opened 7 years ago
Updated 2 years ago
Avoid refresh driver ticks in windows that aren't ready for first paint yet
Categories
(Core :: Layout, enhancement, P3)
Core
Layout
Tracking
()
NEW
Performance Impact | low |
People
(Reporter: florian, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
While working on bug 1394914, I had to work around overflow events triggered in the navigation toolbar when the browser window had a 1x1px inner size. Looking at this in the profiler showed me that the overflow events occurred while doing interruptible layout flushes caused by the refresh driver.
Previously, I had already noticed in the profiler that we do useless layout work in the main browser window before it is ready, due to the refresh driver. It seems the refresh driver starts ticking as soon as the hidden window has been loaded. This is almost invisible on fast machines, and quite visible on startup profile on very slow hardware.
Bug 1371332 also indicates issues with MozAfterPaint events occurring before a window is ready, causing false talos measurements.
In my flicker tests landed in bug 1421456, I also had to workaround tiny 1x1px paints in new windows: https://searchfox.org/mozilla-central/rev/ff462a7f6b4dd3c3fdc53c9bc0b328f42a5b3d2b/browser/base/content/test/performance/browser_windowopen_flicker.js#79
When I initially mentioned this back in May, smaug did some experiment that he pushed to try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=ffc3ef78ac14af3087a78481f1221f58184a3b68 but this didn't go further as we had no prof of a noticeable performance improvement.
Comment 1•7 years ago
|
||
There is also bug 1367830 to stop running the refresh driver in the hidden window.
Updated•7 years ago
|
Priority: -- → P1
Updated•7 years ago
|
Priority: P1 → P3
Updated•7 years ago
|
Whiteboard: [qf] → [qf:f64][qf:p3]
Updated•6 years ago
|
Whiteboard: [qf:f64][qf:p3] → [qf:p3:f64]
Updated•6 years ago
|
Whiteboard: [qf:p3:f64] → [qf:p3]
Updated•3 years ago
|
Performance Impact: --- → P3
Whiteboard: [qf:p3]
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•