Re: [info-performer] Unexplained memory behavior

New Message Reply Date view Thread view Subject view Author view

From: Yair Kurzion (yair++at++polygon.engr.sgi.com)
Date: 06/24/2002 16:55:12


Hello There !

Performer postpones the deletion of pf objects until all DRAW processes are
done with them. I think in PFMP_APPCULLDRAW this should take one call to
pfFrame. Try adding calls to pfSync/pfFrame in your loop.

-yair

> Can someone tell me why this test case sucks up memory?
> Thanks.
>
> #include <Performer/pf/pfGroup.h>
>
> void main(void)
> {
> pfInit();
> pfMultiprocess(PFMP_APPCULLDRAW | PFMP_CULL_DL_DRAW);
> pfConfig();
>
> for (int i = 0; i < 1e6; i++)
> {
> pfGroup *grp = new pfGroup;
> pfDelete(grp);
> }
> }
>

-- 
\_________  \_____  \__    \__  \_____        
\_________  \_____   \__   \__  \_____         Yair Kurzion
       \__     \__   \____\__      \__         yair++at++sgi.com
       \__          \__  \__                  (650) 933-6502
       \__          \__   \__          
       \__          \__    \__             


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Jun 24 2002 - 16:55:10 PDT

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