- Home /
Best way to save procedural world/mesh?
I was wondering which way was best in saving a procedural worlds/mesh. Should I save the player's position and then re-generating the chunks? or save the mesh and load the meshes? or is there an easier/better way? Also would saving the mesh and loading it be more optimised than re-generating them?
that entirely depends on what kind of procedural world you have there. Recreating usually saves a lot memory on disk since you only need to save the parameters of your generator. However if the world can be heavily manipulated / changed it's better to store the endresult.
$$anonymous$$inecraft for example does both. If a chunk hasn't been changed / visited, nothing is saved. Only already initialized chunks are saved. However $$anonymous$$C saves the voxel data, not the mesh data.
Again it depends on what data set your world is generated and what makes up the actual world. Also you only have to save things that can be changed. Things that can be recreated should be recreated procedurally.
$$anonymous$$y meshes do not change I was just wondering which way was more efficient and would be more optimised. Thank you for this, I think I will just save the players position and then generate the terrain again.
Your answer
Follow this Question
Related Questions
How do I properly save a procedurally created mesh? 1 Answer
How do I save/restore a procedurally generated mesh in runtime in Unity 5? 2 Answers
How should I save the Meshes generated inside a ScriptableObject 1 Answer
Save/ Load in Editor created meshes 1 Answer
Saving and Loading data in one scene 1 Answer