Skip to content

Files

Latest commit

Apr 13, 2022
2ac6d3a · Apr 13, 2022

History

History
25 lines (22 loc) · 689 Bytes

README.md

File metadata and controls

25 lines (22 loc) · 689 Bytes

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