Hello Volker,

On 04/23/2012 11:36 AM, Volker Settgast wrote:
> as I understand, OSG sorts the draw tree by material to minimize the
> state changes. This works perfectly for “normal” materials. I created a
> simple test scene with n objects and one material and get just one state
> change.
>
> But as soon as I and a shaderprogram chunk to the material, the
> statistics overlay reports n state changes with n = number of matrix
> changes. So it seems that there is a state change for every object even
> if only one material is used in the whole scene.
>
> Is that a bug?

just a quick check: is this with an up-to-date OpenSG2? Gerrit 
cleaned-up the statistics last week and I'm wondering if the issue you 
are seeing was just a matter or wrongly counted statistics.

        Cheers,
                Carsten

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to