diff options
author | William Leeson <william@blender.org> | 2021-11-25 11:41:03 +0300 |
---|---|---|
committer | William Leeson <william@blender.org> | 2021-11-25 11:41:03 +0300 |
commit | c49d2cbe92a1a18bb3f9ddc04ddc3351ffd27286 (patch) | |
tree | ab585ec4daf8442b054f9bfdc789b6463ae07cf4 /intern/cycles/integrator/work_tile_scheduler.cpp | |
parent | 827c5b399e0bb93182586723a811fcc5afd0d4db (diff) | |
parent | b41c72b710d4013fd6d67dc49a8ebb2a416b4462 (diff) |
Merge branch 'blender-v3.0-release' to bring in D13042:
Fix performance decrease with Scrambling Distance on
Diffstat (limited to 'intern/cycles/integrator/work_tile_scheduler.cpp')
-rw-r--r-- | intern/cycles/integrator/work_tile_scheduler.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/intern/cycles/integrator/work_tile_scheduler.cpp b/intern/cycles/integrator/work_tile_scheduler.cpp index d60f7149bf4..353c357475d 100644 --- a/intern/cycles/integrator/work_tile_scheduler.cpp +++ b/intern/cycles/integrator/work_tile_scheduler.cpp @@ -28,6 +28,11 @@ WorkTileScheduler::WorkTileScheduler() { } +void WorkTileScheduler::set_accelerated_rt(bool accelerated_rt) +{ + accelerated_rt_ = accelerated_rt; +} + void WorkTileScheduler::set_max_num_path_states(int max_num_path_states) { max_num_path_states_ = max_num_path_states; @@ -61,7 +66,7 @@ void WorkTileScheduler::reset(const BufferParams &buffer_params, void WorkTileScheduler::reset_scheduler_state() { tile_size_ = tile_calculate_best_size( - image_size_px_, samples_num_, max_num_path_states_, scrambling_distance_); + accelerated_rt_, image_size_px_, samples_num_, max_num_path_states_, scrambling_distance_); VLOG(3) << "Will schedule tiles of size " << tile_size_; |