Re: pfCycleBuffers

New Message Reply Date view Thread view Subject view Author view

Remi Arnaud (remi++at++remi.asd.sgi.com)
Fri, 11 Oct 1996 17:06:41 -0700


On Oct 11, 10:37am, Scott McMillan wrote:
> Subject: Re: pfCycleBuffers
>
> > It maybe a typo, but here you declare G_cbuf,
> > And here, you use G_cycle_buffer ?
>
> yep a typo...they are actually the same
>
> > You cannot acces to G_cbuf from here, as the Draw process is forked BEFORE
> > the Cycle buffer is declared. So the G_cbuf is not initialized for DRAW.
> >
> > Yes, And I bet G_cycle_buffer is NULL
>
> yes again...I suspected this but why does the morph example work? The cycle
> buffer appears to be allocated after the pfConfig?

 Yes, but it's allocated (and further used) in the APP process only.

> > To solve this problem, allocate a pointer to a pfCyclebuffer in shared
> > memory, before pfConfig. All processes will have a pointeur to a
> > (pfCycleBuffer*) in shared memory.
>
> There's another point about my code (and the morph code) that I don't
> understand...the pfCycleBuffer _pointer_ is not even in shared memory to
> begin with. The only difference between the morph code and mine is that my
> G_cbuf is an extern variable. Does this make a difference?

 I don't see any difference:
 in morph.c, cbuf is declared as a global too.

 -- Remi

-- 

o o Remi ARNAUD - Silicon Graphics, Performer, Advanced Systems Dev o o o o Mail Stop 590 - 2011 N. Shoreline Boulevard, Mountain View, CA94043 o o o o Email: remi++at++asd.sgi.com - Tel: (415) 933 6208 - Fax: (415) 965 2658 o o

======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:45 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.