2 ms·
> that code seems to do one bounding box at a time? Yep, most parts of that library were designed for doing one thing at a time. Generally speaking, HPC-style
by Const-me 6y ago
> that code seems to do one bounding box at a time?
Yep, most parts of that library were designed for doing one thing at a time.
Generally speaking, HPC-style SoA approach can be faster especially if you have AVX. But there’s a price for that, most importantly code complexity but some performance-related things as well: RAM access pattern, uploading to VRAM for rendering.
> I was planning to try to do 4 (or however many) checks at a time
I would start with whatever code is in that library, and only optimize if profiler says so.
They have sphere versus frustum test too, similar one i.e. they also testing against these 6 planes, might be slightly more efficient than boxes.
- dkersten 6y agoOk, thank you! Much appreciated.