Hi Keith,

To manage the memory consumption of LineOfSight class have a look at the
osgDB::DatabaseCacheReadCallback that is used by it to load and cache the
PagedLOD's that are required to do the intersection tests with.  You can
set how many files it caches as well as force a clear.

Robert.


On 23 October 2013 21:55, Keith Steiger <[email protected]> wrote:

>  I’m using osgSim::LineOfSight to do calculations in an app with no GUI.
> Everything’s working well, except the memory usage keeps growing to the
> point that it exceeds 4 gigs and crashes.  A majority of the time, it’s
> allocating memory in osgTerrain::GeometryTechnique::generateGeometry when
> it crashes.  How would I go about un-generating geometry to keep my memory
> usage under control?****
>
> ** **
>
>     [email protected]
>     (who will be ridiculously grateful for any help he gets)****
>
> ** **
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to