SebLague / Slime-Simulation

https://www.youtube.com/watch?v=X-iSQQgOd1A
GNU General Public License v3.0
1.39k stars 244 forks source link

fix possible concurrency bug #4

Open asvarga opened 3 years ago

asvarga commented 3 years ago

Instead of Update both reading and writing from TrailMap, it now reads from DiffusedTrailMap and writes to TrailMap. This seems to avoid concurrency issues because it fixes https://github.com/SebLague/Slime-Simulation/issues/2 (at least for me).

asvarga commented 3 years ago

Two things worth noting: