Live data from Hacker News

Particle effects in JavaScript

liveweave.com

21–30 of 73 posts

Re: Particle effects in JavaScript

#22
post #5

Warning: This demo locked up my OS and I had to force-restart. Chrome 25/OSX 10.8/Mac Pro Desktop, Early 2008.

The beautiful wonder that is Javascript. All the majesty of a killer whale piloting a single-engine supercruiser via a blue-tooth repeater connected 500m gallon tank in the Sahara. Think about how flexible such a system can be!

Considering that it's WebGL, pretty sure it's that age-old spectre: graphics drivers.

Re: Particle effects in JavaScript

#24
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.

Re: Particle effects in JavaScript

#26

Earlier quoted context omitted.

The beautiful wonder that is Javascript. All the majesty of a killer whale piloting a single-engine supercruiser via a blue-tooth repeater connected 500m gallon tank in the Sahara. Think about how flexible such a system can be!

Considering that it's WebGL, pretty sure it's that age-old spectre: graphics drivers.

Oh, Definitely! It couldn't be the layers of parsers, spaghetti Javascript libraries, web protocols, the DOM, WebGL itself which is a part of Javascript, or a million other crufty web things, it has to be the microsecond latency introduced by hardware-level API abstraction...

Re: Particle effects in JavaScript

#27
I didn't look closely at the actual equations of motion, but clicking around in a sort of periodic fashion makes patterns that remind me of chaotic advection (http://en.wikipedia.org/wiki/Chaotic_mixing). Always very cool to see interesting patterns from relatively simple dynamics.

Re: Particle effects in JavaScript

#28
post #3

This does not work for me in FF 22.0 (work specified version). Looks nice in chrome, only time it drops is when you bundle them into a large group and then cross you mouse over it and they explode everywhere.

It's working for me in FF 24.0.

Yeah works for me at home on 24 too. Just noting it in case.

Re: Particle effects in JavaScript

#29

Earlier quoted context omitted.

Considering that it's WebGL, pretty sure it's that age-old spectre: graphics drivers.

Oh, Definitely! It couldn't be the layers of parsers, spaghetti Javascript libraries, web protocols, the DOM, WebGL itself which is a part of Javascript, or a million other crufty web things, it has to be the microsecond latency introduced by hardware-level API abstraction...

User-level libraries can't lock up your OS unless they can trigger kernel / driver bugs or make your hardware malfunction. In this case, graphics drivers are the most likely cause.
Post reply on HN