[Bf-blender-cvs] [dcdcc234884] master: Fix T74504: Cycles wrong progress bar with CPU adaptive sampling
Brecht Van Lommel
noreply at git.blender.org
Fri Mar 6 23:47:41 CET 2020
Commit: dcdcc234884205a8f51eb3a56d0482078105e431
Author: Brecht Van Lommel
Date: Fri Mar 6 23:13:03 2020 +0100
Branches: master
https://developer.blender.org/rBdcdcc234884205a8f51eb3a56d0482078105e431
Fix T74504: Cycles wrong progress bar with CPU adaptive sampling
===================================================================
M intern/cycles/device/device_cpu.cpp
===================================================================
diff --git a/intern/cycles/device/device_cpu.cpp b/intern/cycles/device/device_cpu.cpp
index 16e9f2d4340..d11918ccbbf 100644
--- a/intern/cycles/device/device_cpu.cpp
+++ b/intern/cycles/device/device_cpu.cpp
@@ -907,15 +907,17 @@ class CPUDevice : public Device {
}
tile.sample = sample + 1;
- task.update_progress(&tile, tile.w * tile.h);
-
if (task.adaptive_sampling.use && task.adaptive_sampling.need_filter(sample)) {
const bool stop = adaptive_sampling_filter(kg, tile);
if (stop) {
+ const int num_progress_samples = end_sample - sample;
tile.sample = end_sample;
+ task.update_progress(&tile, tile.w * tile.h * num_progress_samples);
break;
}
}
+
+ task.update_progress(&tile, tile.w * tile.h);
}
if (use_coverage) {
coverage.finalize();
More information about the Bf-blender-cvs
mailing list