Re: Multiprocess init

New Message Reply Date view Thread view Subject view Author view

From: Angus Dorbie (dorbie++at++sgi.com)
Date: 10/02/2000 18:17:56


Hans Peter Palboel wrote:
>
> Hi
>
> I've run into a problem with my Performer app. It was developed and run
> on uniprocessor machines, but now I need it to run on (and utilize)
> multiprocessor machines.
>
> The problem is that when the DRAW process is forked my OpenGL
> initialization is performed in the APP process. Ok, so I need to do the
> init once and in the DRAW process. A search of the archives suggested
> the pipewindow init callback, but that is not working (and wouldn't that
> do the init for each pipewindow?).
>
> I could call my init functions on the first draw traversal, but that
> would add a test for each frame to render.

This is pretty much how everyone does this.

Gordon's suggestion is OK, except that you'd have to remove some time
later in the app process rather than try and have it remove itself. I
don't think that's safe or guaranteed to work.

>
> So where and how should I call the OpenGL init funcs.
>
> Regards,
> Hans
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
For Performer+OpenGL tutorials http://www.dorbie.com/

"In the middle of difficulty lies opportunity." --Albert Einstein


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Oct 02 2000 - 18:18:07 PDT

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