jeffThompson / CollisionDetection

A book and examples on collision detection
418 stars 53 forks source link

Main screen is laggy #13

Open alexapostolu opened 4 years ago

alexapostolu commented 4 years ago

So the website actually looks great so far, however, I noticed that the main screen is a little laggy. When you have all the different shapes falling and colliding with the ellipse, sometimes the ellipse freezes for a fraction of a second. Perhaps less objects?

jeffThompson commented 4 years ago

Thanks for letting me know – it's possible it's Processing.js (the old version before P5JS happened). I can def tweak the number of objects and see if that helps.

Can you let me know what device you're on, OS version, and what browser you're using?

alexapostolu commented 4 years ago

I'm using a 64 bit Windows 10 laptop, and I used your website on Chrome.

jeffThompson commented 4 years ago

Huh, ok thanks – surprised it would be an issue on a non-mobile device. I may just reduce the overall number of shapes to be sure it works well for everyone.