#Mandelbrotpp, a Mandelbrot set visualizer.

3 messages · Page 1 of 1 (latest)

zealous geyser
#

Hi everyone, i just finished refactoring my code of my primary project, and I thought it'd be a great idea to post it here to get suggestions. Mandelbrotpp is an SDL2-based fractal visualiser, but it is unfortunately extremely inefficient.
I have listed some milestones that I am sure would make the overall program more usable, but I'd like to hear your thoughts too.
The class-based version is way more inefficient than the other one, and I don't really know why.
Could you help me? I'd like to hear some suggestions on how to optimise my code, and how to structure it better.

Github Repo: https://github.com/hotbrightsunshine/mandelbrotpp

GitHub

🧮 An interactive Mandelbrot set visualizer written in C++. - GitHub - hotbrightsunshine/mandelbrotpp: 🧮 An interactive Mandelbrot set visualizer written in C++.

lilac heart
#

Nice! 🙂

summer hedge
#

I like this project a lot. The main problems I see (albeit from mostly skimming through the code) are excessive nesting of conditionals (ifs and switches), as well as a general lack of use of (modern) C++ features.

It might also be possible to use principles of data-oriented design to improve efficiency.

That being said, I think you set out a very good roadmap and should keep following it.