franksouza183
New member
Why are my prefabs (unity) heavier than the vanilla prefabs? How to optimize them?
I'm developing a modlet with new 3D models of vegetation, like grass, trees, etc, however I was surprised that I can not make a prefab lighter than, for example, a vanilla grass (treeTallGrassDiagonal).
I did the following test: I created a biome where there's only the custom prefab, with only 1 triangle, without material, without collision, with 100% probability, filling the entire biome. I've got 20-30 fps.
Then I replaced this custom prefab with a vanilla, and the result really surprised me: 80-85 fps.
So, what am I probably doing wrong when creating a new prefab?
I'm developing a modlet with new 3D models of vegetation, like grass, trees, etc, however I was surprised that I can not make a prefab lighter than, for example, a vanilla grass (treeTallGrassDiagonal).
I did the following test: I created a biome where there's only the custom prefab, with only 1 triangle, without material, without collision, with 100% probability, filling the entire biome. I've got 20-30 fps.

Then I replaced this custom prefab with a vanilla, and the result really surprised me: 80-85 fps.

So, what am I probably doing wrong when creating a new prefab?
Last edited by a moderator: