![]() |
World folder - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Discussion (https://forum.cuberite.org/forum-5.html) +--- Thread: World folder (/thread-72.html) Pages:
1
2
|
RE: World folder - FakeTruth - 05-06-2011 Phew.. I just did a whole overhaul on the way stuff is saved, and it's not even done yet. I went with the same kind of approach Notch did, now multiple chunks are saved in one file, and it's compressed! It's tiny ![]() I created a test case: Old format:
New format:
The new format stores a maximum of 1024 chunks ( 32 by 32 ) chunks in one file. Chunks are intelligently cached in compressed form in memory and uncompressed when they are needed which keeps the RAM usage really low (expect 2~4kb per unused chunk, ~80kb per used chunk). In addition to that, it's REALLY fast! ![]() Data is compressed with zlib which (I think) comes with it's own corruption detection stuff, so I no longer have to check that manually ![]() PS: Another awesome thing is that your old data is converted to the new data ON THE FLY ![]() RE: World folder - codename_B - 05-06-2011 I still want the ability to convert my minecraft single player worlds into MCServer worlds - there's just stuff I can't be bothered building again. Even if it was a really inneficient converter that I had to leave running for 5 hours that'd be better than nothing :S RE: World folder - Tim - 05-10-2011 (05-06-2011, 02:22 AM)FakeTruth Wrote: Phew.. I just did a whole overhaul on the way stuff is saved, and it's not even done yet. That sounds epic ![]() |