Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [Manta] changes to AccelStructure.h


Chronological Thread 
  • From: Thiago Ize <thiago@cs.utah.edu>
  • To: boulos@cs.utah.edu
  • Cc: "'manta@sci.utah.edu'" <manta@sci.utah.edu>
  • Subject: Re: [Manta] changes to AccelStructure.h
  • Date: Tue, 21 Aug 2007 13:49:02 -0600

Do you have an example of a race condition that was occurring? There have been some sweeping changes lately and I'm not sure how they are supposed to work (i.e. parallel preprocess context).

Thiago

Solomon Boulos wrote:
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