forked from bartvdbraak/blender
Cycles: multi-gpu rendering doesn't know for sure which sample is being sampled,
so only report tile number is being processed
This commit is contained in:
parent
0ef0eddeb2
commit
d71004ea69
@ -711,10 +711,13 @@ void Session::update_status_time(bool show_pause, bool show_done)
|
|||||||
string status, substatus;
|
string status, substatus;
|
||||||
|
|
||||||
if(!params.progressive) {
|
if(!params.progressive) {
|
||||||
|
bool is_gpu = params.device.type == DEVICE_CUDA || params.device.type == DEVICE_OPENCL;
|
||||||
|
bool is_multidevice = params.device.multi_devices.size() > 1;
|
||||||
|
bool is_cpu = params.device.type == DEVICE_CPU;
|
||||||
|
|
||||||
substatus = string_printf("Path Tracing Tile %d/%d", tile, num_tiles);
|
substatus = string_printf("Path Tracing Tile %d/%d", tile, num_tiles);
|
||||||
|
|
||||||
if(params.device.type == DEVICE_CUDA || params.device.type == DEVICE_OPENCL ||
|
if((is_gpu && !is_multidevice) || (is_cpu && num_tiles == 1)) {
|
||||||
(params.device.type == DEVICE_CPU && num_tiles == 1)) {
|
|
||||||
/* when rendering on GPU multithreading happens within single tile, as in
|
/* when rendering on GPU multithreading happens within single tile, as in
|
||||||
* tiles are handling sequentially and in this case we could display
|
* tiles are handling sequentially and in this case we could display
|
||||||
* currently rendering sample number
|
* currently rendering sample number
|
||||||
|
Loading…
Reference in New Issue
Block a user