Yep. When "building your scene", you should really only be doing things like setting up pointers (so say, "I'm going to eventually build a BVH over this Mesh") and have it be a low/zero cost operation.
Since rebuild is meant to be called in parallel as well (every thread calls it), it's dangerous to have a race condition amongst the threads where you change what the current group is. So instead, you should change the current working group using setGroup and then run rebuild in parallel.
I'm guessing this broke an outside project... sorry about that.
Solomon
Ingo Wald wrote:
hi all,
is there any reason why AccelStructure's rebuidl(group, ...) was split into a setGroup() and rebuild(...) combo ?
Ingo
Archive powered by MHonArc 2.6.16.