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

More efficient data structures #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

macdja38
Copy link
Member

Serialize into a string not json
Store items in a Uint8Array
Send out chunks over multiple event loop ticks
Change Chunk size to 16 instead of 32 to cut down on cost of
re-rendering and transmitting chunks on block place.

Serialize into a string not json
Store items in a Uint8Array
Send out chunks over multiple event loop ticks
Change Chunk size to 16 instead of 32 to cut down on cost of
re-rendering and transmitting chunks on block place.
for (let x = -2; x < 2; x += 1) {
for (let z = -2; z < 2; z += 1) {
for (let x = -4; x < 4; x += 1) {
for (let z = -4; z < 4; z += 1) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like something you have been managing and changing these variables a lot. Every time what we mess with the Chunk Size in the config. Maybe it would be a good idea to move it into a variable in the CONFIG?

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.

3 participants