current OSX Build

rebuild whole macports environment with xcode 13 and sdk 12 doesn’t help

current master + exiv2 0.27.4 + preliminary Canon CR3 support
darktable-3.7.0+1503~g722974e2c.dmg
for a list of changes see Pulse · darktable-org/darktable · GitHub
(heif support is disabled since build code is broken for osx)

build was made using Xcode commandlinetools 12 and sdk 10.15, so it will run also on macos12.
requires at least osx 10.15; don’t forget to backup …

Thanks! This does indeed now work on Monterey.

The problem with the logo is gone. And this one is excellent!!!
rt logo

current master + exiv2 0.27.4 + preliminary Canon CR3 support
darktable-3.7.0+1541~g803c78133.dmg
for a list of changes see Pulse · darktable-org/darktable · GitHub
(heif support is disabled since build code is broken for osx)

build was made using Xcode commandlinetools 12 and sdk 10.15, so it will run also on macos12.
requires at least osx 10.15; don’t forget to backup …

This new version again the same logo problem described earlier.
https://discuss.pixls.us/t/current-osx-build/13213/357?u=rajkhand

I have noticed that again this version is noticeably slower than the earlier version! Specially the diffuse and sharpen and colorbalance rgb

Thats no new „feature“, that depends on your display configuration. Gtk and osx aren’t best friends. Performance might be affected too since monterey has an issue with gtk if built with sdk11 or later so this build is done with xcode 12.0 and sdk 10.15.

I am not on Monterey and I am comparing it with 3.7.0+1476, for 3.7.0+1541 version for each small operation in the above two modules there is a noticeable delay and the “working” notice will be displayed

Following your comments, I did a quick comparison between 1476 vs 1541 on my iMac. I use a Nikon .nef file that I have as a test image with a fix development .xmp file. For getting the results I start dt from terminal with darktable -d perf, and I export the test file to the desktop as a .jpg. These is what I got:
dt 1476 cpu 34.594 sec
dt 1541 cpu 36.293 sec

dt 1476 cpu+gpu 11.168 sec
dt 1541 cpu+gpu 11.252 sec

The GPU makes a big difference, however to fully enable the gpu it is very important, at least in my system OSX 11.5.1, to run the script proposed by MStraeten earlier in this thread, after each update.

Hope this may help you!

The results in detail for the timing of the different modules:
Only cpu

CPU + GPU

current master + exiv2 0.27.4 + preliminary Canon CR3 support
(probably my last build with rawspeed cr3 patch since cr3 support via libraw is on the home stretch)
darktable-3.7.0+1629~g24d9fcb8f.dmg
for a list of changes see Pulse · darktable-org/darktable · GitHub
(heif support is disabled since build code is broken for osx)

build was made using Xcode commandlinetools 12 and sdk 10.15, so it will run also on macos12.
requires at least osx 10.15; don’t forget to backup …

current master + upcoming LibRaw Canon CR3 support
[87.15 MB file on MEGA)
Please test and report issues to get stable cr3 support on Xmas.
For a list of changes see Pulse · darktable-org/darktable · GitHub

build was made using Xcode commandlinetools 12 and sdk 10.15 and requires at least osx 10.15; don’t forget to backup …

2 Likes

gtk3 was just updated at macports and can be used with Xcode13.1 commandline tools and sdk12.
So this build is done with latest sdk (but with 10.15 as target) .
So you might check, if this gives better performance than the latest builds with old Xcode12 and sdk 10.15
darktable-3.7.0+1505~g0903daa9c.dmg

Thank you for all the builds !!!

Here are the results, all done as described in my previous post:

dt 1476 cpu 34.549 sec (take from previous post)
dt 1505 cpu 33.977 sec

dt 1476 cpu+gpu 11.168 sec (taken from previous post)
dt 1505 cpu+gpu 10.880 sec

Both builds behave very similar.

And here are the results in detail for the test cpu+gpu.

