I’m working on a mobile game, and i’m experiencing some strange issue with the static batching.
I have some prefabs with a lot of little objets inside it, with the static batching checkbox ticked. Sometimes it works fine and I have only one draw call, and sometimes (when i move the camera) more than 20 draw calls.
I don’t understand, i have only one texture and one material for the scene.
Ok, doesn’t seem to occur when built on a mobile device (Android, HTC One X), but on a pc build the number of draw calls is increasing when the camera is zooming out.
It turns out that 3.5.6 breaks batches around the shadow distance, even with shadows disabled. We fixed that in 4.0 but apparently not 3.5.6. Mobile builds are not affected.
A workaround is to set the Shadow Distance in Quality settings to either zero or some large value.