[osg-users] Geometry::addPrimitiveSet() performance issue in 3.6.x

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Wed May 13 08:28:53 PDT 2020

I noticed a performance regression in the 3.6.5 release compared to 3.4.x 
caused by Geometry::addPrimitiveSet() when adding a largish (thousands) 
number of primitiveSets to a Geometry.
This performance regression is caused by 
Geometry::getOrCreateElementBufferObject in the case the PrimitiveSet does 
not have an elementBufferObject. 

Couple of questions 
- What is an elementBufferObject?
- Why is it "required" for a primitiveSet?

I worked around the issue by creating an elementBufferObject for each of 
the primitiveSets which avoids the very expensive 
Geometry::getOrCreateElementBufferObject() but that seems like a sledge 
hammer approach.


You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/c1b05c34-c47d-48bf-b93c-e28ffdd36727%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200513/bbd7fc5c/attachment.html>

More information about the osg-users mailing list