Hacker News new | past | comments | ask | show | jobs | submit login

You can increase the number of particles by changing this line:

    totalLines = 60000,
My PC starts getting slower after 150K, but it works, though slowly, even with 1 million.



Performance for this kind of particle effect will be even better once Webgl2 is widely available. Transform feedback (or other hacks) let you manipulate the particle positions on the videocard itself. There's a great article about them here: http://prideout.net/blog/?p=67


Interestingly I can take it to 1,000,000 with Firefox (Nightly) without too many problems. Chrome (Canary) becomes unusable around 200,000.


It really depends on the videocard I guess.

I just tried both Crome and FF with a million particles, and they feel roughly the same.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: