4 Commits

Author SHA1 Message Date
Aryadev Chavali
2d11304ab4 ~file-handler->files,(main~>files)~migrated png save code to files.c 2023-08-27 21:53:28 +01:00
Aryadev Chavali
026aa887f9 +further multithreading
I split the grid into 4 quadrants which are managed by their own
thread.  Improves speed and uses more resources correctly.
2023-08-26 00:51:17 +01:00
Aryadev Chavali
0a5d5fc87c ~modified step,~state data is now unsigned 64 bit integer
Stopped adding a grain of sand per step.

Collapsing should work properly for any amount of sand grains,
regardless of whether it's 4 or 4000.  Previous code fixed it at 4
always, and how it distributed was so as well.  Now we distribute as
much sand as we can.

This comes from the idea that, instead of incrementing while
rendering, let's just set some n pixels in the centre and see how the
model distributes them.
2023-08-25 22:57:33 +01:00
Aryadev Chavali
64f8df2592 (main~>lib.h)+header for data structures,~migrate lib.h
+some file handlers for writing and reading (may help with very large
renders by doing them piecemeal when I can)
2023-08-25 19:07:24 +01:00