how fast is javascript simulating 20 000 000 particles
Technical and non technical thoughts.
Hasnain says:
Great read on graphics, simulation, and optimization. It took me a little while to find the live demo but it was pretty cool.
“What is the take away here?
CPUs and GPUs can crunch numbers fast. Like really really fast. Moving data around is slow and even slower when accessing data randomly. If you want to go fast, it is good to know how hardware works.
I enjoyed the hell out of this little journey into web workers and SharedArrayBuffers. SharedArrays are kinda like magic to me with their “eventual visibility”. Once webgpu is a little more well adopted I will take a stab into compute shaders.
Until next time, have a wonderful day.”
Posted on 2024-07-08T06:53:37+0000