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

Add support for compressed chunk updates, GH-136 #173

Merged
merged 2 commits into from
Jun 3, 2017
Merged

Conversation

satoshinm
Copy link
Owner

#136
satoshinm/WebSandboxMC#86

Adds a new "b," command which indicates the next binary websocket frame (web client only, no native since TCP doesn't have its own framing and the application uses newline delimitations, but web sockets have their own built-in framing which is used here) with compressed block data over a given multi-block range. This is for a faster/smaller initial world load than tons of "B," commands for individual block updates.

satoshinm added a commit to satoshinm/WebSandboxMC that referenced this pull request Jun 3, 2017
@satoshinm satoshinm changed the title [WIP] Add support for compressed chunk updates, GH-136 Add support for compressed chunk updates, GH-136 Jun 3, 2017
@satoshinm satoshinm merged commit 2cd2030 into master Jun 3, 2017
@satoshinm satoshinm deleted the compactchunk branch June 3, 2017 23:02
satoshinm added a commit to satoshinm/WebSandboxMC that referenced this pull request Jun 3, 2017
* Add chunk loading functions based on ThinkMap

* Write block types to a buffer and gzip it

* Send compressed initial chunk update (b, command with deflate).

Depends on satoshinm/NetCraft#173

* Change compact chunk order to ZYX, about 10% smaller

See #86 (comment)

* Cleanup logging

* Clarify block data update variable name

* Fix block lighting updates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant