Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement better compression for non-height terrain saves #187

Open
Son-Guhun opened this issue Jun 4, 2020 · 0 comments
Open

Implement better compression for non-height terrain saves #187

Son-Guhun opened this issue Jun 4, 2020 · 0 comments
Assignees
Labels
polish Small improvements for existing features
Milestone

Comments

@Son-Guhun
Copy link
Owner

#147

Further compression

Further compression can be achieved by iterating over all cells before generating the save string. If none of the cells have a height value, or all of them have the same height value, then this can be stored as the first information in the string, and then these cells can be saved using TV instead of TVHH, allowing us to fit 60 cells in a single string, instead of 30.

Eg:
#+g0g0h00ce2ece0c01080c040h00000000cece2e080c0g0g0c0h04080c08ce2ecec8000h0c0402010c0d0cccce2ec00c00080g00090904c8c8ce2ec1cc

The # as the first char indicates we are going to use a single height value for all the cells. The first two characters following the = represent the height value in the chosen base. The rest of the string is simply a TV string.

@Son-Guhun Son-Guhun self-assigned this Jun 4, 2020
@Son-Guhun Son-Guhun added this to the Version 1.5.x milestone Jun 4, 2020
@Son-Guhun Son-Guhun added the polish Small improvements for existing features label Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
polish Small improvements for existing features
Projects
None yet
Development

No branches or pull requests

1 participant