Saving a procedurally generated world

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By snk

Hi,

I have a world that is generated procedurally and I would like to save the created chunks on the disk.

This involves a very large amount of datas. I can’t store eveything into memory when I need to access it and I don’t think saving hundreds of thousands files in a folder is a good idea. I need to keep the ability to access precise chunks relatively quick in order to build the world fluently around the player.

Currently my data structures are Variants, Strings and PoolIntArrays.

If someone already faced this kind of problem, of if someone just have some workaround ways to achieve this, I take any ideas. Thanks alot.