hunar4321 / particle-life

A simple program to simulate artificial life using attraction/reuplsion forces between many particles
MIT License
2.98k stars 297 forks source link

Optimise the JavaScript version #11

Closed rpominov closed 1 year ago

rpominov commented 1 year ago

Hi there.

Amazing project, I love playing with this! Thanks you so much for your work!

I've optimised the JavaScript version a bit. It can run 2000 atoms on my computer now. Did this primarily just for myself as I'm not sure how to run the CPP version on a Mac 😄 . But thought I'd open a PR in case you're interested in a faster JavaScript version.