Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

GameObjects vs. Submeshes

$
0
0
Hi! I'm creating a Voxel Terrain engine. My chunks' dimensions are: 16x16x16. It means that I need a lot of them to fill up the space I want. It also means (for now) instantiating and removing a lot of gameObjects. I need to optimize it, because it produces terrible laaaggg. So my question is: Is it better to reuse the same gameobjects or to create just a few of them and use submeshes to place several chunks inside, or maybe a combination of these two? (I heard that submeshes allocate extra memory and I don't know how they affect MeshCollider and Mesh update performance, but gameobjects as they're now are horrible too). Thanks for your help in advance. Kiel368

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>