top of page

Boids

2022

Specifications

​​

Library: SFML, OpenGL

Language: C++

Time: 4 Weeks​

​

 

​​​​

Description

This software is a highly customizable and optimized boid simulation.

​

It features the ability to customize many features, and also the ability to do such live during runtime. Elements that can be customized include, e.g., number of boids, boid rule weights, fluid simulation, audio responsiveness, and a lot more.

​

The boids have also been thoroughly optimized where it uses multithreading and a coherent grid for boids to look only at the closest neighbors. This allows for thousands of boids being present, as can be viewed in the video above.

​

Boids was developed to be used as a wallpaper, which can be found here.

Development

The software was developed on personal time over the course of 4 weeks. The project went through several iterations to implement several common performance practices, e.g., cache-locality, constexpr, cache values when possible, focus on bottlenecks, SOA vs. AOS, do not prematurely optimize, and more.

bottom of page