-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
start work on noise for chunk generation #90
Conversation
Noises used in surface generation is done. Actual chunk population is more in-depth. I'll need to take a longer look at it all to see whats going on. |
I will review the rest. It shouldn't take more than an hour. |
About the inline, I recommend to take a look at https://gist.github.com/kvark/f067ba974446f7c5ce5bd544fe370186#dont-use-inlinealways |
Interesting resource. I assumed the inlining behavior was the same between Rust and other C compilers. Thank you for the sharing. I guess the inlining changes can be reverted if deemed necessary. |
Ok I may have been too optimistic, the review will take more than an hour. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good. Just found two improvements.
) | ||
} | ||
|
||
#[allow(dead_code)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a large amount of #[allow(dead_code)]
You would be better setting this at module level instead (#![allow(dead_code)]
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how best do you recommend doing this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've opened suggestions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be good now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
Looks good. Thank you @kralverde ❤️ |
WIP
This PR aims to implement the noise and related methods used for chunk generation. The noise will generate the same values as the Java implementation given the same inputs.