Hi Markus,

On 11/5/06, Robert Osfield <[EMAIL PROTECTED]> wrote:
Hi Markus,

I have just done some testing on my machine with osgfadetext and top
does show an increasing memory usage when the fade text arn't culled.
Don't know what the cause is, reproducing the problem is half of the
battle so I don't think it'll be too difficult to fix.

This last month got pretty hectic so wasn't able to tackle tracking
down the memory consumption bug until now.

The issue was down to the a local RenderStage RenderInfo UserData not
being passed back main RenderInfo that exists once per context and for
the life of the app.  The local RenderInfo is created once per frame
so the user data was fresh for each new frame, so osgText::FadeText
kept on recreating its local objects, creating an ever increasing
local map...    The fix was to make sure that any newly create
RenderInfo UserData got passed back to the main RenderInfo's that are
shared between frames.

To cut a long story short, a cvs update will fix the problem ;-)

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to