Merge pull request #13277 from DoctorAlpaca/master

Fix particle preprocessing
This commit is contained in:
Juan Linietsky 2017-11-26 15:59:24 -03:00 committed by GitHub
commit 1c3c9e017b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5694,13 +5694,9 @@ void RasterizerStorageGLES3::update_particles() {
else else
frame_time = 1.0 / 30.0; frame_time = 1.0 / 30.0;
float delta = particles->pre_process_time; float todo = particles->pre_process_time;
if (delta > 0.1) { //avoid recursive stalls if fps goes below 10
delta = 0.1;
}
float todo = delta;
while (todo >= frame_time) { while (todo >= 0) {
_particles_process(particles, frame_time); _particles_process(particles, frame_time);
todo -= frame_time; todo -= frame_time;
} }