I'm writing a scene-graph based graphics engine for modeling purposes. I'm using XNA 4. On many places I have been reading, that texture changes (and other state changes) should be minimized during rendering (so I have to order my primitives by materials, etc.).
I created a small test application in XNA 4, which was rendering hundreds of stanford bunny models with a single texture, then doing the same toggling 2 different textures. There was no difference in rendering time (however I used small ~100x100 textures).
So my questions are:
- Should I really care about sorting my primitives by texture/color/other material parameters? Or is it less important on modern GPUs?
- What is the expectable percentage of performance loss, if I don't?
- Are there any other state changes, which can effect the performance?
- Where can I find some up to date literature/best practice guide about this?
Thank you for any help or links!