Re: Database Paging

New Message Reply Date view Thread view Subject view Author view

From: Yair Kurzion (yair++at++polygon.engr.sgi.com)
Date: 04/18/2000 15:46:42


Hello There !

I have two comments:

1. The code you attached doesn't get rid of any texture maps that your
   models may contain. In order to get rid of a pfTexture, you first have to
   delete the OpenGL handle of the pfTexture. This can only be done in the DRAW
   process. Take a look at the man pages for pfuMakeTexList and pfDeleteGLHandle
   for more details.

2. Your e-mail doesn't specify the model file formats that you are using. When
   paging databases you should use files in pfb format. We maintain the pfb
   loader and make sure that it doesn't leak ANY memory. Other loaders may leak
   some memory, and should be used when not paging.

> I am currently debugging a Performer 2.2 database paging routine for a radar
> simulation running on an octane with 256MB of memory. I must be able to page
> because already 20 geocells appear to be too much for loading/keeping into
> memory. Eventually, the database will be > 200 geocells.
>
> Currently, I am attempting load 5 geocells into memory and swap geocells as
> the aircraft position changes. Even though the Performer remove and add
> child routines are being applied reasonably, it doesn't appear to deallocate
> memory correctly. I have added the calls to pfTmpDir and pfSharedArenaSize
> after the first failures, and it holds up for a little while longer, but I
> need a permanent solution and lasting fix.
>
> I have noticed a simular problem while creating database loaders for
> preprocessing other database formats, but made work arounds since these
> utilities were not realtime anyway.

-yair

-- 
\_________  \_____  \__    \__  \_____         Yair Kurzion
\_________  \_____   \__   \__  \_____         yair++at++sgi.com
       \__     \__   \____\__      \__   http://reality.sgi.com/yair
       \__          \__  \__                Work: (650) 933-6502
       \__          \__   \__               Home: (408) 226-9771
       \__          \__    \__             


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Apr 18 2000 - 15:46:51 PDT

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