Shankar Swamy (shankar.n.swamy++at++boeing.com)
Mon, 8 Mar 1999 16:23:13 -0800
>
> Shared Memory problems with sproc
>
>
>
>
> pfCAVEPreDrawFunc(appPreDraw); // do any OpenGL rendering
> int doOnce =1;
> sleep(120); // I'll explain this
> while (!CAVEgetbutton(CAVE_ESCKEY))
> {
> psgManager::update();//advance animation, update navigation, ect
> pfSync();
> pfCAVEPreFrame();
> pfFrame();
> pfCAVEPostFrame();
> }
> CAVEHalt();
> pfExit();
> WorkQ::cleanup();
> Shmem::cleanup();
> return 0;
> }
>
> So, inside the function create_scene parameters are read from a config
> file and they are placed on the work Queue. IF we run on a single
> processor machine.. (ie APP/CULL/DRAW are all one process) everything is
> fine. If we run on the Origin everything breaks. ANY GEOMETRY CREATED ON
> THE WORK QUEUE NEVER SHOWS UP!(8processors, separate APP/CULL/DRAW) I
> printed the scene graph from the CULL process and the Nodes simply were
> not there.
>
> I feel that this is obviously a Shared Memory problem but I don't know
> where it is. Any Geometry explicitly loaded or created in the APP
> process shows up, anything created in the Work Queue after the first
> pfSync/pfFrame call never shows up. Irix 6.5.2, Performer dev 2.2,
> Execution env 2.2.3, openGL 1.1.
>
If you move your pfCAVEPreDrawFunc() in your program to the analogous
location in perfly from where "localPostDraw(...)" OR to where
"localPreDraw(...)" functions are called in perfly.C, that should
(at least partially) cure your symptoms. (Alternatively, you could
do so in the pre-draw or post-draw callbacks on the nodes.)
You have to confine all OpenGL calls to the draw process.
>
> Angus, if you can solve this with one e-mail I will send you a copy of
> all the 5 Nations Rugby games (I am taping them) Go Scotland!!!!
>
I am not Angus, and I don't watch rugby. However, if you are taping
the world cup criket next month, we can talk :-):-)
shankar
---------------------------------------------------------------
This archive was generated by hypermail 2.0b2 on Mon Mar 08 1999 - 16:23:24 PST