Hey thanks for reading. I recently played around making a particle engine in which I had Particles inside a controler declared as a std::vector.
ex
Code:
class Controler
{
private:
std::vector <BaseTri> Particle;
.....
.....
public:
Controler();
~Controler();
void Move();
void PushBack();
};
The PushBack() function basicly caused a new particle to pop into existence every frame I figured this would keep filling in one direction with new particles until my computer exploded, but turns out it seemed to stop filling after about a minute or two, and the only way to double the number of particles was to add another std::vector and let it push back as well. So there seems to be a maximum value to a std::vector 's size, but I can't seem to find documentation on it.
Any ideas?