We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi,
I am planning to us P5JS to integrate graphic designs and animations in my web site. But I do keep it functional, avoid slowing people's browser... I have been looking at a few nice animation examples that were originally built in Processing and provided on p5JS. Some of them (boids for instance) seem to slow my computer. It's not brand new, but I'm a little concerned about this potential issue. Is it something that some of you have been able to test? Thanks
Answers
In-browser sketches are simply slow compared to Processing which runs them as a standalone application. Add to that p5js's relative infancy and lack of optimisation and you will indeed find converted sketches far slower than the original. WebGL mode helps a lot, but not everyone can run that...
The old Pjs library is more mature than p5.js and thus it got some more speed, but not much.
But if you got your examples in Java syntax, Pjs is the best option to run them in the web:
Thanks, I'll just have to try them I guess.