Hi, like the topic states I am currently tweaking the rendering order of my scene graph.
After VFC and occlusion culling happened i'd sorted the rendering lists by the objects state changes like
1. Pipeline state (enabling/disabling depth test, blending etc)
2. gl program
3. VBO
4. Material
I've never done a huge scene with lots and lots of different objects and I'm just wondering, if the priorities are set correctly. In this case similar materials might be sorted into seperate batches because their gl programs differ... however I thought the register cache will be flushed anyway when the gl program binding changes, won't it? I am kind of walking alone in the dark regarding what properties to cache first when rendering the objects.
Looking forward to your responses!