Hello,
I’ve been trying to determine what’s best for performance regarding materials. And I can’t quite figure out what is best in the end. I want to talk a little about different things around this topic and maybe find a conclusion on what is best for different scenarios.
I have proposed some hypotethical scenes labeled under this block of text.
Anyway, let’s dig into it.
Scene 1 (the instanced materials scene)
- 200 Unique Static meshes (all with 3 full textures on)
- 600 Instanced Static meshes (based on these above)
- 5 Master materials
- 160 Instanced materials
Scene 2 (the master material scene)
- 200 Unique Static meshes (all with 3 full textures on)
- 600 Instanced Static meshes (based on these above)
- 160 Master materials
- 5 Instanced materials
Scene 3 (the mixed scene)
- 200 Unique Static meshes (all with 3 full textures on)
- 600 Instanced Static meshes (based on these above)
- 55 Master materials
- 100 Instanced materials
All the static meshes only have one material on them.
I know things are very per-project based and what you are trying to do specifically, and performance varies based on many factors. But let’s try with these three scenes to find the pros and cons of the different approaches.