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

Change method for spawning agent random grid positions #10

Open
zeyus opened this issue Aug 11, 2022 · 0 comments
Open

Change method for spawning agent random grid positions #10

zeyus opened this issue Aug 11, 2022 · 0 comments

Comments

@zeyus
Copy link
Owner

zeyus commented Aug 11, 2022

Currently uses an NP array with a shuffled sequence of all the IDs and then reshapes it to the grid size...
It works fine but this part seems to have quite an overhead on the initial loading

  1. evaluate performance overhead (it's only once per simulation, so there might be better places to optimize e.g. stuff inside the sim)
  2. if a problem, refactor, this will benefit initial sim loading and especially multi-run speed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant