Re: [info-performer] Multiprocessing config and PFV

Date view Thread view Subject view Author view

From: Paolo Farinelli (paolo++at++sgi.com)
Date: 05/21/2003 20:06:09


Hi Marc,

you are correct: libpfv does not currently provide a standard way
to set multiprocess configuration parameters. We have thought of
somehow integrating with the pfuProcessManager, but that hasn't
been done yet..

As you pointed out, it would be extremely simple to write a module
that reads process-related configuration from an xml file and then
makes the appropriate pf-calls.
It is imperative that pfMultiprocess is called before pfConfig, so this
module would need to do it in its preConfig callback.

I can also suggest a couple of alternative ways to do it:

1. Performer3.0.2 (which will be released sometime in the next few
months) will look for an environment variable called
_PF_FORCE_MULTIPROCESS (this will be documented in the
'performer' man page). By setting this to the appropriate value, you
will be able to force any pf-app to run with the specified mp-mode.

2. You could VERY easily write your own version of pfview, and
set multiprocess mode within your main function; pfview is only
a few lines of code.. Here is what it could look like:

int main (int argc, char *argv[])
{
    if(argc!=2){
        printf("Usage: %s viewer_config_file.pfv\n", argv[0]);
        exit(1);
    }
   
    pfInit();
    pfvViewer* viewer = new pfvViewer(argv[1]);

    /* configure multiprocess mode here! */
    pfMultiprocess( PFMP_APP_CULL_DRAW );

    viewer->config();
    viewer->run();
}

Hope this helps.

Regards,
Paolo

Marc Mendez wrote:

> pfHello !
>
> I checked the man pages and found no option to set my Multiprocess
> configuration ... would there be a way to make it ?
> Maybe a module that just calls pfMultiprocess() ??? No troubles to be
> expected when calling pfMultiprocess a bit late ?
>
> regards,
> Marc.
>

-- 
Paolo Farinelli                                           paolo++at++sgi.com
Member of Technical Staff, OpenGL Performer              1-650-933-1808
Silicon Graphics        1600 Amphitheatre Pkwy, Mountain View, CA 94043


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed May 21 2003 - 20:06:20 PDT