- Home /
Custom Mesh
Hello, I am new to custom mesh creation from code. I know to make mesh by setting vertices, triangles, normals, uv etc.
My only concern is that how many mesh can you create without performance issue, and more importantly on Mobile.
I want to create a mesh with 8 vertices each and there can be 5-20 mesh at a time. Also I want to change the shape of all the mesh after certain time for eg 1-2 seconds.
So can anyone tell me how custom mesh can affect performance also how many can you create without performance loses.
Thanks you.
Answer by Meishin · Aug 25, 2019 at 01:38 PM
Hi @zdodhiawala,
There is no "standard" performance benchmark for such, since it really depends first on your meshes and your textures, but also their rendering e.g. the shaders you're using, the number of lights in your scene, if you use shadows or not, etc..
However i'm pretty sure 8 vertices * 20 meshes ain't gonna be a problem, i once saw a thread where a guy was creating over 600k vertices on a Android (Samsung Tab S3) in less than 13 ms (so approximately 1 frame at 60 fps). Best would be to create a quick script with basic meshes (do not use primitives since they are much faster to create & render) and test by yourself
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Mesh.CombineMeshes does not work when mergeSubMeshes=false 2 Answers
Mesh.uv during Editor Mode 1 Answer
Mesh Performance Issues 1 Answer