The background is cleared twice.
Categories
(Core :: Graphics: WebRender, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox57 | --- | unaffected |
firefox58 | --- | unaffected |
People
(Reporter: nical, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [gfx-noted])
Comment 1•8 years ago
|
||
Updated•8 years ago
|
Updated•8 years ago
|
Reporter | ||
Comment 3•6 years ago
|
||
I just looked at this in renderdoc and when rendering a github issue, we have 4 quads more or less the size of the screen that are fully occluded as far as I can tell (that is, looking at the view that shows the fragments that are rejected by the depth test with batching disabled).
IIRC, Dzmitry's tool that estimates the cost of depth-rejected primitives taught us that we pay on average 7% of the cost of a full screen rect in GPU time if it is completely depth rejected, which is not negligible for a full screen rect (not sure how much of that cost is memory bandwidth vs other things).
I think that we should care. Nothing blocking, but this is an area to look into when working on performance.
Reporter | ||
Comment 4•6 years ago
|
||
I count 5 full screen (or almost) occluded quads on this bugzilla page.
Reporter | ||
Comment 6•6 years ago
|
||
Picture caching makes things a bit better because the chrome tiles that are fully occluded are discarded without being drawn. We still get a lot of overdraw in the areas near the top (and the scroll bars? not sure what's going on there) from a glance at a renderdoc trace, we composite large rectangular tiles for these parts, most of which being z-rejected.
When tiles are rendered from scratch we also pay for clearing + drawing a solid background, but this cost is amortized by retaining the tiles and (hopefully) not invalidating all of the tiles every frame.
Wherever picture caching is disabled we still pay a few screen-fulls of z-rejected overdraw every frame.
Comment 7•5 years ago
|
||
This is resolved now. WR will take the background color as the clear color where possible, and will occlude background tiles where possible.
Description
•