- Home /
Objects using the same material are incurring separate draw calls.
Hi.
I have a prefab consisting of a mesh (152 verts, 76 tris, uv,colors) and a mesh renderer using the Mobile/Diffuse shader with a texture sized 64x64 automatic compressed with mipmaps.
Now I use this prefab multiple times in the scene but each use costs me an additional draw call. What am I doing wrong here? I get the number of draw calls from the "GPU Usage" Pane in the profiler.
Thanks.
Are you "touching" the material in code anywhere? In the Inspector while running, does the $$anonymous$$at slot have (instanced) after it?
No I don't touch the material. There is no (instanced).
It's worth noting my objects are not static. They have rigidbodies and move, but dynamic batching is turned on.
How many vertices your dynamic objects have? If its more than 300 then they won't batch.