Hi,

even though sizeof(osgText::Text) is rather small, the object
allocates quite a lot of memory in its constructors, most of it being
caused by osgText::TextBase.

#include <osgText/>
void main(int argc, char **argc)
{
    osgText::Text tmp;     // sizeof(tmp) is small, but about 10 times
that memory is allocated in the constructor hierarchy.
};

I was wondering if it would make sense to defer part of the dynamic
initialization until the Text object is actually used for the first
time (e.g. rendered) ?

Christian
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to