Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Save chunk states #10

Open
Eldemarkki opened this issue Dec 22, 2019 · 2 comments
Open

Save chunk states #10

Eldemarkki opened this issue Dec 22, 2019 · 2 comments
Labels
feature New feature

Comments

@Eldemarkki
Copy link
Owner

Save the densities of all the chunks, so they can later be reloaded and thus save whole worlds

@Eldemarkki Eldemarkki added the feature New feature label Dec 22, 2019
@ghost
Copy link

ghost commented Jun 4, 2020

Might be useful for compressing stored chunk info:
https://github.com/Genbox/CSharpFastPFOR

(only suitable if density values are ints)

@Eldemarkki
Copy link
Owner Author

Eldemarkki commented Jun 5, 2020

The density values are bytes so unfortunately, that wouldn't work. Something that would work though, is run-length encoding. RLE may also be able to compress the chunks a lot because there usually are long runs of densities 1 and 0 (because big parts of the chunks are either completely solid or completely air).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant