- Intrincics instruction set: AVX & AVX2 (mirror for Russia)
- Graphic library: raylib
- OS: Window 10
The Mandelbrot set is the set of complex numbers for which the function [f_c(z)=z^2 + c] does not diverge to infinity when iterated from z=0
In my case i considered as belonging to set all points that do not leave circle of radius R = 10 after 256 steps
I used raylib library to visualise it, thus i got:
Without optimization FPS oscillates about 10 FPS:
With AVX intinsics optimization FPS oscillates about 20 FPS:
both programs were compiled with g++ using further flags (f.ex for avx.cpp):
g++ avx.cpp -o avx.exe -O0 -Wall -Wno-missing-braces -I include/ -L lib/ -lraylib -lopengl32 -lgdi32 -lwinmm -mavx -mavx2
Also i computed "clear" benefit, not considering graphic drawing expenses:
-
No-AVX: 13 FPS
-
AVX: 50 FPS
In no_graphic way FPS = mean FPS considering 100 computing iterations