dt 1476 cpu+gpu (taken from previous post)

dt 1505 cpu+gpu

for darktable-3.7.0+1505~g0903daa9c

I loaded an Image

Raj-iMac:~ raj$ /Applications/darktable.app/Contents/MacOS/darktable -d perf

(process:1509): GLib-GObject-**CRITICAL** **: 16:33:48.714: g_object_set: assertion 'G_IS_OBJECT (object)' failed

[dt_pthread_create] info: bumping pthread's stacksize from 524288 to 2097152

[dt_pthread_create] info: bumping pthread's stacksize from 524288 to 2097152

[dt_pthread_create] info: bumping pthread's stacksize from 524288 to 2097152

[dt_pthread_create] info: bumping pthread's stacksize from 524288 to 2097152

[dt_pthread_create] info: bumping pthread's stacksize from 524288 to 2097152

[dt_pthread_create] info: bumping pthread's stacksize from 524288 to 2097152

[dt_pthread_create] info: bumping pthread's stacksize from 524288 to 2097152

[dt_pthread_create] info: bumping pthread's stacksize from 524288 to 2097152

[dt_pthread_create] info: bumping pthread's stacksize from 524288 to 2097152

(darktable:1509): GLib-GObject-**WARNING** **: 16:33:48.993: invalid cast from 'GtkMenuBar' to 'GtkWindow'

(darktable:1509): Gtk-**CRITICAL** **: 16:33:48.993: gtk_window_add_accel_group: assertion 'GTK_IS_WINDOW (window)' failed

6.913617 [dev] took 0.054 secs (0.443 CPU) to load the image.

7.804715 [histogram] took 0.001 secs (0.000 CPU) scope draw

7.839640 [dev] took 0.000 secs (0.000 CPU) to load the image.

7.943588 [dev_pixelpipe] took 0.010 secs (0.022 CPU) initing base buffer [full]

7.955120 [dev_pixelpipe] took 0.012 secs (0.072 CPU) processed `raw black/white point' on GPU, blended on GPU [full]

7.955834 [dev_pixelpipe] took 0.001 secs (0.005 CPU) processed `white balance' on GPU, blended on GPU [full]

8.021991 [histogram] took 0.000 secs (0.000 CPU) scope draw

8.131446 [dev_pixelpipe] took 0.176 secs (1.513 CPU) processed `highlight reconstruction' on CPU, blended on CPU [full]

[demosaic] process GPU `RCD' did 20.03mpix, 0.0011 secs (0.0023 CPU), 18756.05 pix/us

8.152467 [dev_pixelpipe] took 0.021 secs (0.030 CPU) processed `demosaic' on GPU, blended on GPU [full]

8.289325 [histogram] took 0.000 secs (0.000 CPU) scope draw

8.315355 [dev_pixelpipe] took 0.163 secs (0.460 CPU) processed `lens correction' on GPU, blended on GPU [full]

8.315992 [dev_pixelpipe] took 0.001 secs (0.001 CPU) processed `exposure' on GPU, blended on GPU [full]

8.316579 [dev_pixelpipe] took 0.001 secs (0.001 CPU) processed `crop' on GPU, blended on GPU [full]

8.321559 [dev_pixelpipe] took 0.001 secs (0.002 CPU) processed `input color profile' on GPU, blended on GPU [full]

image colorspace transform Lab-->RGB took 0.002 secs (0.003 GPU) [diffuse ]

8.324635 [dev_pixelpipe] took 0.003 secs (0.006 CPU) processed `diffuse or sharpen' on GPU, blended on GPU [full]

image colorspace transform RGB-->Lab took 0.001 secs (0.002 GPU) [atrous ]

8.342824 [dev_pixelpipe] took 0.010 secs (0.015 CPU) processed `contrast equalizer' on GPU, blended on GPU [full]

image colorspace transform Lab-->RGB took 0.001 secs (0.002 GPU) [colorbalancergb ]

8.353731 [dev_pixelpipe] took 0.003 secs (0.005 CPU) processed `color balance rgb' on GPU, blended on GPU [full]

