Fast & simple Mandelbrot
Blitz3D Forums/Blitz3D Programming/Fast & simple Mandelbrot
| ||
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..) |
| ||
you could probably squeeze some speed out of it by turning some floating point variable to integer. But the code looks pretty optimized |
| ||
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 :) |
| ||
This is the one I like (you can zoom in using the mouse): Or if you want a really simple one |
| ||
While ago I messed with the upper one and found little optimazation :) Flip -> Flip False :) Huge boost in small zoom levels. |
| ||
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 |