2 unstable releases

0.2.0 Dec 26, 2024
0.1.0 Jul 25, 2024

#154 in Graphics APIs

Download history 2/week @ 2024-11-26 30/week @ 2024-12-03 38/week @ 2024-12-10 12/week @ 2024-12-17 158/week @ 2024-12-24 42/week @ 2024-12-31 81/week @ 2025-01-07 37/week @ 2025-01-14 80/week @ 2025-01-21 54/week @ 2025-01-28 9/week @ 2025-02-04 3/week @ 2025-02-11

152 downloads per month
Used in bevy_picking_bvh_backend

MIT/Apache

1MB
4.5K SLoC

OBVHS - BVH Construction and Traversal Library

License Crates.io Docs

  • PLOC BVH2 builder with Parallel Reinsertion and spatial pre-splits.
  • CWBVH An eight-way compressed wide BVH8 builder. Each BVH Node is compressed so that it takes up only 80 bytes per node.
  • CPU traversal for both BVH2 and CWBVH (SIMD traversal, intersecting 4 nodes at a time)
  • For GPU traversal example, see the Tray Racing benchmark

demo demoscene example

OBVHS optionally uses rayon to parallelize building. Many parts of the building process are parallelized, but single threaded building speed has initally been the priority so there is still quite a bit of room for improvement in parallel building performance.

Benchmarks

See Tray Racing.

Acknowledgments

Dependencies

~4–33MB
~523K SLoC