[osg-users] How do PagedLOD children expire?

Bradford, Chase CHASE.BRADFORD at saic.com
Mon Sep 10 17:56:20 PDT 2007


Paul,

PagedLODs are registered as inactive when their frame count gets out of synch with the overall viewer.  Once they become inactive, their children are released.  In other words, if each child has an identical bounding sphere, none of them will get freed until the lowest child is culled.

Chase

-----Original Message-----
From: osg-users-bounces at lists.openscenegraph.org on behalf of Donald Tidrow
Sent: Mon 9/10/2007 5:12 PM
To: Public OpenSceneGraph Users discussion list.
Subject: Re: [osg-users] How do PagedLOD children expire?
 


Paul Martz wrote:
> Hi Robert -- My understanding of the DatabasePager is that PagedLOD 
> children that are not visible in the current view volume should 
> eventually "expire", which I assume means be unloaded from memory. OSG 
> would then have to reload such children from disk if they ever came back 
> within range. However, I am not seeing a decrease in process size when 
> PagedLOD children are not visible. Please let me know if I've somehow 
> misunderstood the intent of the DatabasePager and PagedLOD.
>  
Even if the PagedLOD children are getting freed properly, I'm not sure 
that the process will actually release the associated memory back to the 
  OS.  A lot depends on how the heap memory manager deals with freed 
memory - most cases I've seen the memory manager assumes that you'll 
need that memory again soon and keeps it as part of the overall process 
memory footprint.  Even so, the OS will often swap out those pages if 
they're not actively being used and the physical memory is needed by 
other processes.

If you can, check to see how much of the program's memory is actually 
'resident' in system RAM vs. the 'virtual' memory total - I know that on 
Linux/Unix the 'top' command will show this, not sure about Windows though.

> If I understand correctly, the default expiry delay is 10 seconds, so I 
> should see children being deleted after they are moved outside the view 
> volume for 10 consecutive seconds.
>  
> FYI, I'm attempting to cook my own paged database for a tiled OpenFlight 
> terrain database. I'm doing this with a top-level Group node with 
> several PagedLOD child nodes, one for each tile in the database. Each 
> PagedLOD has its own explicit center and radius based on the tile 
> location and size. So, if you think the issue might be misconfiguration 
> of the PagedLOD nodes, then I'd say this is possible, though I can't see 
> what I might be doing wrong from looking at the PagedLOD and LOD headers.
>  
> I'm using osgViewer, so DatabasePager config is handled automatically.
>  
> Thanks for any insight,
>  
> Paul Martz
> *Skew Matrix Software LLC*
> http://www.skew-matrix.com <http://www.skew-matrix.com/>
> 303 859 9466
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

-- 
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."
			- Benjamin Franklin

+----------------------------------------+
|  Don Tidrow                            |
|  Visualization Software Engineer       |
|  SAIC                                  |
|  ph: 703-253-1094                      |
+----------------------------------------+
_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070910/ed932c64/attachment-0003.htm>


More information about the osg-users mailing list