A particle system, written in C++ in an OpenGL framework provided by a lecturer.
This particle system was created for a University assignment, where the main aim is to learn how to create performant code and optimise said code.
Whilst I didn’t get this Particle system utilising the GPU, I did get to the stages of using a memory pool/’pooling’ - which massively increased the performance, likely due to less allocations to memory throughout (instead just doing this in one big chunk).
Below is some snippets from the repository, mostly looking at the Particle class and the Emitter class.
Resources
KieranBond/Particle-System