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

Consider using Subchunks instead of ChunkBlocks #458

Open
wants to merge 27 commits into
base: master
Choose a base branch
from

Conversation

suprohub
Copy link
Contributor

@suprohub suprohub commented Jan 5, 2025

Description

What?
Yeah, i want structure chunk and make subchunks. Its a very cool optimization for chunk section, because its utilizes air and any other block.
Its a demo pr. Like its need discussions and optimizations, but can be merge now.
Its also can break some code, because its a game changer.

Testing

cargo run --release
see whats its not crashing, i can place blocks normally
see memory usage on my branch
git checkout main
cargo run --release
see memory usage on main
think what it works
Please follow our Coding Guidelines

@suprohub
Copy link
Contributor Author

suprohub commented Jan 6, 2025

all done

@suprohub
Copy link
Contributor Author

suprohub commented Jan 6, 2025

All done again

@suprohub
Copy link
Contributor Author

suprohub commented Jan 7, 2025

Wil be cool if someone write a #462, or if someone add another compression methods like octree or paletted container with bitvec

@Snowiiii
Copy link
Member

Snowiiii commented Jan 7, 2025

Why you just copied to rle-vec crate ?, If you don't know in rust we have Cargo.toml files where we include dependencies. I'm also not sure if this is legal since they use the MIT license

@suprohub
Copy link
Contributor Author

suprohub commented Jan 7, 2025

Why you just copied to rle-vec crate ?, If you don't know in rust we have Cargo.toml files where we include dependencies. I'm also not sure if this is legal since they use the MIT license

I wanted make some changes but i idk why, i just zabil what i want to do

Edit: vspomnil, rle dont have .get() method

@suprohub
Copy link
Contributor Author

suprohub commented Jan 7, 2025

Maybe it can improve situation?

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.

2 participants