Chromium Code Reviews
Help | Chromium Project | Sign in
(1)

Issue 11273029: Throttle prepaints to avoid colliding with post-load work (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
2 years, 5 months ago by jamesr
Modified:
2 years, 5 months ago
Reviewers:
enne
CC:
chromium-reviews, cc-bugs_chromium.org, danakj, aelias, Vangelis Kokkevis
Visibility:
Public.

Description

Throttle prepaints to avoid colliding with post-load work On the page cyclers (especially intl1) the prepaint logic in the compositor interferes with the subsequent page's load time when --force-compositing-mode is active. This is because the prepaint schedules a commit immediately after finishing a prepaint-eligible paint. On the page cyclers, this means that we frequently do a second commit just after starting the load on the next page in the set since the new page's URL is set just after the onload event. This patch tweaks the prepaint to happen only after we perform an updateLayers() that's prepaint eligible and then go 100ms (number picked somewhat arbitrarily) without receiving another setNeedsCommit(). The goal is to only prepaint if the compositor scene is roughly steady - if we're still receiving invalidations on the main content then it's less likely that prepainting will be useful. On pages in the wild that load quickly, the first prepaint after first paint is likely to collide with onload and shortly-after-onload logic. Delaying until we reach a steady state shouldn't slow down static pages but will help avoid contention and wasted work on pages that modify the page on or shortly after onload. BUG=152355 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=164125

Patch Set 1 #

Patch Set 2 : rebased #

Messages

Total messages: 5 (0 generated)
jamesr
Some numbers: On my linux box at ToT, FCM is 12% slower than pure software ...
2 years, 5 months ago (2012-10-25 01:33:38 UTC) #1
epenner
Thanks for doing this James. I meant to reply in the bug earlier. I don't ...
2 years, 5 months ago (2012-10-25 02:01:12 UTC) #2
enne
lgtm I like this a lot. This moves what used to be a per-layer decision ...
2 years, 5 months ago (2012-10-25 16:34:09 UTC) #3
I haz the power (commit-bot)
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/11273029/2001
2 years, 5 months ago (2012-10-25 17:21:11 UTC) #4
I haz the power (commit-bot)
2 years, 5 months ago (2012-10-25 18:55:20 UTC) #5
Change committed as 164125
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld ecdb341-tainted