3 ms·
Thanks, I’ll take a look. Although, it’s a for fun engine so I may try myself anyway just to learn. I’ll see. Either way, thanks for the link, very interesting!
by dkersten 6y ago
Thanks, I’ll take a look. Although, it’s a for fun engine so I may try myself anyway just to learn. I’ll see. Either way, thanks for the link, very interesting!
As for frustum culling, that code seems to do one bounding box at a time? Or am I misunderstanding? I was planning to try to do 4 (or however many) checks at a time. I’m ok with checking against bounding spheres too if that makes it easier to vectorize.
- 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.