From 36b1dc145293492f8b3d92061484003f1e7bc14f Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Tue, 3 Oct 2023 17:37:15 +0300 Subject: [PATCH] Fix particle effects not working properly at high framerate --- Source/Engine/Particles/Particles.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Engine/Particles/Particles.cpp b/Source/Engine/Particles/Particles.cpp index 52234fd7a..5850b6736 100644 --- a/Source/Engine/Particles/Particles.cpp +++ b/Source/Engine/Particles/Particles.cpp @@ -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;