[Sidefx-houdini-list] Mantra procedural question

Peter Bowmar pbowmar at gmail.com
Tue Aug 21 16:55:50 EDT 2007


Yeah, I haven't gotten into this in depth but I think that's what you
have to do, is create miniprocedurals that get deleted after each
bucket. However, like I said, I'll probably know more in a couple of
weeks as we try this ourselves :)

Cheers,

Peter B

On 21/08/07, Fred Valleur <fred.valleur at gmail.com> wrote:
> Nothing specific, so far I was just using standard linux applications
> (xosview for that matter) and saw the used memory usage go up bucket after
> bucket.
>
> Thanks again,
>
> Frederic.
>
>
>
> On 8/21/07, Peter Baldwin <peter_and_emily at ntlworld.com> wrote:
> >
> >
> > I can't guarantee it will work - it's a long time since I looked at
> > mantra's proc memory allocation...
> > How are you monitoring the deallocation?
> >
> > Pete
> >
> >
> > Fred Valleur wrote:
> > > Hi Peter,
> > >
> > > thanks a lot for the suggestion, I was about to try that when I realised
> > > Mantra wasn't flushing at all, and thought it would only postpone the
> > > problem.
> > > I will definitely give it try, and let you know if that solves the
> > problem.
> > >
> > >      Thanks again,
> > >     Frederic.
> > >
> > > On 8/21/07, Peter Baldwin < peter_and_emily at ntlworld.com> wrote:
> > >
> > >> Have you tried creating a sub-procedural within your principal proc's
> > >> main render method? Something like:
> > >>
> > >> class VRAY_myProc : public VRAY_Procedural {
> > >> ...
> > >> }
> > >> class VRAY_mySubProc : public VRAY_Procedural {
> > >> ...
> > >> }
> > >>
> > >> VRAY_Procedural *allocProcedural(const char * string_in){
> > >>     if(!strcmp(&string_in[0],"myProc")){
> > >>         return new VRAY_myProc();
> > >>     }
> > >>     if(!strcmp(&string_in[0],"mySubProc")){
> > >>         return new VRAY_mySubProc();
> > >>     }
> > >> }
> > >>
> > >> void VRAY_myProc::render(float /*lod*/){
> > >>     openProceduralObject();
> > >>     // new sub procedural
> > >>     VRAY_Procedural *pushNEW=allocProcedural("mySubProc");
> > >>     VRAY_mySubProc *pushON=(VRAY_mySubProc*)pushNEW;
> > >>
> > >>         // fill out geo stuff and bbox in pushON....
> > >>
> > >>         addProcedural(pushON);
> > >>         closeObject();
> > >> }
> > >>
> > >> This might clean up after itself better...
> > >>
> > >> Peter
> > >>
> > >>
> > >>
> >
> > _______________________________________________
> > Sidefx-houdini-list mailing list
> > Sidefx-houdini-list at sidefx.com
> > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> >
>
>
>
> --
> Frederic Valleur | LaMaison
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>



More information about the Sidefx-houdini-list mailing list