130,000 balls in godot
@lateasusual_63K followers
35,960 views
12 Comments
Comments from the original post on X (Twitter)

@lateasusual_
it's all on the GPU (Rust gdext + Slang), copying over the particles from a custom sim into a multimesh buffer for rendering. Kind of my first time doing these on gpu so i tried a few different spatial hashing solutions and landed on just randomly assigning to a world space grid
19 likes

@lateasusual_
rather than bothering with a fixed grid shape that scales to the bounds of the simulation, it just repeats the grid in world space and the index into the flat buffer is hashed, so it's probably bad for cache performance but means way lower contention
6 likes

@lateasusual_
Here's the shader code in case that's of any interest. I'm not going to bother sharing the CPU side, it should be pretty self explanatory.
15 likes

@lateasusual_
i legit forgot to add colour lol
10 likes

@FoggyDudey
Big things happening in the ballpit game industry...
3 likes

@Ziva_Sh
Really impressed you got this to run without lag. The future of Godot development is bright!
1 like

@BenPielstick
Replace balls with goblins.

@illumisanicgltf
officer balls

@COMMIESHITEATER
Godot noob here, how do you manipulate the scene like that

@Thicckerson
I only got 2

@GreyAreaDsgn
not sure how to take this post... is it about 3d stuff or leftist activism given that transvestite flag of yours...

@Dimentional06
pretty cool, is that using the Jolt physics Engine ?