Is your feature request related to a problem? Please describe.
I am taking an online course using p5js but I use Python. P5py was working well until I started to use it to simulate Steering Behaviours.
My code is here. Particularly flowfield.py and separation.py
Is your feature request related to a problem? Please describe. I am taking an online course using p5js but I use Python. P5py was working well until I started to use it to simulate Steering Behaviours.
My code is here. Particularly flowfield.py and separation.py
The course is the Nature of Code.
Describe the solution you'd like If you check the javascript equivalent code, it performs really well. p5js Click Play
I know p5py is built on vispy so I downloaded a few examples and ran them. They seem okay and not as sluggish as p5py.
Here is a video for a quick examination: Click to see and the vispy example is on the left.
Describe alternatives you've considered I am considering testing it with PyQt or PySide2 as the backend for vispy but I think that p5py is using glfw.
I also use other tools (like arcade which is using pyglet) and it is also sluggish if I create too many moving objects.
But I still have some hope for vispy. I wonder if the javascript way of coding is problematic. I've sent the code to stackoverflow for comment.
Additional context My machine is 2018 Dell Alienware 17R4. (a powerful gaming laptop with Nvidia GeForce GTX 1080).
Environment:
Is there an easy way to improve p5py's performance?