multiprocessing

New Message Reply Date view Thread view Subject view Author view

Jean-Luc Dery (dery++at++Discreet.COM)
Thu, 21 Aug 1997 00:13:39 -0400


Hi Perfs,

I'm having problems doing database management and multiprocessing; maybe
someone out there can help ??!

What I'm trying to do is a little bit ackward but here's what it is.

I want to have a main process that starts up Performer database management
(loading and unloading) processes along with Performer process(es).

What I'm doing is:

1- start my in which I call pfInitArenas so that the forked processes all map
to the same pfArena

2- fork database management processes in which I have to call
        pfInit
        pfConfig
        and init Performer derived node classes

3- fork a Performer process in which I call
        pfInit
        pfConfig
        init Performer derived node classes
        etc.

The database managers load pfScenes without any problem and the Performer
process gets a pointer to the pfScenes through shared memory; this works fine.
I get the pfScene pointer in the renderer and it contains some data I can
recognize. Once I get a scene pointer in the renderer, the scene graph doesn't
change anymore.

The problem is I can't traverse the scene; it appears that no child is seen in
the renderer process. All the virtual app functions set doing needApp never get
called and the renderer crashes in the culling process. And if I try
manipulating the scene child nodes, I get a Bad child at addr... warning
message.

I have tried loading scenes with and without the pfBuffer feature and I've
tried moving the pfInit in the main process manager ... no luck !

By the way, the pfArena pointer is the same in all processes.

I'm trying this with Performer 2.1 on an Octane.

Help !

Can this be done ??? if so, what I'm doing wrong or not doing ?

Thanks in advance for any help.

Jean-Luc

-- 
_____________________________________________________________________________

Jean-Luc Dery Discreet Logic System Engineer 10 Duke Street 3-D Graphics Technology Montreal (Quebec), Canada, H3C 2L7 Tel: (514) 954-7239 Email: dery++at++discreet.com Fax: (514) 393-0110 _____________________________________________________________________________ ======================================================================= 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:55:45 PDT

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