I changed my mind, I'm not doing the 3D part, I'm actually trying to make MCServer use the faster 2D algorithm wherever it generates 2D noise data. And it's not going so well - so far, the generator is actually slower than before.
Right now, the original version clocked at 190 chunks/sec, while the new version clocks at 145 chunks/sec. No idea why so slow, when the underlying noise generator is faster
Also the terrain looks different, which is weird, they should both generate the exact same thing.
4D noise is usually used when you need to animate a 3D noise, same as 3D noise is used to animate a 2D noise. The noise functions work in any number of dimensions, 6D noise is also quite usual.
Duh, I'm so stupid! In the biomal height gen, I first found out what biomes are used within the current chunk, and then went ahead and generated height for all possible biomes, instead of only the used ones.
Now the performance is back up, but curiously though, not too much higher than before. There's still something fishy. But it'll have to wait till tomorrow.
Right now, the original version clocked at 190 chunks/sec, while the new version clocks at 145 chunks/sec. No idea why so slow, when the underlying noise generator is faster
Also the terrain looks different, which is weird, they should both generate the exact same thing.
4D noise is usually used when you need to animate a 3D noise, same as 3D noise is used to animate a 2D noise. The noise functions work in any number of dimensions, 6D noise is also quite usual.
Duh, I'm so stupid! In the biomal height gen, I first found out what biomes are used within the current chunk, and then went ahead and generated height for all possible biomes, instead of only the used ones.
Now the performance is back up, but curiously though, not too much higher than before. There's still something fishy. But it'll have to wait till tomorrow.