- Home /
Can a dynamic mesh be made NOT readable? to save mem
I'm working on a voxel terrain engine, and I generate chunk meshes at run time. But when the chunk is generated, I don't need it in main memory at all. As long as it's in VRAM, that's all I need. However, the Unity docs say that all dynamic meshes can only be readable...is there a way around this? Meshes are definitely causing unnecessary memory overhead right now, and it's kind of a show stopper.
Answer by Jasper-Flick · Feb 03, 2014 at 03:44 PM
The best you can do is to not use MarkDynamic. Beyond that, minimize the vertex data you use. There's a big difference between using only vertex positions and also using colors, uv, uv2, normals, or tangents.
The naive approach would be to turn your entire voxel world into meshes all at once. This won't work. A big part of a voxel engine is dynamic mesh management.
Your answer
Follow this Question
Related Questions
Voxel Mesh has Lines Between the Voxels 1 Answer
Huge world without huge lag? 1 Answer
Voxel Terrains 0 Answers
Out Of Memory With Mesh Generation 0 Answers
Shader: Mesh with Grass and Wind 1 Answer