Hey i have this object which is build using several sub object (all objects are separated):
So i have 48 setpass calls and 160 shadow casters
Now if i use a combine children script:
I have 46 setpass calls and 16 shadow casters.
The different in shadow casters is uge but how much does it matter compare to the number of vertices which is the same in both case ? What i mean is how much the number of vertices affect the shadow performances ?
I don’t know if i’m clear, but im trying to combine some of my object to improve performance but since the setpass calls doesnt seems to change much it comes down to the shadow casters.
Is there any other benefit of combining them ?
well i copied each version 50 times, in both case it started to get slower. 3000 shadow caster vs 13500 i couldnt notice a difference in performance though (they both run at same speed), i tried with a directional light + a point light both casting shadows.
Let me know if im missing something 
Here’s the usual “it depends” answer. Without knowing more it is very hard to give a useful answer. Tell us a bit more about your game and the target platform. Are you running on a high end PC or just some old mobile, Are you rendering many of the objects shown above or many different similar objects, or only just a few of them…
Quite generally, looking at the mesh, it looks as if it could be combined together to just a single mesh and material. You can do it by hand by combining the different textures and laying out the uvs accordingly, but there should also be more elaborate tools around that can do all the heavy lifting for you.
Im working on a package for the asset store, it’s more suitable for PC but depending on the setup and object use it may work on mobile. I have 3 atlas and use LOD for some of the meshes.
It’s not finish and it run well so far, but i was experimenting to see what i could improve for performance outside the atlases/LOD.
Currently the most expensive stuff in my scene is actually the Water4 from unity for the sea, but thats not too important there is lots of other water shaders on the store so i dont really plan on doing anything about that, it’s just for the demo.
Thanks for your help!
I was mostly wondering if shadows are affect by the number of objects, the number of vertices or both and which of those is more important 