← All work
2026C++OpenGLMultithreadingSpatial PartitioningProfilingenkiTS

Multithreaded Sphere Physics

A physics simulation built only for spheres, optimised to run 200,000 of them at 60 fps. The optimisations include a uniform grid broadphase, a multithreaded impulse solver with warm starting, instanced rendering and more.

GitHub ↗
Platform
PC
Language
C++20
Rendering
OpenGL 4.6
Multithreaded Sphere Physics

This is a 3D physics simulation in C++ that only simulates spheres with the same radius. I have already built a general-purpose physics sim before, my ECS Physics Engine, so this time I wanted to what optimisation could be done with this limitation in place. This project was initially for a university module in my final year but it was recently reworked.

ECS Physics Engine →Next project