Skip to content
/ boids Public

Naive Implementation of Craig Renolds Boids - Exercise in profiling and optimisation

Notifications You must be signed in to change notification settings

JoshCu/boids

Repository files navigation

Installation

https://p5.readthedocs.io/en/latest/install.html

https://p5.readthedocs.io/en/latest/install.html#windows
The most important prerequisit is this glfw binary, once it's added you can just

 pip install p5

If you're having issues with the pillow dependancy on p5 then try updating

pip install --upgrade pip

Profiling

To generate the profiles, run the following commands

python -m cProfile -o fast_boid.prof .\fast_boid\fast_profile_main.py  
python -m cProfile -o slow_boid.prof profile_main.py

Snakeviz

To start the snakeviz server and open the profile just run

snakeviz .\slow_boid.prof

About

Naive Implementation of Craig Renolds Boids - Exercise in profiling and optimisation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages