We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello !
I just discover P5.js and I think it's a great project ! But I'm a bit disapointed because when I try the examples (for example this one : http://p5js.org/learn/examples/Simulate_Particle_System.php )
It runs very slowly on my computer considering what I see on the screen. (maybe 20 FPS)
I'm looking at the source but there is too much files and I don't see where is the file that describe how the elements are rendered.
Can someone tell me which one it is ?
And by the way, do you know if webGL will be support in a near future ?
Thank you !
Answers
the source is all there on that page.
ParticleSystem is a list of Particles. draw() calls ParticleSystem's run() method and that draws all the Particles.
Pffff
Sorry I didn't see it, I was searching on github...
Actually , I can't find the file corresponding to "ParticleSystem" , do you know where is it ?
the code is all there in the link you posted.
if that is somehow too complicated then https://github.com/shiffman/The-Nature-of-Code-Examples/tree/master/chp4_systems/NOC_4_03_ParticleSystemClass
Thank you !
And do you know where is the "core-renderer" class ? Because it shouldn't be so slow... Processing.js works much more faster then it must a problem somewhere...
EDIT :Actually, it maybe come from how my laptop runs the canvas2D because my processingJS demo are not very fast too...
yes, webgl support is coming at some point in the future