capta1nseal / falling-sand

a hobby project in making an interactive falling sand simulation
GNU General Public License v3.0
1 stars 0 forks source link

Merge successful threading changes to main #1

Closed capta1nseal closed 9 months ago

capta1nseal commented 9 months ago

Previously the whole program was single-threaded, leading to any point of weakness affecting everything else / performance issues slowing rendering / slow rendering slowing simulation, etc.

In this pull request, the simulation loop has been split off into its own thread. The simulation has also been made interactive.

It's probably a very bad example of a pull request because it makes changes to essentially every aspect of the (admittedly small) program which would cause a lot of issues if anyone else were working on the code.