Prototype of new Mandelbrot app

I’ve been working on a rewrite of the Mandelbrot app in my off-time for a while now, and it’s at the point where I’m looking for feedback. It’s a complete rewrite from the ground up of the old one. At the moment, it supports various different fractal sets and palettes, and looks much nicer than the old one, as well as supporting rendering in HD, but it only runs on one thread, and it could use some optimizations.



Screenshots:




The source code currently lives at https://github.com/waddlesplash/haiku/tree/mandelbrot_new/src/apps/mandelbrot, or you can try a prebuilt binary for x86_gcc2(hybrid).

‘Could not open "Mandelbrot’ with application “Tracker”’ (:-/) The execute bit isn’t set in the zip!

Once that’s corrected it looks quite nice (on brief play) “Burning Ship” is interesting. I do miss the original version’s method of zooming by dragging a rectangle, though. Your ‘click-to-zoom’ has an element of (at least initial) surprise – and doesn’t give the same feeling of control.

Nicely presented forum post, though. (:-)) But how the heck did you add an attachment? I guess I’m missing something, but I don’t see any facility for doing that on the edit page. That’s a very useful thing to be able to do.

Only admins & contributors can upload things, I believe. And I do plan to add back drag-rectangle-to-zoom, but I haven’t had time yet.

Hi waddlesplash,

while I suspect there are far more important things than Mandelbrot, it would be nice to have the demo code at least show how to do multi-threading. Using all cores would be nice. As you said, optimizations are still missing. Currently, I’m more impressed with the old Mandelbrot rendering almost instantaneously with barely a blip on the ActivityMonitor, while the new version is hogging one core for seconds… :slight_smile:

Also, on today’s hardware, a continuous animation to where the mouse pointer is clicked would be cool. Slowly zooming in and out…

Anyway, as I said, bigger fish to fry, I bet. :slight_smile:
Regards,
Humdinger.

[quote=humdinger]Hi waddlesplash,

while I suspect there are far more important things than Mandelbrot, it would be nice to have the demo code at least show how to do multi-threading.[/quote]

On top of that the original Mandelbrot was used to demo SMP capabilities of BeOS in famous 1998 video. So I agree with Humdinger - implementing ability for the app to support multiple cores would be really nice.

Privilege, privilege… (:-))
Not sure what you mean by “contributors”, though. Aren’t we all?

As an admin you might want to look at the topic I’ve just started re a software forum. See if it sounds reasonable.

Just a quick update, in case anyone finds this in the future: The new Mandelbrot app was merged into master in hrev50360.