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 7d028e9 commit 391108d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
26612a9523ba4341bf30e30fb479804a98661972
d67aeac4d7643cdb60f7d22c9b2c0005e7838ed9
2 changes: 1 addition & 1 deletion wasm/submodules/rive-cpp

0 comments on commit 391108d

Please sign in to comment.