Hi,

I find it is very time-consuming if osgCUDA::Geometry is added too much 
PrimitiveSet. But if replace osgCUDA::Geometry with osg::Geometry,  it is very 
fast even if osg::Geometry is added the same number of PrimitiveSet.

for example, 
osgCuda::Geometry* geometry = new osgCuda::Geometry;
for (unsigned int i=0;i<60000;i++)
        {
                geometry->addPrimitiveSet( otherGeometry->getPrimitiveSet(i) );
        }
 otherGeometry is a osg::Geometry, a model.
the running time is over 10 minutes.
but if I use osg::Geometry, the running time is only several seconds.

So I want know the reason and how to improve.

Thank you!

Cheers,
Zhen

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42234#42234





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to