Closed
Bug 1368866
Opened 8 years ago
Closed 7 years ago
Clicking during window.requestAnimationFrame() loop kills the rendering performance when APZ is enabled
Categories
(Core :: Panning and Zooming, defect, P3)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: mikokm, Unassigned)
References
Details
(Keywords: regression, testcase, Whiteboard: [gfx-noted])
Attachments
(1 file)
716 bytes,
text/html
|
Details |
Clicking during window.requestAnimationFrame() loop increases DL, FLB, and rasterizing time by 3-4x, when APZ is enabled. Disabling APZ will make the problem go away.
Steps to reproduce: Open the testcase and click anywhere in the window. The performance hit should be obvious.
Reproduced on FF53 and Nightly, on OSX and Windows 10.
Profile: https://perfht.ml/2rCIl7I (clicked at around t=3.4)
Regression window: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=dd1abe874252e507b825a0a4e1063b0e13578288&tochange=946ed22cad04431c75ab5093989dfedf1bae5a3e
Reporter | ||
Comment 1•8 years ago
|
||
Kats: The regression range includes bug 1242690, which might be related. Could you please take a look?
Flags: needinfo?(bugmail)
Updated•8 years ago
|
Whiteboard: [gfx-note]
Updated•8 years ago
|
Whiteboard: [gfx-note] → [gfx-noted]
Comment 2•7 years ago
|
||
If I follow the STR with apz.minimap.enabled=true, I can see the displayport expands on clicking, so that explains the slowdown in paint time. The displayport expanding is more or less expected behaviour - we keep it small initially for faster initial page load but as soon as you start scrolling (or apparently even if you click on the document) the displayport will expand to the "full" size that we use during steady state.
The alternative here is to find a way to keep the displayport small during a click - but it will still expand as soon as the user starts scrolling. I'm not sure how useful it would be to make this change - it seems a bit artificial unless this is reduced from a real-world test case?
Flags: needinfo?(bugmail)
Updated•7 years ago
|
status-firefox53:
--- → wontfix
status-firefox54:
--- → wontfix
status-firefox55:
--- → affected
OS: Unspecified → All
Priority: -- → P3
Hardware: Unspecified → All
Version: unspecified → 53 Branch
Reporter | ||
Comment 4•7 years ago
|
||
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #3)
> ni for the question at the end of comment 2 ^
Thanks for the feedback. We are using this testcase for display list building benchmarking, so it is not from a real-world test case.
Flags: needinfo?(mikokm)
Reporter | ||
Comment 5•7 years ago
|
||
Resolving as WONTFIX as per comment 2.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•