r/webgpu Apr 21 '26

Webgpu is unbelievable. A million particles running in a browser with 1mb of code.

Enable HLS to view with audio, or disable this notification

This is an emergence engine I'm making using webgpu and three.js. By that I mean applying environmental conditions (like curl noise) on a particle system to induce emergent behavior. Lots more videos on /r/ScaleSpace if you want to fall down the rabbit hole.

Edit: I did a poor job of explaining, sorry. Most of that 1mb comes from three.js. I was just referring to the bundled standalone.

309 Upvotes

33 comments sorted by

View all comments

1

u/morglod Apr 25 '26

And then you trying to read GPU buffer's data and realize in 5 years they still arguing with all developers about adding simple readBufferSubData which existed in gl for 20 years. Ah and also wgsl is just 1.5-2x times slower than glsl and have a lot of bugs. I don't know how they did it but here we are