billyb2 / game

GNU Affero General Public License v3.0
2 stars 0 forks source link

Multithreading #14

Closed billyb2 closed 3 years ago

billyb2 commented 3 years ago

Eventually, at some point in time, we should commit to making our code multi-threaded. Since some platforms may not support it, however, we could do something where we have a global thread-pool that's an option, and if that option is Some, then take advantage of this. We could use this, for example, with bots, where each bot runs on a separate thread, then they the result is joined together at the end.

We could also do it for loading a map, where map objects are broken up into 4 or more sections that multiple threads can add at the same time.

billyb2 commented 3 years ago

Gonna close this, since the Bevy branch does parallelism automagically.