How many materials on the mesh maximum? - performance

Hi, I have spread on a mesh about 10 different material. Substance Painter 2 has created for each a Texture. Ranging in size from 256 to 2K. For thus fits in more detail and it is easier to paint with SP2. Should I prefer to use a Color ID?
I want to know how it affects the performance.

One mesh with one material = one drawcall.
A drawcall is the mesh being rendered once.
One mesh with two materials = Two drawcalls.
This means the mesh will be drawn two times.
A mesh with 10 different materials will be 10 drawcalls.

not to mention that all the materials will be varied in calculations, texture sizes, etc, etc.
Now if the mesh is a main character, a high end car, or anything else thats only shown once or twice in view then its fine…

But if you have a tree with ten drawcalls will mean that 100 tree’s will have 1000 drawcalls.
I suggest to try and merge as much of your textures together and reduce drawcalls as much as possible.

1 Like