Author Topic: Sorting of objects  (Read 2628 times)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: Sorting of objects
« Reply #15 on: March 31, 2012, 10:02:45 am »
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.

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Sorting of objects
« Reply #16 on: March 31, 2012, 10:20:35 am »
But objects can be sorted by dept of group with same texture, inside of group also by depth...

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: Sorting of objects
« Reply #17 on: March 31, 2012, 11:29:26 am »
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.