8.471943 [histogram] took 0.001 secs (0.001 CPU) scope draw

8.521606 [histogram] took 0.000 secs (0.000 CPU) scope draw

8.655588 [histogram] took 0.001 secs (0.009 CPU) scope draw

14.892713 [dev_pixelpipe] took 6.539 secs (1.347 CPU) processed `color balance rgb 1' on GPU, blended on GPU [full]

image colorspace transform RGB-->Lab took 0.001 secs (0.001 GPU) [bilat ]

15.030718 [dev_pixelpipe] took 0.138 secs (0.003 CPU) processed `local contrast' on GPU, blended on GPU [full]

15.269566 [dev_pixelpipe] took 0.239 secs (2.348 CPU) processed `output color profile' on CPU, blended on CPU [full]

15.277463 [dev_pixelpipe] took 0.008 secs (0.055 CPU) processed `display encoding' on CPU, blended on CPU [full]

15.282544 [dev_process_image] pixel pipeline processing took 7.349 secs (5.962 CPU)

15.284188 [histogram] took 0.000 secs (0.002 CPU) scope draw

15.408525 [histogram] took 0.001 secs (0.001 CPU) scope draw

15.498914 [dev_pixelpipe] took 0.000 secs (0.001 CPU) initing base buffer [preview]

15.500210 [dev_pixelpipe] took 0.001 secs (0.002 CPU) processed `raw black/white point' on GPU, blended on GPU [preview]

15.500810 [dev_pixelpipe] took 0.001 secs (0.001 CPU) processed `white balance' on GPU, blended on GPU [preview]

15.511219 [dev_pixelpipe] took 0.010 secs (0.052 CPU) processed `highlight reconstruction' on CPU, blended on CPU [preview]

15.513020 [dev_pixelpipe] took 0.002 secs (0.013 CPU) processed `demosaic' on GPU, blended on GPU [preview]

15.532412 [dev_pixelpipe] took 0.019 secs (0.119 CPU) processed `lens correction' on GPU, blended on GPU [preview]

15.533110 [dev_pixelpipe] took 0.001 secs (0.002 CPU) processed `exposure' on GPU, blended on GPU [preview]

15.533791 [dev_pixelpipe] took 0.001 secs (0.002 CPU) processed `crop' on GPU, blended on GPU [preview]

15.534826 [dev_pixelpipe] took 0.001 secs (0.003 CPU) processed `input color profile' on GPU, blended on GPU [preview]

image colorspace transform Lab-->RGB took 0.001 secs (0.003 GPU) [diffuse ]

15.537373 [dev_pixelpipe] took 0.003 secs (0.007 CPU) processed `diffuse or sharpen' on GPU, blended on GPU [preview]

image colorspace transform RGB-->Lab took 0.001 secs (0.003 GPU) [atrous ]

15.546030 [dev_pixelpipe] took 0.009 secs (0.028 CPU) processed `contrast equalizer' on GPU, blended on GPU [preview]

image colorspace transform Lab-->RGB took 0.001 secs (0.005 GPU) [colorbalancergb ]

15.551189 [dev_pixelpipe] took 0.003 secs (0.013 CPU) processed `color balance rgb' on GPU, blended on GPU [preview]

15.556974 [histogram] took 0.001 secs (0.009 CPU) scope draw

16.239509 [dev_pixelpipe] took 0.688 secs (0.330 CPU) processed `color balance rgb 1' on GPU, blended on GPU [preview]

image colorspace transform RGB-->Lab took 0.001 secs (0.001 GPU) [bilat ]

16.272537 [dev_pixelpipe] took 0.033 secs (0.003 CPU) processed `local contrast' on GPU, blended on GPU [preview]

16.308662 [dev_pixelpipe] took 0.036 secs (0.350 CPU) processed `output color profile' on CPU, blended on CPU [preview]

