[osg-users] Extra draw calls in osgText?

Robert Osfield robert.osfield at gmail.com
Fri Jul 20 00:20:56 PDT 2018

Hi Glenn,

This is a new one for me :-)

My guess is that the a GLyphquad has been inserted in into the
Text::_textureGlyphQuadMap but it's primitives member hasn't had
filled in with anything.

Do you know if this happens with any of the standard osgtext examples?

On Thu, 19 Jul 2018 at 21:47, Glenn Waldron <gwaldron at gmail.com> wrote:
> Robert,
> While doing some performance testing on the nifty new osgText code, I found that for every text being drawn there are one or two extra glDrawElements calls with a count of zero. I was able to eliminate them by checking for an empty primitive set before this draw call:
> https://github.com/openscenegraph/OpenSceneGraph/blob/master/src/osgText/Text.cpp#L1151
> It works, but I can't help wondering why the empty primitive sets exist in the first place. So I figured I'd see if you knew :) I am using the tip of the OSG 3.6.x branch.
> Glenn Waldron / osgEarth
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list