summaryrefslogtreecommitdiff
path: root/lib.h
AgeCommit message (Collapse)Author
2023-08-26+further multithreadingAryadev Chavali
I split the grid into 4 quadrants which are managed by their own thread. Improves speed and uses more resources correctly.
2023-08-25~modified step,~state data is now unsigned 64 bit integerAryadev Chavali
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(main~>lib.h)+header for data structures,~migrate lib.hAryadev Chavali
+some file handlers for writing and reading (may help with very large renders by doing them piecemeal when I can)