Performance Advice

Hi.
I seem to have some slowdowns on certain things when i am processing. I know that switching off denoise/raw denoise and lens correction can help to speed up my workflow but I noticed that the real slow down is cause with the preview being rendered as it is being done by the CPU. Does anyone know if you can make the preview use the GPU as well.
Here is some output of -d perf. As you can see the processing of [full] is magnitudes faster than the processing of [preview]. Thanks

[dev] took 0.000 secs (0.001 CPU) to load the image.
[dev_pixelpipe] took 0.003 secs (0.008 CPU) initing base buffer [preview]
[dev_pixelpipe] took 0.003 secs (0.007 CPU) processed `raw black/white point' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.007 secs (0.016 CPU) processed `white balance' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.005 secs (0.009 CPU) processed `highlight reconstruction' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.043 secs (0.094 CPU) initing base buffer [full]
[dev_pixelpipe] took 0.016 secs (0.034 CPU) processed `raw black/white point' on GPU, blended on GPU [full]
[dev_pixelpipe] took 0.004 secs (0.011 CPU) processed `white balance' on GPU, blended on GPU [full]
[dev_pixelpipe] took 0.004 secs (0.005 CPU) processed `highlight reconstruction' on GPU, blended on GPU [full]
[dev_pixelpipe] took 0.120 secs (0.248 CPU) processed `raw denoise' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.120 secs (0.418 CPU) processed `demosaic' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.396 secs (1.371 CPU) processed `tone mapping' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.012 secs (0.036 CPU) processed `exposure' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.048 secs (0.147 CPU) processed `spot removal' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.286 secs (1.044 CPU) processed `lens correction' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.019 secs (0.066 CPU) processed `graduated density' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.016 secs (0.045 CPU) processed `base curve' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.012 secs (0.041 CPU) processed `input color profile' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 1.210 secs (4.222 CPU) processed `raw denoise' on CPU, blended on CPU [full]
[dev_pixelpipe] took 0.477 secs (1.815 CPU) processed `color balance' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.018 secs (0.066 CPU) processed `crop and rotate' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.513 secs (1.917 CPU) processed `global tonemap' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.166 secs (0.581 CPU) processed `shadows and highlights' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.238 secs (0.851 CPU) processed `tone curve' on CPU, collected histogram on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.158 secs (0.544 CPU) processed `tone curve 1' on CPU, collected histogram on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.209 secs (0.748 CPU) processed `color correction' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.044 secs (0.160 CPU) processed `sharpen' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.100 secs (0.325 CPU) processed `lowpass' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.294 secs (1.060 CPU) processed `output color profile' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 2.074 secs (7.411 CPU) processed `demosaic' on CPU, blended on CPU [full]
[dev_pixelpipe] took 0.182 secs (0.587 CPU) processed `channel mixer' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.045 secs (0.152 CPU) processed `vignetting' on CPU, blended on CPU [preview]
[dev_pixelpipe] took 0.008 secs (0.023 CPU) processed `gamma' on CPU, blended on CPU [preview]
[dev_process_preview] pixel pipeline processing took 3.538 secs (12.392 CPU)
[dev_pixelpipe] took 0.291 secs (0.893 CPU) processed `tone mapping' on CPU, blended on CPU [full]
[dev_pixelpipe] took 0.007 secs (0.002 CPU) processed `exposure' on GPU, blended on GPU [full]
[dev_pixelpipe] took 0.040 secs (0.072 CPU) processed `spot removal' on CPU, blended on CPU [full]
[dev_pixelpipe] took 0.036 secs (0.038 CPU) processed `lens correction' on GPU, blended on GPU [full]
[dev_pixelpipe] took 0.002 secs (0.000 CPU) processed `graduated density' on GPU, blended on GPU [full]
[dev_pixelpipe] took 0.003 secs (0.000 CPU) processed `base curve' on GPU, blended on GPU [full]
[dev_pixelpipe] took 0.004 secs (0.001 CPU) processed `input color profile' on GPU, blended on GPU [full]
[dev_pixelpipe] took 0.003 secs (0.000 CPU) processed `color balance' on GPU, blended on GPU [full]
[dev_pixelpipe] took 0.002 secs (0.000 CPU) processed `crop and rotate' on GPU, blended on GPU [full]
[dev_pixelpipe] took 0.025 secs (0.001 CPU) processed `global tonemap' on GPU, blended on GPU [full]
[dev_pixelpipe] took 0.010 secs (0.001 CPU) processed `shadows and highlights' on GPU, blended on GPU [full]
[dev_pixelpipe] took 0.011 secs (0.005 CPU) processed `tone curve' on GPU, blended on GPU [full]
[dev_pixelpipe] took 0.079 secs (0.063 CPU) processed `tone curve 1' on GPU, blended on GPU [full]
[dev_pixelpipe] took 0.067 secs (0.059 CPU) processed `color correction' on GPU, blended on GPU [full]
[dev_pixelpipe] took 0.003 secs (0.000 CPU) processed `sharpen' on GPU, blended on GPU [full]
[dev_pixelpipe] took 0.013 secs (0.003 CPU) processed `lowpass' on GPU, blended on GPU [full]
[dev_pixelpipe] took 0.108 secs (0.398 CPU) processed `output color profile' on CPU, blended on CPU [full]
[dev_pixelpipe] took 0.079 secs (0.055 CPU) processed `channel mixer' on GPU, blended on GPU [full]
[dev_pixelpipe] took 0.002 secs (0.000 CPU) processed `vignetting' on GPU, blended on GPU [full]
[dev_pixelpipe] took 0.011 secs (0.012 CPU) processed `gamma' on CPU, blended on CPU [full]
[dev_process_image] pixel pipeline processing took 4.170 secs (13.430 CPU)

Perhaps https://www.darktable.org/usermanual/ch10s02s07.html.php will help.

Maybe it has something to do with the settings of opencl_device_priority in the $HOME/.config/darktable/darktablerc.

Default setting for opencl_device_priority is */!0,*/*/*. According to the manual this switches off opencl for the preview for the first opencl device in your system. So the preview will be processed on the CPU.

You could try to set:

opencl_device_priority = */!0,*/*/*

to

opencl_device_priority = */*/*/*

in your $HOME/.config/darktable/darktablerc.

Cool. Thanks. I’ll give it a try

Unfortunately this did nothing. Same result. I will investigate the performance manual page.
Thanks