Skip navigation
130,000 balls in godot
0:00 / 0:53

130,000 balls in godot

Late as usual 🏳️‍⚧️

@lateasusual_63K followers

Visit on X
495 likesDownloadOriginal post

35,960 views

130,000 balls in godot

12 Comments

Comments from the original post on X (Twitter)

  • Late as usual 🏳️‍⚧️'s profile picture

    @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

  • Late as usual 🏳️‍⚧️'s profile picture

    @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

  • Late as usual 🏳️‍⚧️'s profile picture

    @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

  • Late as usual 🏳️‍⚧️'s profile picture

    @lateasusual_

    i legit forgot to add colour lol

    10 likes

  • Foggy's profile picture

    @FoggyDudey

    Big things happening in the ballpit game industry...

    3 likes

  • Ziva.sh's profile picture

    @Ziva_Sh

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

    1 like

  • Ben Pielstick's profile picture

    @BenPielstick

    Replace balls with goblins.

  • illumisanic's profile picture

    @illumisanicgltf

    officer balls

  • prison purse's profile picture

    @COMMIESHITEATER

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

  • Thicckerson's profile picture

    @Thicckerson

    I only got 2

  • X 🇷🇴's profile picture

    @GreyAreaDsgn

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

  • DimentionalStudio's profile picture

    @Dimentional06

    pretty cool, is that using the Jolt physics Engine ?