Fast & simple Mandelbrot

Blitz3D Forums/Blitz3D Programming/Fast & simple Mandelbrot

Finjogi(Posted 2006) [#1]
I found this one from KPL (http://www.k-p-l.org/index.php) and converted it to the Blitz3d (some unneeded code is commented out..)
It is quite fast I must say.. even if it traces only edges of set.

How about little "challenge", could you make this faster or improve it otherwise? (like fillingspace between trace edges..)




luke101(Posted 2006) [#2]
you could probably squeeze some speed out of it by turning some floating point variable to integer. But the code looks pretty optimized


Finjogi(Posted 2006) [#3]
Back in 'good old days' I played with fixed point Mandelbrot code with my Amiga (no float HW).. funny how that code kicked ass of some 5x clocked PC's.. 32bit vs. 16bit registers :)


John Blackledge(Posted 2006) [#4]
This is the one I like (you can zoom in using the mouse):


Or if you want a really simple one



Finjogi(Posted 2006) [#5]
While ago I messed with the upper one and found little optimazation :) Flip -> Flip False :) Huge boost in small zoom levels.


bytecode77(Posted 2006) [#6]
WritePixelFast are better solutions i guess :)
and if you put flip 0 on the END of the program, he doesnt flip 800x600 times the backbuffer ;)




cu