Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [Manta] changes to AccelStructure.h


Chronological Thread 
  • From: Solomon Boulos <boulos@cs.utah.edu>
  • Cc: manta@sci.utah.edu
  • Subject: Re: [Manta] changes to AccelStructure.h
  • Date: Tue, 21 Aug 2007 13:45:24 -0600

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.

Top of page