New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 685743 link

Starred by 0 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Apr 2018
Cc:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

ZeroCopyRasterBuffer::Playback taking ~45ms per frame

Project Member Reported by rsch...@chromium.org, Jan 26 2017

Issue description

URL: https://arstechnica.com/gaming/2016/09/mansions-of-madness-review-let-an-app-be-your-dungeon-master/
Trace: https://drive.google.com/open?id=0B5eS4VhPbSBzeGcxSV9aMF9pZGpTclIxUGtpbG9MTjFEY3RF (Google-only)

Chrome 56, running on Mac. We were trying to figure out why the fans were going, since we weren't scrolling or anything. I see there's quite a lot of activity in the GPU process, and it seemed to be causing everything else to be descheduled.

vmiura/ccameron, is this unexpected?
 
Cc: ericrk@chromium.org
The ZeroCopyRasterBuffer::Playback means that the webpage is drawing something (like, not just animating something -- drawing new content).

The way we draw stuff is by issuing commands that are consumed by the GPU process (so the GPU process isn't the root cause and can be ignored -- it's just following orders).

The root of the problem is "what is it that we're being asked to draw so often, which is taking so long to raster?"
Ooops, actually, ZeroCopyRasterBuffer means it's doing CPU raster.

So the GPU probably still doesn't matter because it's drawing what it rasterized.
And, to make things even more strange, the GPU process is spending lots of time doing TexImage2D (which is characteristic of one-copy, not zero-copy).

Comment 4 by ericrk@chromium.org, Jan 26 2017

Status: Available (was: Unconfirmed)
For the TexImage2Ds mentioned in #3, it looks like all these requests are coming from the Offscreen-MainThread context, which is used for Canvas and Video. I wasn't able to repro this pattern locally (although I did get overall slow raster), but my guess is that there was an ad on screen which was really hammering Canvas2D (on the order of 228 texture uploads a frame).

Other than throttling the Canvas for content we think is less important, not sure there's too much we can do about this issue. I'll continue looking into the long raster times, which may be unrelated.

Comment 5 by vmi...@chromium.org, Jan 26 2017

Something on the page is vetoing us out of using Ganesh, and the software raster time for whatever was invalidating was high, plus as ericrk@ mentioned there was some heavy 2D Canvas work happening in an Ad.

Comment 6 by vmi...@chromium.org, Jan 27 2017

Cc: senorblanco@chromium.org
senorblanco@, Ganesh is vetoed on this page.  I'd be curious what is causing the veto.
I don't see the Ganesh veto happening here on Mac or Windows -- GPU raster is on for me. Perhaps the page content changed? Or a particular ad had some complex path content?

At any rate, if the uploads are caused by canvas and video, Ganesh may not make a huge difference.
Project Member

Comment 8 by sheriffbot@chromium.org, Apr 20 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: WontFix (was: Untriaged)
Since so much has changed since this was filed (e.g. the path veto no longer vetoes to software raster), I'm going to close this. If you can still repro, feel free to re-open.

Sign in to add a comment