Merge branch 'particle_update_fix' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-particle_update_fix

This commit is contained in:
Wojtek Figat
2023-10-04 18:56:49 +02:00

View File

@@ -1283,8 +1283,8 @@ void ParticlesSystem::Job(int32 index)
updateBounds = true;
}
// TODO: if using fixed timestep quantize the dt and accumulate remaining part for the next update?
if (dt <= 1.0f / 240.0f)
return;
//if (dt <= 1.0f / 240.0f)
// return;
dt *= effect->SimulationSpeed;
instance.Time += dt;
const float fps = particleSystem->FramesPerSecond;