Skip to content

Commit

Permalink
Implement re-ordering for PLS atomic draws
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
csmartdalton committed Jan 8, 2024
1 parent 9517d85 commit 1ca955f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a3788ed8ad14d8046faec27d34c9483ddb7d7cb3
d67aeac4d7643cdb60f7d22c9b2c0005e7838ed9
2 changes: 1 addition & 1 deletion .rive_renderer
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7f32fd4dea66484d7798f4885b2fbb1fb6cef465
4873326d7c84c4961122998eee89af9fe0b8235f
2 changes: 1 addition & 1 deletion submodules/rive-cpp

0 comments on commit 1ca955f

Please sign in to comment.