Commit Graph

3 Commits

Author SHA1 Message Date
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