Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [MANTA] MANTA : Questions about how the parallel pipeline works


Chronological Thread 
  • From: Abe Stephens <abe@sci.utah.edu>
  • To: "Steven G. Parker" <sparker@cs.utah.edu>
  • Cc: Shreekanth Pavar <shreekanth.pavar@ucl.ac.uk>, MANTA <manta@sci.utah.edu>
  • Subject: Re: [MANTA] MANTA : Questions about how the parallel pipeline works
  • Date: Thu, 22 Mar 2007 16:12:20 -0600

There are some transaction / callback examples on the wiki too:

http://code.sci.utah.edu/Manta/index.php/Manta_architecture#Transactions_and_Other_Callbacks

I originally created the page because I had trouble keeping all of the syntax straight....

Abe

Steven G. Parker wrote:
On Mar 22, 2007, at 3:33 PM, Shreekanth Pavar wrote:

I'm unsure why line 523 is needed:

    doSerialAnimationCallbacks(changed, proc, workersAnimAndImage);

These functions handle 'one-shot' callbacks (which are mentioned in the
comments) but I'm unclear what these are and how they differ from normal
callbacks.

The parallel animation callback will get called by all of the threads. The serial animation callback will get called just by one of them. For updating simple state, the serial animation callback is preferred (you do not want multiple threads updating simple data).

One shot callbacks are different. They get called exactly once at some point in the future. The callbacks above are executed every single frame. For example, the -bench flag sets up a one shot callback to occur after 100 frames have been rendered.

Steve







Archive powered by MHonArc 2.6.16.

Top of page