- Home /
Optimize mesh for runtime performance
Hey,
I'm currently doing a project, where I need to load/generate some models/meshes at runtime and can't optimize them beforehand. In editor I can use MeshUtilities.Optimize to get the mesh into an optimized form. But as this is not available outside of Unity Editor namespace, I'm wondering if there is an equivilant available. Loading time is of less import so optimizing the mesh to get best runtime performance (i.e. FPS) is what I'm looking for. Are there any internal functions available or external code snippets to optimize the meshes? I'm mostly wondering, because for the models I load the count of vertices and indices is the same and 3x the time of triangles, so I suspect that no vertices are "reused" if shared between triangles. Any help would be appreciated!