Fix #30246: rendering multiple render layers with CUDA still not working,
should really be fixed now.
This commit is contained in:
@@ -57,6 +57,7 @@ Session::Session(const SessionParams& params_)
|
||||
gpu_draw_ready = false;
|
||||
gpu_need_tonemap = false;
|
||||
pause = false;
|
||||
kernels_loaded = false;
|
||||
}
|
||||
|
||||
Session::~Session()
|
||||
@@ -414,6 +415,7 @@ void Session::run_cpu()
|
||||
void Session::run()
|
||||
{
|
||||
/* load kernels */
|
||||
if(!kernels_loaded) {
|
||||
progress.set_status("Loading render kernels (may take a few minutes the first time)");
|
||||
|
||||
if(!device->load_kernels(params.experimental)) {
|
||||
@@ -426,6 +428,9 @@ void Session::run()
|
||||
return;
|
||||
}
|
||||
|
||||
kernels_loaded = true;
|
||||
}
|
||||
|
||||
/* session thread loop */
|
||||
progress.set_status("Waiting for render to start");
|
||||
|
||||
|
@@ -156,6 +156,8 @@ protected:
|
||||
thread_condition_variable pause_cond;
|
||||
thread_mutex pause_mutex;
|
||||
|
||||
bool kernels_loaded;
|
||||
|
||||
double start_time;
|
||||
double reset_time;
|
||||
double preview_time;
|
||||
|
Reference in New Issue
Block a user