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

No reallocation #392

Conversation

tizianoGuadagnino
Copy link
Collaborator

It's a simple fix that lets us gain some performance without changing anything. I quickly benchmarked this, and there was a significant difference. I built it on top of #391 so that it can be merged in sequence.

https://quick-bench.com/q/kayKiXTVXIT4lK9VmZl0YHnmE9M

❤️ don't hate me guys

@@ -30,12 +30,16 @@
#include "VoxelUtils.hpp"

namespace {
static constexpr int adjacent_voxels = 1;
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can drop this as parameters at this point, right 🤔 ?

@nachovizzo nachovizzo added the voxelization All the topic related to voxelization utilities label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core voxelization All the topic related to voxelization utilities
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants