Hi,
I’ve been trying to batch objects and I am getting strange results and I do not understand why.
I have noticed that Unity does not seem to batch objects with more than 158 vertices. I’ve posted a thread in the support section of the forum about that yesterday, but did not get any replies yet.
I now have another problem.
I’ve tested the batching with cubes created in the editor and it seems to work correctly. Each object generates only one draw call, and all the other instances are batched together.
The problem is that when I use a mesh that I have created in Max (a simple sphere with 140 vertices, and instantiate it, the following occurs:
1 sphere: 2 draw calls
2 spheres: 2 draw calls - 2 batched
3 spheres: 3 draw calls - 2 batched
4 spheres: 3 draw calls - 4 batched
5 spheres: 4 draw calls - 4 batched
6 spheres: 4 draw calls - 6 batched
And so on…
I’ve tried exporting a simple cube from Max and it’s working properly as well. All the objects are using the same material.
I really don’t understand what’s going on.
Anybody would have any idea of what I’m doing wrong here?
Thanks!