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

Use voxel manip for barrier placing commands #1265

Merged
merged 7 commits into from
Jun 29, 2024

Conversation

a-blob
Copy link
Contributor

@a-blob a-blob commented Jan 29, 2024

  • This PR has been tested locally

@a-blob a-blob marked this pull request as ready for review January 29, 2024 03:46
@appgurueu
Copy link
Contributor

Have you benchmarked that this is actually substantially faster? Barriers are a bit special because they are relatively sparse. VoxelManip can't offer sub-mapblock granularity. So with this PR, you'd be loading & setting at least 15 non-barrier blocks for each barrier block. This may very well offset any performance gains from using VoxelManip.

@a-blob
Copy link
Contributor Author

a-blob commented Mar 12, 2024

The main problem with the current one is not speed, but that the barriers will have holes if a chunk within the selected area is not rendered when it's placing the barriers.
image

Copy link
Member

@LoneWolfHT LoneWolfHT left a comment

Choose a reason for hiding this comment

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

Is this ready and safe for merge?

@a-blob
Copy link
Contributor Author

a-blob commented Jun 17, 2024

@LoneWolfHT I think so

@LoneWolfHT LoneWolfHT merged commit 18819cd into MT-CTF:master Jun 29, 2024
1 check passed
@a-blob a-blob deleted the barrier-commands branch June 29, 2024 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants