Sorting of objects

Started by Thomas., March 23, 2012, 08:45:41 PM

Previous topic - Next topic

EgonOlsen

Yes...that's what i said a few posts above. I don't get your point ATM. IMHO sorting by state is more efficient than sorting by depth for the general case. But if you want to try it, just flip that Config-switch and see for yourself. The option is there for you to try. Just keep in mind that this has no influence on single objects because you can't change the in-object draw order. That's why i consider early-z to be a rather inefficient solution of which you can't expect any wonders.

Thomas.

But objects can be sorted by dept of group with same texture, inside of group also by depth...

EgonOlsen

Apart from making the sorting more complex, this only applies to objects with exactly the same attributes/states that overlap by a huge amount. How often does this case apply? Exactly...almost never. And if it does, it still isn't any better. You can be sure that i tried a lot of stuff over the years on Android as well as on the desktop. This 'optimization' isn't even micro-optimization...it's pointless and the time spend on it should better be spend somewhere else.