فهرست منبع

Merge pull request #13277 from DoctorAlpaca/master

Fix particle preprocessing
Juan Linietsky 8 سال پیش
والد
کامیت
1c3c9e017b
1فایلهای تغییر یافته به همراه2 افزوده شده و 6 حذف شده
  1. 2 6
      drivers/gles3/rasterizer_storage_gles3.cpp

+ 2 - 6
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;
 			}