16.309722 [dev_pixelpipe] took 0.001 secs (0.007 CPU) processed `display encoding' on CPU, blended on CPU [preview]

image colorspace transform RGB-->RGB took 0.006 secs (0.054 CPU) [final histogram]

16.493086 [histogram] took 0.161 secs (1.578 CPU) final waveform

16.493529 [dev_process_preview] pixel pipeline processing took 1.067 secs (3.151 CPU)

Then I just incresed the Hue from 0 to 20.70 with a single click in color balance rgb, the result

160.299725 [dev] took 0.000 secs (0.000 CPU) to load the image.

160.328154 [dev_pixelpipe] took 0.000 secs (0.002 CPU) initing base buffer [preview]

160.329827 [dev_pixelpipe] took 0.002 secs (0.004 CPU) processed `raw black/white point’ on GPU, blended on GPU [preview]

160.330440 [dev_pixelpipe] took 0.001 secs (0.001 CPU) processed `white balance’ on GPU, blended on GPU [preview]

160.340784 [dev_pixelpipe] took 0.010 secs (0.060 CPU) processed `highlight reconstruction’ on CPU, blended on CPU [preview]

160.342573 [dev_pixelpipe] took 0.002 secs (0.004 CPU) processed `demosaic’ on GPU, blended on GPU [preview]

160.362291 [dev_pixelpipe] took 0.020 secs (0.071 CPU) processed `lens correction’ on GPU, blended on GPU [preview]

160.362943 [dev_pixelpipe] took 0.001 secs (0.001 CPU) processed `exposure’ on GPU, blended on GPU [preview]

160.363514 [dev_pixelpipe] took 0.001 secs (0.001 CPU) processed `crop’ on GPU, blended on GPU [preview]

160.364564 [dev_pixelpipe] took 0.001 secs (0.002 CPU) processed `input color profile’ on GPU, blended on GPU [preview]

image colorspace transform Lab–>RGB took 0.002 secs (0.003 GPU) [diffuse ]

160.367271 [dev_pixelpipe] took 0.003 secs (0.005 CPU) processed `diffuse or sharpen’ on GPU, blended on GPU [preview]

image colorspace transform RGB–>Lab took 0.001 secs (0.002 GPU) [atrous ]

160.375558 [dev_pixelpipe] took 0.008 secs (0.013 CPU) processed `contrast equalizer’ on GPU, blended on GPU [preview]

image colorspace transform Lab–>RGB took 0.001 secs (0.002 GPU) [colorbalancergb ]

160.378004 [dev_pixelpipe] took 0.002 secs (0.004 CPU) processed `color balance rgb’ on GPU, blended on GPU [preview]

160.442766 [histogram] took 0.005 secs (0.007 CPU) scope draw

161.059863 [dev_pixelpipe] took 0.682 secs (0.509 CPU) processed `color balance rgb 1’ on GPU, blended on GPU [preview]

image colorspace transform RGB–>Lab took 0.001 secs (0.001 GPU) [bilat ]

161.097136 [dev_pixelpipe] took 0.037 secs (0.003 CPU) processed `local contrast’ on GPU, blended on GPU [preview]

161.127511 [dev_pixelpipe] took 0.030 secs (0.303 CPU) processed `output color profile’ on CPU, blended on CPU [preview]

161.128801 [dev_pixelpipe] took 0.001 secs (0.007 CPU) processed `display encoding’ on CPU, blended on CPU [preview]

image colorspace transform RGB–>RGB took 0.009 secs (0.053 CPU) [final histogram]

161.147062 [histogram] took 0.018 secs (0.101 CPU) final waveform

161.147391 [dev_process_preview] pixel pipeline processing took 0.848 secs (1.218 CPU)

161.153580 [histogram] took 0.005 secs (0.015 CPU) scope draw

161.157505 [dev_pixelpipe] took 0.008 secs (0.019 CPU) initing base buffer [full]

