Skip to content

Comment on WebGL: 80,000 particles

Comments

It's actually 30,000 particles, not 80,000. See the source: "numLines = 30000".

If you set a breakpoint at that line (28), then you can edit the variable in the console to whatever you want. You can make it smaller without setting the breakpoint, but any higher results in a "attempt to access out of range vertices" error.

I can get it to ~40,000 on my iMac's 6970m 2GB without noticeable slowdown (this is w/ Chrome 20 dev.)

UPDATE: It turns out the slowdown at 40,000 was due to the Web Inspector being open (I have no idea why!) It's actually still pretty damn smooth at a MILLION particles! Crazy!

Vertex indexes are 16 bit. It's probably set to 30000 for a very good reasons.

Please, check my post below for the truth about the numbers http://news.ycombinator.com/item?id=4009469

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.