Skip to content
Permalink
Browse files
faster Particlesystem
removed a useless validation call which was pretty expensive for many 
particle systems alive
It checked for existance of particle system in the vector we were curretnly 
cycling through.
  • Loading branch information
titiger committed Jan 17, 2015
1 parent 9e92948 commit 0616483452042db701b7a930f044fc72d112f8b6
Showing with 1 addition and 1 deletion.
  1. +1 −1 source/shared_lib/sources/graphics/particle.cpp
@@ -2435,7 +2435,7 @@ void ParticleManager::update(int renderFps){
vector<ParticleSystem *> cleanupParticleSystemsList;
for(unsigned int i= 0; i < particleSystems.size(); i++){
ParticleSystem *ps= particleSystems[i];
if(ps != NULL && validateParticleSystemStillExists(ps) == true) {
if(ps != NULL) {
currentParticleCount+= ps->getAliveParticleCount();

bool showParticle= true;

0 comments on commit 0616483

Please sign in to comment.