161.165825 [dev_pixelpipe] took 0.008 secs (0.013 CPU) processed `raw black/white point’ on GPU, blended on GPU [full]

161.166447 [dev_pixelpipe] took 0.001 secs (0.001 CPU) processed `white balance’ on GPU, blended on GPU [full]

161.338384 [dev_pixelpipe] took 0.172 secs (1.357 CPU) processed `highlight reconstruction’ on CPU, blended on CPU [full]

[demosaic] process GPU `RCD’ did 20.03mpix, 0.0010 secs (0.0033 CPU), 19353.35 pix/us

161.359837 [dev_pixelpipe] took 0.021 secs (0.136 CPU) processed `demosaic’ on GPU, blended on GPU [full]

161.360707 [histogram] took 0.006 secs (0.045 CPU) scope draw

161.556549 [dev_pixelpipe] took 0.197 secs (1.447 CPU) processed `lens correction’ on GPU, blended on GPU [full]

161.557243 [dev_pixelpipe] took 0.001 secs (0.006 CPU) processed `exposure’ on GPU, blended on GPU [full]

161.557820 [dev_pixelpipe] took 0.001 secs (0.004 CPU) processed `crop’ on GPU, blended on GPU [full]

161.558852 [dev_pixelpipe] took 0.001 secs (0.008 CPU) processed `input color profile’ on GPU, blended on GPU [full]

image colorspace transform Lab–>RGB took 0.001 secs (0.014 GPU) [diffuse ]

161.561502 [dev_pixelpipe] took 0.003 secs (0.020 CPU) processed `diffuse or sharpen’ on GPU, blended on GPU [full]

image colorspace transform RGB–>Lab took 0.001 secs (0.005 GPU) [atrous ]

161.571768 [dev_pixelpipe] took 0.010 secs (0.088 CPU) processed `contrast equalizer’ on GPU, blended on GPU [full]

image colorspace transform Lab–>RGB took 0.001 secs (0.008 GPU) [colorbalancergb ]

161.573994 [dev_pixelpipe] took 0.002 secs (0.020 CPU) processed `color balance rgb’ on GPU, blended on GPU [full]

168.088947 [dev_pixelpipe] took 6.515 secs (1.780 CPU) processed `color balance rgb 1’ on GPU, blended on GPU [full]

image colorspace transform RGB–>Lab took 0.001 secs (0.001 GPU) [bilat ]

168.226632 [dev_pixelpipe] took 0.138 secs (0.003 CPU) processed `local contrast’ on GPU, blended on GPU [full]

168.447164 [dev_pixelpipe] took 0.221 secs (2.249 CPU) processed `output color profile’ on CPU, blended on CPU [full]

168.453357 [dev_pixelpipe] took 0.006 secs (0.072 CPU) processed `display encoding’ on CPU, blended on CPU [full]

168.455757 [dev_process_image] pixel pipeline processing took 8.097 secs (8.220 CPU)

usual behaviour since long time
gtk and macos aren’t best friends

1 Like

current master including LibRaw Canon CR3 support
darktable-3.7.0+1511~gdf356c0c1.dmg
Please test and report issues to get stable cr3 support on Xmas.
For a list of changes see Pulse · darktable-org/darktable · GitHub

build requires at least osx 10.15; don’t forget to backup …

1 Like

I am building 3.6.1 on Monterey using Xcode 13 (12.0 SDK) and I get the black screen.

Where do I set SDK/target in build scripts? Is it in build.sh and the top-level CMakeLists.txt?

What are the settings?

Thanks

you need to update macports gtk3 package

Or add -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk \ to the cmake command

current master including LibRaw Canon CR3 support
darktable-3.7.0+1567~g92346878c.dmg
Please test and report issues to get stable cr3 support on Xmas.
For a list of changes see Pulse · darktable-org/darktable · GitHub

build requires at least osx 10.15; don’t forget to backup …

2 Likes