[osg-users] Improving performances
Robert Osfield
robert.osfield at gmail.com
Thu Feb 23 04:35:42 PST 2017
HI Ale,
On 23 February 2017 at 12:16, Ale Maro <sasha71 at teletu.it> wrote:
> I think it is correct not to use indexed sets to have good performances.
I don't understand what you mean by "indexed sets".
With the OSG/OpenGL you can use osg::DrawArrays/glDrawArrays and
osg::DrawElements*/glDrawElements to define what primitives to render,
DrawElements you provide indices into the vertex arrays and enables
you to share vertices so typically reduce the vertex count, lower
memory footprint and bandwidth and if done efficiently can utilize the
vertex processing cache on the GPU to reduce the vertex load. For
this reason it's generally more efficient to use osg::DrawElements
than osg::DrawArrays.
Robert.
More information about the osg-users
mailing list