Home > Boid simulation with custom ECS

Boid Simulation with Custom ECS

Recently, I've been working on an Entity Component System (ECS) for my minor. A boid simulation was the perfect choice to test its functionality.

I also developed a custom spatial partition grid to optimize the boid interactions. With these optimizations, I achieved a performance of 1600 FPS while simulating 2000 boids.


Here is a preview:



The physics calculations currently run on a single thread. In the future I might look into making it multi-threaded. The functionality for this is already present as I resolve the boids in in pairs.