-
Notifications
You must be signed in to change notification settings - Fork 942
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
updated boid_flockers to include direction #2696
base: main
Are you sure you want to change the base?
Conversation
Performance benchmarks:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, this is really useful. Code itself looks good!
Why don't the non-blocking boids have an direction?
Have you any idea on the performance impact?
No worries, it’s all voluntarily. Thanks for communicating your availability clearly, I can pick this one up. |
@sanika-n a simple initial test is running the old model for 1000 steps and (manually) timing how long it takes, and then doing the same for the updated model. Make sure to use the same seed in both cases. |
Just added the direction element to all the boids, and these are the timings that I got after updating the non-flocking boids Random seed 42 Altered version Original version |
I updated boid_flockers so that the direction of movement of agents is shown in the simulation.

I did this by changing the marker to caret-down (a triangle with a larger base so that the direction of motion is not ambiguous) and then rotating the marker according to the direction of motion of the agent. Here are some images of boid_flockers after this update: