Project DescriptionThis application calculates the Mandelbrot set using a parallel solver loop (.net 4.0 + WPF).
Features
- Solver loop using Parallel.For
- Zoom/pan in WPF window (use the mouse wheel or A/Z keys to zoom)
- Reports the time used to calculate the last frame
- Change maximum number of iterations
- Console application for profiling
The algorithm
int Solve(double x0, double y0, int maxIterations) {
int iteration = 0;
double x = 0;
double y = 0;
while (x * x + y * y <= 4 && iteration < maxIterations) {
double xtemp = x * x - y * y + x0;
y = 2 * x * y + y0;
x = xtemp;
iteration++;
}
return iteration;
} Requirements
- Visual Studio 2010
- .NET 4.0
Links
GPU solvers