Closed
Bug 1415326
Opened 8 years ago
Closed 8 years ago
MotionMark CSS bouncing clipped rectanges runs very poorly
Categories
(Core :: Graphics: WebRender, enhancement, P1)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox57 | --- | unaffected |
firefox58 | --- | unaffected |
People
(Reporter: jrmuizel, Assigned: jrmuizel)
References
(Depends on 1 open bug)
Details
(Whiteboard: [wr-mvp])
Attachments
(1 file)
2.73 KB,
patch
|
ethlin
:
review+
|
Details | Diff | Splinter Review |
http://browserbench.org/MotionMark/developer.html?test-interval=30&display=minimal&tiles=big&controller=ramp&frame-rate=50&kalman-process-error=1&kalman-measurement-error=4&time-measurement=performance&suite-name=HTMLsuite&test-name=CSSbouncingclippedrects&complexity=388
I get a score of 69. Chrome gets 400
This is a bunch of transformed rectangles each with a clip mask specified by a polygon.
Assignee | ||
Comment 1•8 years ago
|
||
I think we might be painting the blob images for the clip masks more than necessary.
Updated•8 years ago
|
Whiteboard: [wr-mvp] [triage]
Assignee | ||
Comment 2•8 years ago
|
||
So we're definitely painting new items every frame, but the new items don't obviously show up.
Assignee | ||
Comment 3•8 years ago
|
||
Also, all of the squares share a single clip path, so if webrender could share them we would go much much faster.
(In reply to Jeff Muizelaar [:jrmuizel] from comment #3)
> Also, all of the squares share a single clip path, so if webrender could
> share them we would go much much faster.
Should we open a separate bug for this part?
Updated•8 years ago
|
Blocks: stage-wr-nightly
status-firefox57:
--- → unaffected
status-firefox58:
--- → unaffected
Priority: -- → P2
Comment 5•8 years ago
|
||
(In reply to Milan Sreckovic [:milan] from comment #4)
> (In reply to Jeff Muizelaar [:jrmuizel] from comment #3)
> > Also, all of the squares share a single clip path, so if webrender could
> > share them we would go much much faster.
>
> Should we open a separate bug for this part?
Yes please. Depending on how the display list is structured this might be pretty simple to do.
Updated•8 years ago
|
Whiteboard: [wr-mvp] [triage] → [wr-mvp]
Assignee | ||
Comment 6•8 years ago
|
||
This helps us avoid rerasterizing the blob images every frame. This makes a huge difference in performance. Our score goes from approx 75 to 380. Current Firefox gets about 200.
Assignee: nobody → jmuizelaar
Attachment #8927021 -
Flags: review?(ethlin)
Comment 7•8 years ago
|
||
Comment on attachment 8927021 [details] [diff] [review]
Tolerate slight changes in scale
Review of attachment 8927021 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/layers/wr/WebRenderCommandBuilder.cpp
@@ +507,5 @@
> // region is unknown until we traverse the displaylist contained by it.
> if (geometry && !fallbackData->IsInvalid() &&
> aItem->GetType() != DisplayItemType::TYPE_FILTER &&
> + aItem->GetType() != DisplayItemType::TYPE_SVG_WRAPPER
> + differentScale) {
you're missing an operator here
Updated•8 years ago
|
Status: NEW → ASSIGNED
Priority: P2 → P1
Updated•8 years ago
|
Attachment #8927021 -
Flags: review?(ethlin) → review+
Comment 8•8 years ago
|
||
Of course you will fix the compilation errors before landing.
Pushed by jmuizelaar@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5bee2596ae4d
Tolerate slight changes in scale for fallback items. r=ethlin
Comment 10•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in
before you can comment on or make changes to this bug.
Description
•