5 Commits

Author SHA1 Message Date
Aryadev Chavali
5b2424af0e Fix some latent bugs left over 2025-03-29 21:26:24 +00:00
Aryadev Chavali
c8ecce9537 Shamelessly stole a write_to_png routine from abelian-sandpile
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-03 20:00:10 +01:00
Aryadev Chavali
ab7db03aaa Figured out how to use textures, changed colouring algorithm
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-03 20:00:02 +01:00
Aryadev Chavali
913e540b92 Tons of changes: can now simulate the mandelbrot for n iterations
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-03 18:45:39 +01:00
Aryadev Chavali
aab3db7f32 INITIAL COMMIT
Simple hello world in raylib
2023-09-02 18:59:18 +01:00