2D Flocking Simulator - GPU Programming Prototype

GPU-programming - not just Compute Shaders

This is a simple OpenGL application to simulate a flocking species using GPU programming with Nvidia's CUDA using the interopability between CUDA and OpenGL.
So far, the flocking behaviour is very classic and features:

  • Wander Behaviour
  • Alignment
  • Cohesion
  • Seperation
For more information on the current state and how this implemented, check out the github repository.


  • Vivien Baguio


  • C++
  • Nvidias CUDA
  • OpenGL with Freeglut
  • Dear ImGUI

Current state of the animation

So far I simulate on one block with 1024 threads, one thread per boid.