From 0616483452042db701b7a930f044fc72d112f8b6 Mon Sep 17 00:00:00 2001 From: titiger Date: Sat, 17 Jan 2015 15:14:38 +0100 Subject: [PATCH] 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. --- source/shared_lib/sources/graphics/particle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/shared_lib/sources/graphics/particle.cpp b/source/shared_lib/sources/graphics/particle.cpp index 0fccd6227..5c67d53aa 100644 --- a/source/shared_lib/sources/graphics/particle.cpp +++ b/source/shared_lib/sources/graphics/particle.cpp @@ -2435,7 +2435,7 @@ void ParticleManager::update(int renderFps){ vector 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;