Perlin vs Simplex noise performance

Since I started comparing the two, why not continue…

Noise fields comparing both (perlin on the left, the third argument of noise is constant).
2018-10-06-174735_500x500_scrot

And same, but third argument is slowly changing time:
2018-10-06-174832_500x500_scrot

Rendered with this program:

import toxi.math.noise.SimplexNoise;

void setup() {
  size(500, 500);
  background(0);
  stroke(255, 50);
  noiseDetail(1);
}
float zoom = 0.03;
void draw() {
  float xx = random(width);
  float yy = random(height);
  for (int i=0; i<500; i++) {
    float a;
    float t = 0; // frameCount * 0.001;
    if (xx<width/2) {
      a = TWO_PI * noise(xx * zoom, yy * zoom, t);
    } else {
      a = PI * (float)(SimplexNoise.noise(xx * zoom, yy * zoom, t));
    }
    xx += cos(a);
    yy += sin(a);
    point(xx, yy);
  }
}
3 Likes