Very simple Mandelbrot fractal demo
-
Fire away! I’m always interested in neat little demos like this..
-
@toxibunny I submitted another one. I'll tag you in the post when it's approved :)
-
Very nice. Maybe add some code so that it is possible to zoom in on a particular area?
-
@vinicity Thank you! The idea behind this was preservation. I might write my own fractal demo in the future and a zoom function would definitely be in the list of features :)
-
Very cool! ..but "simple" it's certainly not. ;)
-
I remember seeing a real-time Mandelbrot zoom running on a top-of-the-line Archimedes sometime back in 1992, and it absolutely blew my mind!
The processing power of a Switch must surely be a huge factor bigger, so I’m thinking it should be doable in Fuze?
-
@vinicity I'm sad to say that this is not the case. Well if you were to use the Nintendo Switch development kit and wrote a native program, possibly even using some assembly, then I'd 100% agree with you, but not with Fuze.
I suspect Fuze is very slow when branching occurs. There is a javascript version of the Mandelbrot Set that will render the same set extremely fast (0.2 seconds for a full-resolution version of this same view). Probably even on the Switch if it had a web browser, but not with Fuze.
Maybe we will see some improvements in the future. I'm sure a lot of performance can still be squeezed out of Fuze with updates, getting close to your run of the mill Javascript VM performance might even be possible, but not yet, sadly.
-
We're looking to greatly improve the speed in the future with the addition of bytecode, but it'll be a while. I like that you're pushing F4NS to the limit!
-
@Willpowered Thank you! As a side note, your documentation, as far as I know, doesn't mention being able to use % as a modulo operator. Using % instead of a handwritten mod() function gives a MASSIVE speed boost!
-
It is there honestly! https://fuzearena.com/help/view/modulus
-
@pianofire Oh, looks like it is! I checked in the wrong section! Sorry about that :)