I have a bunch of the same prefab that make up a level but I’m noticing some slowdown with levels that have a lot of these objects. It makes sense obviously that the more objects in a scene the more processing. But I’m wondering if there’s a more efficient way do make a bunch of these objects other than me ctrl+d -ing over and over again.
Has anyone ever run into this?
Why are you duplicating meshes?
What exactly ís the object that you’re duplicating? Because the whole original object’s tree is copied.
So some objects can be running heavy scripts, heavy shaders or other things like drawing many shadows.
(Isn’t the prefab link broken someway? maybe that causes a performance hit too)
Also in regions where multiple of the same objects are together, you can group the objects in a seperate parent, and give that parent the “CombineChildren” script (found the standard assets scripts package), this should optimize objects using similar meshes and textures, thus improving performance.