Hi,
I'm afraid my question below passed unnoticed. I still wonder if there's
any way I can speed up the creation of my large number of text
drawables? Is there e.g. really a need for calling
computeGlyphRepresentation from the Text copy constructor?
/Andreas
Andreas Ekstrand wrote:
Hi,
I need to create a large number of osgText::Text drawables. The
creation of the texts is very slow, mostly because of the
computeGlyphRepresentation call from the setText method. So I thought
that since many of my text drawables will contain the same string, I
will try to reuse them by calling the copy constructor on existing
text drawables. However, the copy constructor also calls
computeGlyphRepresentation so that didn't solve anything. Since each
text drawable has a different position I can't merge my texts into
fewer drawables either.
Any suggestion of how to make my text creation faster?
Regards,
Andreas Ekstrand
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/