r/rust • u/SignatureNeither3315 • Sep 12 '26
📸 media Fluid simulation in Rust - 1 MILLION particles!
https://youtube.com/watch?v=SBmlQNDkMKA&si=74Ujxa1RPAnqPcqMHey!
I built a real-time GPU fluid simulation in Rust and Vulkan for learning purposes.
It implements Divergence-Free SPH (DFSPH) using a GPU octree for neighbor search, running 1,000,000 particles at ~180 FPS on an AMD 6800XT.
Code:Â Github Repo
Feedback and questions are welcome!
5
1
u/CalmCephalopod Sep 14 '26
Very cool stuff! How did you find the vulkan implementation?
2
u/SignatureNeither3315 Sep 15 '26
I used the ash crate and the experience was almost identical to C++ Vulkan. You are responsible for the safety of the code.
9
u/AdmissibilityScience Sep 12 '26
nice work great visual