Performance improvement

This commit is contained in:
Maximilian Giller 2023-01-26 20:32:40 +01:00
parent ec59f251c7
commit 3f3c89b0d0

View file

@ -4,12 +4,14 @@
CloudNoise::CloudNoise(int size) : Noise(size)
{
int minSize = std::min(32, size);
// Some worley noises
WorleyNoise worleyNoise1(size, 3);
WorleyNoise worleyNoise1(minSize, 3);
WorleyNoise worleyNoise3(size, 15);
// Some perlin noises
PerlinNoise perlinNoise1(size, 3);
PerlinNoise perlinNoise1(minSize, 3);
PerlinNoise perlinNoise2(size, 15);
// Generate the noise