Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/session.cpp
| Show First 20 Lines • Show All 306 Lines • ▼ Show 20 Lines | if (switched_to_new_tile) { | ||||
| tile_params.width = tile.width; | tile_params.width = tile.width; | ||||
| tile_params.height = tile.height; | tile_params.height = tile.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(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); | ||||
| if (update_scene(width, height)) { | if (update_scene(width, height)) { | ||||
| profiler.reset(scene->shaders.size(), scene->objects.size()); | profiler.reset(scene->shaders.size(), scene->objects.size()); | ||||
| ▲ Show 20 Lines • Show All 363 Lines • Show Last 20 Lines | |||||