Original Post
[color=#333333]Hello! I'm making a simple particle system for my asteroid-belt. It consists of only GL_POINTS with a randomized location, color, and alpha value.
I have a class called Particle which consists of the mentioned variables. Then I have a class called ParticleSystem which includes a vector of Particle.
If I have very small values for the number of particles it works fine. But I want to have a lot more for a better look. When I have about 7000 particles it begins to lag. But for it to look good I want to have at least 30000.
So, my question is, how can this be optimized? I bet a complicated particle system consists of more than 7000 particles, or?
I have a class called Particle which consists of the mentioned variables. Then I have a class called ParticleSystem which includes a vector of Particle.
If I have very small values for the number of particles it works fine. But I want to have a lot more for a better look. When I have about 7000 particles it begins to lag. But for it to look good I want to have at least 30000.
So, my question is, how can this be optimized? I bet a complicated particle system consists of more than 7000 particles, or?