Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multithreading #47

Open
deontologician opened this issue Feb 16, 2018 · 0 comments
Open

Multithreading #47

deontologician opened this issue Feb 16, 2018 · 0 comments
Labels
infrastructure Related to how the simulation is executed, not the game itself. performance Performance related features

Comments

@deontologician
Copy link
Owner

deontologician commented Feb 16, 2018

Basic idea:

  • 1 master thread that knits together the results from the workers and hands out jobs
  • 1 worker thread per physical core, these do the simulation
  • 1 saver thread that handles writing to disk both stats (which are frequent) and checkpoints (which are rare)

In the future, I may add a thread for a webserver

@deontologician deontologician added the performance Performance related features label Feb 16, 2018
@deontologician deontologician changed the title Use rayon to get multithreading Multithreading Mar 12, 2018
@deontologician deontologician added the infrastructure Related to how the simulation is executed, not the game itself. label Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Related to how the simulation is executed, not the game itself. performance Performance related features
Projects
None yet
Development

No branches or pull requests

1 participant