-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement re-ordering for PLS atomic draws
Atomic mode needs a barrier between overlapping draws. Implement re-ordering of non-overlapping draws to minimize barriers. Add a massively SIMD "IntersectionBoard" class that assigns a minimal "groupIndex" to each draw based on its bounding box. Sort draws based on groupIndex, plus lower priority items like draw type and texture hash. Issue draws in the new order with barriers between different groupIndex values. Discard draws ahead of time that are empty or offscreen. (IntersectionBoard doesn't support these.) Now that the draw logic is getting more complex, store PLSDraws in a smart pointer that guarantees we never miss a call to releaseRefs(). New simd features: - reduce_add, reduce_min, reduce_max, reduce_and, reduce_or - >2 arguments to join - zip() - more typedefs Diffs= d67aeac4d Implement re-ordering for PLS atomic draws (#6417) Co-authored-by: Chris Dalton <[email protected]>
- Loading branch information
1 parent
5d90bc8
commit c238af4
Showing
13 changed files
with
479 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
a3788ed8ad14d8046faec27d34c9483ddb7d7cb3 | ||
d67aeac4d7643cdb60f7d22c9b2c0005e7838ed9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.