evolvio4all / evolvio4JavaScript

MIT License
10 stars 2 forks source link

Multithreading #40

Open Air1N opened 4 years ago

Air1N commented 4 years ago

Obviously this would benefit from multithreading. I tried yesterday and I got it mostly working, but it was a lot slower since each webworker had to reinitialize every tick.

It's important to make sure we wait until every creature is updated, before moving onto the next tick, but this could speed things up dramatically.

Air1N commented 4 years ago

Update: Tried creating a separate thread for each worker, didn't seem to work for some reason. Confused :/