Show HN: Real-time n-body tree code in CUDA
By lechebs · 2026-07-10 · 1 points · 0 comments
https://github.com/lechebs/nbody
Sharing an old project of mine, on my RTX 500 Ada laptop GPU, it can simulate up to 4 million particles at ~400 ms per step using the Barnes-Hut algorithm, saturating the 4GB of VRAM available. The octree construction is fast, as well as the traversal. The major bottlenecks are…
Open the full discussion on BetterNews