Fix T50748: Render Time incorrect when refreshing rendered preview in GPU mode
This commit is contained in:
@@ -230,7 +230,9 @@ void Session::run_gpu()
|
|||||||
while(1) {
|
while(1) {
|
||||||
scoped_timer pause_timer;
|
scoped_timer pause_timer;
|
||||||
pause_cond.wait(pause_lock);
|
pause_cond.wait(pause_lock);
|
||||||
progress.add_skip_time(pause_timer, params.background);
|
if(pause) {
|
||||||
|
progress.add_skip_time(pause_timer, params.background);
|
||||||
|
}
|
||||||
|
|
||||||
update_status_time(pause, no_tiles);
|
update_status_time(pause, no_tiles);
|
||||||
progress.set_update();
|
progress.set_update();
|
||||||
@@ -520,7 +522,9 @@ void Session::run_cpu()
|
|||||||
while(1) {
|
while(1) {
|
||||||
scoped_timer pause_timer;
|
scoped_timer pause_timer;
|
||||||
pause_cond.wait(pause_lock);
|
pause_cond.wait(pause_lock);
|
||||||
progress.add_skip_time(pause_timer, params.background);
|
if(pause) {
|
||||||
|
progress.add_skip_time(pause_timer, params.background);
|
||||||
|
}
|
||||||
|
|
||||||
update_status_time(pause, no_tiles);
|
update_status_time(pause, no_tiles);
|
||||||
progress.set_update();
|
progress.set_update();
|
||||||
|
Reference in New Issue
Block a user