Hi Vincent,

PagedLOD only ever expires high rest children that are nolonger
needed.  It never expires low res children when viewing a high rest
child as you always want the low res child to fallback on when you
suddenly move away.  The cost of a low res child is very much lower
than the high res child (typically a 4:1 ratio) so the cost of keeping
it around for when it'll be needed in the future is actually very low.

Robert.

On Fri, Dec 11, 2009 at 2:16 PM, Vincent Bourdier
<[email protected]> wrote:
> Hi everybody !
>
> Once again, i have a question about PagedLod managment, concerning memory
> usage this time....
>
> My PagedLOD have 2 children with ranges [0, n] [n, 1e20]
> I put a spy on one, and I see : 0child on load, 1 child during loading,
> 2child when the camera is near, 1child again when the camera goes far from
> the node...
> I did setNumChildrenThatCannotBeExpired(1) on each LOD.
>
> So why are there 2 children when the camera is near ?
> Do 1child seems the other one is released in memory ?
>
> If it is not... how to set the pagedLod to keep only one child ?
>
> Thanks for you help.
>
> Regards,
>  Vincent.
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature
> database 4679 (20091211) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
> _______________________________________________
> 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