CUDA Boid Simulation

I implemented a boid simulation in CUDA, leveraging GPU parallelism.

Results Showcase

Below are GIFs showcasing different implementations with 5000 boids. The naive implementation is the least efficient, resulting in the lowest FPS. In comparison, the scattered grid implementation demonstrates a notable improvement, increasing the FPS by 100. Finally, the coherent grid implementation proves to be the most efficient, achieving an impressive FPS of over 925.


View the Source Code

Below is the portal to my GitHub repository. I have included a performance analysis and additional details in my README.md.

References

  1. https://developer.nvidia.com/cuda-toolkit

Previous
Previous

WebGPU Forward+ and Clustered Deferred Shading

Next
Next

C++ and GLSL Signed Distance Function for Character Rendering