From: Yair Kurzion (yair++at++polygon.engr.sgi.com)
Date: 10/09/2000 11:37:27
Hello Brian !
> I've have a desire to create an asynchronous compute process in my
> Performer program to do some calculations that may span many frame
> times. I have read the man pages on setting PFMP_FORK_COMPUTE mode in
> pfMultiprocess and in defining a callback using pfComputeFunc but am a
> little fuzzy on the specifics of passing data back and forth from my
> main app and the compute process. Do I have to use a pfFlux or do I use
> pfPassComputeData or both? I have searched the archive and all demo apps
> in vain for an example of using this feature of Performer. Can anyone
> point me to an example please?
pfPassComputeData is the right way to pass data from APP to COMPUTE in a
frame accurate fashion.
A pfFlux is used for passing data down-stream. In other words, it will pass
data in a frame accurate fashion going from left to right in the streams:
DBASE -> APP -> CULL -> DRAW
COMPUTE -> APP -> CULL -> DRAW
APP -> ISECT
Passing COMPUTE data is very similar to passing DBASE data. You can look at a
DBASE data example under:
pguide/libpf/C/flux_chase.c
Search for pfAllocDBaseData and pfPassDBaseData.
-yair
--
\_________ \_____ \__ \__ \_____ Yair Kurzion
\_________ \_____ \__ \__ \_____ yair++at++sgi.com
\__ \__ \____\__ \__ http://reality.sgi.com/yair
\__ \__ \__ Work: (650) 933-6502
\__ \__ \__ Home: (408) 226-9771
\__ \__ \__
This archive was generated by hypermail 2b29 : Mon Oct 09 2000 - 11:37:38 PDT