Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/session.cpp
| Show First 20 Lines • Show All 306 Lines • ▼ Show 20 Lines | RenderWork Session::run_update_for_next_iteration() | ||||
| if (render_work) { | if (render_work) { | ||||
| scoped_timer update_timer; | scoped_timer update_timer; | ||||
| if (switched_to_new_tile) { | if (switched_to_new_tile) { | ||||
| BufferParams tile_params = buffer_params_; | BufferParams tile_params = buffer_params_; | ||||
| const Tile &tile = tile_manager_.get_current_tile(); | const Tile &tile = tile_manager_.get_current_tile(); | ||||
| tile_params.width = tile.width; | tile_params.width = tile.width; | ||||
| tile_params.height = tile.height; | tile_params.height = tile.height; | ||||
| tile_params.window_x = tile.window_x; | |||||
| tile_params.window_y = tile.window_y; | |||||
| tile_params.window_width = tile.window_width; | |||||
| tile_params.window_height = tile.window_height; | |||||
| tile_params.full_x = tile.x + buffer_params_.full_x; | tile_params.full_x = tile.x + buffer_params_.full_x; | ||||
| tile_params.full_y = tile.y + buffer_params_.full_y; | tile_params.full_y = tile.y + buffer_params_.full_y; | ||||
| tile_params.full_width = buffer_params_.full_width; | tile_params.full_width = buffer_params_.full_width; | ||||
| tile_params.full_height = buffer_params_.full_height; | tile_params.full_height = buffer_params_.full_height; | ||||
| tile_params.update_offset_stride(); | tile_params.update_offset_stride(); | ||||
| path_trace_->reset(buffer_params_, tile_params); | path_trace_->reset(buffer_params_, tile_params); | ||||
| } | } | ||||
| const int resolution = render_work.resolution_divider; | const int resolution = render_work.resolution_divider; | ||||
| const int width = max(1, buffer_params_.full_width / resolution); | const int width = max(1, buffer_params_.full_width / resolution); | ||||
| const int height = max(1, buffer_params_.full_height / resolution); | const int height = max(1, buffer_params_.full_height / resolution); | ||||
| ▲ Show 20 Lines • Show All 390 Lines • Show Last 20 Lines | |||||