Paul Martz wrote:
> On 5/6/2011 4:05 AM, Fred Smith wrote:
> 
> > You usually want to create GL batches that are as large as possible. 10 
> > draw calls of 100 elements will be slower than 1 draw call of 1000 elements.
> > Something else I have noticed a little while ago was that the stateset 
> > processing engine of OSG might be slow. One thing I have been surprised 
> > with was the performance with a scene graph containing just empty statesets 
> > on drawables vs. no stateset at all. Just having empty statesets decreases 
> > perf quite a bit, eg. just by calling getOrCreateStateSet.
> > 
> 
> osgWorks.google.com contains the CountStateSets visitor, which will remove 
> empty 
> StateSets, just for this reason.
> -Paul
> 

OSG is a great piece of code, don't get me wrong - but I see a weakness here.

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





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

Reply via email to