-
Notifications
You must be signed in to change notification settings - Fork 121
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
fbm can be a lot faster #299
Comments
Razaekel
added a commit
that referenced
this issue
Mar 11, 2023
PrinceOfBorgo
added a commit
to PrinceOfBorgo/noise-rs
that referenced
this issue
Jan 11, 2024
…he value in the loop (as suggested for fbm in Razaekel#299). Fixed calc_scale_factor in fbm constructor.
Razaekel
pushed a commit
that referenced
this issue
Mar 17, 2024
…he value in the loop (as suggested for fbm in #299). Fixed calc_scale_factor in fbm constructor.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I noticed that in fbm.rs (2d, 3d, 4d), the signal is multiplied by
self.persistence.powi(x as i32);
each time through the loop. My code runs in only 45% of the time if I change that to instead by a local variable that is updated each octave. I think it is still correct. Thanks!The text was updated successfully, but these errors were encountered: