Can someone help me in optimising this code?
My intention is to zoom into the fractal, and I need the code to be as fast as possible. But I have no idea of how to optimize it. https://code.sololearn.com/WW5k30TdVULU/?ref=app
I created this interactive Mandelbrot viewer that uses a WebGL shader to draw the Mandelbrot in realtime. It is redrawn very quickly for a smooth zoom animation. This might be useful if you still want ideas for optimizing yours: https://code.sololearn.com/Wyd87dQXWe96/
I recommend you to look up on Google ways to increase the execution of my code in js
I eventually created a Mandelbrot shader here: https://code.sololearn.com/Wyd87dQXWe96/ It renders fast enough to do a smooth zoom animation. That applies my recommendations from the previous answer. The shader code is in the HTML tab.