Skip to content

Commit

Permalink
Increase micro naps upon pipe return to 5 ms
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelienpierre committed Jan 15, 2025
1 parent 8e46ced commit ec1cbad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/develop/develop.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ void dt_dev_process_preview_job(dt_develop_t *dev)
dt_show_times(&thread_start, "[dev_process_preview] pixel pipeline thread");
dt_dev_average_delay_update(&thread_start, &dev->preview_average_delay);

dt_iop_nap(200);
dt_iop_nap(5000);

if(ret && dev->preview_pipe->status == DT_DEV_PIXELPIPE_INVALID) finish_on_error = TRUE;
}
Expand Down Expand Up @@ -489,7 +489,7 @@ void dt_dev_process_image_job(dt_develop_t *dev)

dt_dev_average_delay_update(&thread_start, &dev->average_delay);

dt_iop_nap(200);
dt_iop_nap(5000);

if(ret && dev->pipe->status == DT_DEV_PIXELPIPE_INVALID) finish_on_error = TRUE;
}
Expand Down
4 changes: 2 additions & 2 deletions src/develop/pixelpipe_hb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ static void collect_histogram_on_CPU(dt_dev_pixelpipe_t *pipe, dt_develop_t *dev
dt_opencl_release_mem_object(*cl_mem_output); \
*cl_mem_output = NULL; \
} \
dt_iop_nap(200); \
dt_iop_nap(5000); \
pipe->status = DT_DEV_PIXELPIPE_DIRTY; \
return 1; \
}
Expand All @@ -1230,7 +1230,7 @@ static void collect_histogram_on_CPU(dt_dev_pixelpipe_t *pipe, dt_develop_t *dev
dt_opencl_release_mem_object(*cl_mem_output); \
*cl_mem_output = NULL; \
} \
dt_iop_nap(200); \
dt_iop_nap(5000); \
pipe->status = DT_DEV_PIXELPIPE_DIRTY; \
return 1; \
}
Expand Down

0 comments on commit ec1cbad

Please sign in to comment.