Hi,
I find:
if geom->setUseVertexBufferObjects(true), the process of "addPrimitive()" is
also very long.
for example:
osg::Geometry* geometry = new osg::Geometry;
geom->setUseVertexBufferObjects(true)
for (unsigned int i=0;i<60000;i++)
{
geometry->addPrimitiveSet( otherGeometry->getPrimitiveSet(i) );
}
The running time is also more than 10 minutes.
So I quess, osgCuda::Geometry is creating VBO and EBO when many PrimitiveSets
are added into.
I haven't read the source code about VBO and EBO, and I don't know why the
process of creating VBO and EBO is so long if the number of PrimitiveSets is
large.
Thank you!
Cheers,
Zhen
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42249#42249
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org