Don't draw explosion particles if only important effects are selected in options.
It causes slowdown on some devices, i.e. from 30fps to 5fps when explosion occurs very near of the camera. So disable it for lowest graphical level.
This commit is contained in:
parent
f96863c421
commit
4610572649
@ -47,7 +47,7 @@ Explosion::Explosion(const Vec3& coord, const char* explosion_sound, const char
|
||||
ParticleKind* particles = pkm->getParticles(particle_file);
|
||||
m_emitter = NULL;
|
||||
|
||||
if (UserConfigParams::m_graphical_effects > 0)
|
||||
if (UserConfigParams::m_graphical_effects > 1)
|
||||
{
|
||||
m_emitter = new ParticleEmitter(particles, coord, NULL);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user