Seeking some information on BVH optimization #232
-
Hi, I'm new to physics engine and I'm learning optimization of bvh through your code. Could you provide some references about your implementation? Like some papers? Tree_BinnedRefine.cs confuses me a bit, I wonder if there is a literature reference for this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 15 replies
-
Binned BVH builders are described in this paper: https://www.sci.utah.edu/~wald/Publications/2007/ParallelBVHBuild/fastbuild.pdf During a refinement step, the There is some trickiness to deciding where to apply those refinements. The It's worth noting that the |
Beta Was this translation helpful? Give feedback.
Binned BVH builders are described in this paper: https://www.sci.utah.edu/~wald/Publications/2007/ParallelBVHBuild/fastbuild.pdf
During a refinement step, the
Tree
applies binned builders to parts of a tree (not just subsets of leaves; blobs of internal nodes can be optimized too). It turns out that, over time, this converges to high quality with very low per-step cost.There is some trickiness to deciding where to apply those refinements. The
BroadPhase
schedules them near the root and close to a subset of leaves stochastically chosen partially by increases in SAH cost that indicate the existing structure is becoming worse.It's worth noting that the
Tree
implementation is old. By far th…