summaryrefslogtreecommitdiff
path: root/drivers/gles3
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-11-26 15:59:24 -0300
committerGitHub <noreply@github.com>2017-11-26 15:59:24 -0300
commit1c3c9e017bb2275fc49f9a94346f3c46dc76eadd (patch)
tree76966e04fb4378facf7e801000a8d38d027cf43b /drivers/gles3
parentade39f57713785b14cc04240a7932575c3b9d72e (diff)
parent57845b53f3e71ad8f7c72f3583042f5972beac4a (diff)
Merge pull request #13277 from DoctorAlpaca/master
Fix particle preprocessing
Diffstat (limited to 'drivers/gles3')
-rw-r--r--drivers/gles3/rasterizer_storage_gles3.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp
index 89d3d7ff75..fc9150ecdc 100644
--- a/drivers/gles3/rasterizer_storage_gles3.cpp
+++ b/drivers/gles3/rasterizer_storage_gles3.cpp
@@ -5694,13 +5694,9 @@ void RasterizerStorageGLES3::update_particles() {
else
frame_time = 1.0 / 30.0;
- float delta = particles->pre_process_time;
- if (delta > 0.1) { //avoid recursive stalls if fps goes below 10
- delta = 0.1;
- }
- float todo = delta;
+ float todo = particles->pre_process_time;
- while (todo >= frame_time) {
+ while (todo >= 0) {
_particles_process(particles, frame_time);
todo -= frame_time;
}