Open Bug 1651018 Opened 4 years ago Updated 4 years ago

Better primitive cluster culling

Categories

(Core :: Graphics: WebRender, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: nical, Unassigned)

References

(Blocks 1 open bug)

Details

Following up from bug 1650403, it would be worth exploring spatial heuristics to break clusters (especially large ones) in order to take advantage of culling at the cluster level and skipping more primitives during the visibility pass.

There is also this comment from Glenn in https://phabricator.services.mozilla.com/D82192 to consider:

[...] we could in theory remove the code at [1] which clears out the prim instance info for prims that are in an invisible cluster. Although, it's probably best / safer to keep this, unless we have a way to validate / assert that we don't access stale indices by mistake.

[1] https://searchfox.org/mozilla-central/rev/91d82d7cbf05a71954dfa49d0e43824c7c973e62/gfx/wr/webrender/src/visibility.rs#270

You need to log in before you can comment on or make changes to this bug.