Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/device_task.cpp
| Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| if (type == FILM_CONVERT) | if (type == FILM_CONVERT) | ||||
| return; | return; | ||||
| if (update_progress_sample) { | if (update_progress_sample) { | ||||
| if (pixel_samples == -1) { | if (pixel_samples == -1) { | ||||
| pixel_samples = shader_w; | pixel_samples = shader_w; | ||||
| } | } | ||||
| update_progress_sample(pixel_samples, rtile ? rtile->sample : 0); | update_progress_sample(pixel_samples, rtile ? rtile->get_sample() : 0); | ||||
| } | } | ||||
| if (update_tile_sample) { | if (update_tile_sample) { | ||||
| double current_time = time_dt(); | double current_time = time_dt(); | ||||
| if (current_time - last_update_time >= 1.0) { | if (current_time - last_update_time >= 1.0) { | ||||
| update_tile_sample(*rtile); | update_tile_sample(*rtile); | ||||
| ▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines | |||||