<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
I'm using osgText to show vertex numbers. Often enough it's only
0,1,2 for triangles but it can be several hundred thousands of them.<br>
<br>
It's never been optimal, I know - and I guess this is the time to do
something about it, I will look into an alternative way without
osgText. Any suggestions are welcome!<br>
<br>
Regards,<br>
Andreas<br>
<font size="2" color="black"><span
style="font-size:0.8em;color:black"></span></font><br>
<font size="2" color="black"><span
style="font-size:0.8em;color:black"></span></font>
<div class="moz-signature"><font size="2" color="black"><span
style="font-size:0.8em;color:black"><br>
</span></font>
</div>
<div class="moz-cite-prefix">On 2017-09-08 17:09, Robert Osfield
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAFN7Y+UKHTadQdga+xCKu-JJ13VxNwZ0411wQq4UZhdN6A3OmQ@mail.gmail.com">
<div dir="ltr">
<div>
<div>
<div>Hi Andreas,<br>
<br>
</div>
I am bit surprised by the extra memory footprint, as I'm
currently working on osgText::Text I don't want to start
diving into code that may well disappear once my work is
complete. The new osgText::Text implementation relies upon
shaders to do outline and shadows rather than multipass and
should simplify the internals a bit. Given this the balance
of memory overhead is likely to change.<br>
<br>
</div>
As a general comment, creating a 150,000 copies of an object
is something that raise a red flag - suggesting that you are
working around an issue that may well be better solved with a
different approach, perhaps not using osgText::Text at all.<br>
</div>
<div><br>
</div>
<div>Could you explain from a higher level what you are wanting
to do with all these text labels?<br>
</div>
<div><br>
</div>
Robert.<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
osg-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
</blockquote>
<br>
</body>
</html>