Pointer & Arteon
Hey, I’ve been playing around with a generative art piece that uses recursion to create fractal patterns, but I’m trying to keep it efficient without losing that dreamlike feel. Any ideas on how to balance the two?
If you’re fighting recursion depth, start by capping the depth or adding a base‑case threshold that returns a simple pattern. Cache sub‑fractal results so you don’t recompute identical shapes. Try an iterative stack instead of real recursion; it removes the overhead of function calls and lets you tweak the loop order for better cache locality. If you still want that ethereal vibe, keep the color blending or noise functions on the outer loop while the inner fractal stays deterministic. Profile a few frames, adjust the number of iterations until the CPU stays below your comfort level, and you’ll have an efficient, dreamlike fractal in no time.