Maximum iterations

To calculate a pixel in a fractal, Ultra Fractal iterates the selected fractal formula. It executes it multiple times, each time using the result from the previous calculation as input.

The formula is iterated until the maximum iteration count is reached, or until the bail-out condition (specified by the fractal formula) is met. If the bail-out condition is met, the pixel is colored as an outside pixel. Otherwise, it is colored as an inside pixel.

Sometimes, many iterations are necessary to reach the point where the bail-out condition is satisfied. If the maximum iteration count is too small, the pixel will be incorrectly colored as an inside pixel because the bail-out point is not reached. On the other hand, if the iteration count is too large, many iterations will be performed for the pixels that are inside, and the fractal will be calculated slowly.

The Maximum Iterations setting on the Formula tab of the Layer Properties tool window specifies the maximum iteration count. To help you find a good value, the Statistics tool window shows a histogram of the iteration values on its Iterations tab.

This example illustrates the influence of the maximum iterations setting:

Maximum iterations: 20
Maximum iterations: 200
Maximum iterations: 2000

We see the same image three times, with three different values for the maximum number of iterations. Below each image, the iterations histogram from the Statistics tool window is shown.

The first image clearly suffers from a low value for the maximum iterations setting. By increasing it, we obtain the second image, which looks much better. Further increasing the value does not change the image much, so we conclude that 200 is a good value in this case.

Notes

Next: Formula parameters

See Also
Fractal formulas
Working with fractal formulas
Inside and outside