[osg-users] Extra draw calls in osgText?

Glenn Waldron gwaldron at gmail.com
Thu Jul 19 13:47:07 PDT 2018


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:


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180719/8edeb246/attachment.html>

More information about the osg-users mailing list