Revert r50528: "Performance fix for Cycles: Don't wait in the main UI thread when resetting devices."
This commit leads to random freezes in Cycles rendering: https://projects.blender.org/tracker/index.php?func=detail&aid=32545&group_id=9&atid=498 The goal of this commit was to remove UI lag for OSL, but since that is not officially supported yet, better revert it until a proper fix can be implemented in 2.65.
This commit is contained in:
@@ -140,12 +140,6 @@ void Session::reset_gpu(BufferParams& buffer_params, int samples)
|
||||
pause_cond.notify_all();
|
||||
}
|
||||
|
||||
bool Session::resetting_gpu() const
|
||||
{
|
||||
/* no need to wait for gpu device */
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Session::draw_gpu(BufferParams& buffer_params)
|
||||
{
|
||||
/* block for buffer access */
|
||||
@@ -296,11 +290,6 @@ void Session::reset_cpu(BufferParams& buffer_params, int samples)
|
||||
pause_cond.notify_all();
|
||||
}
|
||||
|
||||
bool Session::resetting_cpu() const
|
||||
{
|
||||
return device->task_cancelled();
|
||||
}
|
||||
|
||||
bool Session::draw_cpu(BufferParams& buffer_params)
|
||||
{
|
||||
thread_scoped_lock display_lock(display_mutex);
|
||||
@@ -595,14 +584,6 @@ void Session::reset(BufferParams& buffer_params, int samples)
|
||||
reset_cpu(buffer_params, samples);
|
||||
}
|
||||
|
||||
bool Session::resetting() const
|
||||
{
|
||||
if(device_use_gl)
|
||||
return resetting_gpu();
|
||||
else
|
||||
return resetting_cpu();
|
||||
}
|
||||
|
||||
void Session::set_samples(int samples)
|
||||
{
|
||||
if(samples != params.samples) {
|
||||
|
Reference in New Issue
Block a user