summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-09-03Shamelessly stole a write_to_png routine from abelian-sandpileHEADmasterAryadev Chavali
Found and fixed a bug I would've never noticed in abelian sandpile: the png is technically rotated by 90 using the standard WIDTH then HEIGHT for loop, so I had to switch them. As the abelian sandpile fractal is 4 way symmetric this wasn't noticeable.
2023-09-03Figured out how to use textures, changed colouring algorithmAryadev Chavali
Less intense on the main thread now, no memory leaks so far. To ensure we're not wasting cycles on updating an already completed texture, I use both threads_done and rendered which allows for checking if a new render batch has been started or not. This allows us to only update the texture if rendering has not completed.
2023-09-03Tons of changes: can now simulate the mandelbrot for n iterationsAryadev Chavali
Essentially using a naive threaded solution with a naive escape routine for choosing whether a given location is actually in the Mandelbrot set. I think the colouring solution is quite unique: I use a scaled quadratic function which ensures maximum colouring is given to those with medium number of iterations. I'll try a linear ratio next. Currently we start properly lagging at ~2^20 iterations, which is why I'm looking for a better way to draw and compute escapes.
2023-09-02INITIAL COMMITAryadev Chavali
Simple hello world in raylib