afonsolage / projekto

Voxel game made with Bevy Engine
MIT License
59 stars 4 forks source link

Improve chunk cache system #49

Open afonsolage opened 2 years ago

afonsolage commented 2 years ago

Actual chunk cache system just saves and load a bunch of small files on the disk. This is sub optimal and can be better.

Ideally there should be a cache radius, where all chunks inside that area, are loaded into memory and chunks outside are unloaded. Chunks loaded should still be compressed, to reduce memory footprint. When someone needs that chunk cache, it should decompress and use.