- Home /
Does using the same Mesh variable for multiple Mesh Filters take up more memory?
If I have a bunch of Mesh Filters that use a sharedMesh variable, will that mesh take up the same amount of memory for each Mesh Filter, or will the memory increase just be for pointers to that mesh, with the performance hit coming solely when the mesh needs to be rendered?
Answer by jonas-echterhoff · Mar 02, 2010 at 12:00 PM
It depends. When you just have multiple instances of the same Mesh in the scene, you should normally not have any significant additional memory overhead for the Meshes, since references to the same Mesh will be stored.
However, once you start scaling these meshes, that no longer holds true, as scaled instances of the mesh will need to be created for rendering and physics, which will take up more memory.
Your answer
Follow this Question
Related Questions
Do I need to manually destroy material/model instances that are lazily copied? 2 Answers
Are big meshes all held in memory? 3 Answers
Efficient access to Mesh arrays 1 Answer
Prefabs / meshes / instances / performance / size 0 Answers
Instantiating prefabs multiple times shares mesh memory or not? 1 Answer