[argyllcms] Re: Patch for Apple Silicon M1 to correctly detect display names and build native

  • From: Graeme Gill <graeme@xxxxxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Sat, 13 Feb 2021 10:30:16 +1100

Lars Tore Gustavsen wrote:

Just some quick testing on Macbook M1.
Compared to the patch from Lehmann, no detected display name.

That's sad :-(

Unfortunately I can't easily fix that, since I don't have a system
that has the necessary NSScreen localizedName method to test on.

The original patch uses a @available construct that isn't available on
earlier development systems (explain the logic of adding such a feature if you 
can!),
so something else is needed, and it appears that my attempt at
instancesRespondToSelector isn't correct.

And it's much slower.
$ time Argyll_V2.1.3_beta//bin/colprof   -D"time test" -qh -al test5
real 1m31.294s

$ time Argyll-macos-arm-main/bin/colprof   -D"time test" -qh -al test5
real 0m32.865s

To be expected since the x86 code is emulated. But both of those are
blindingly fast compared to the 10's of minutes it used to be on
the sorts of processor chips I used while developing the code...

Thanks for testing,

        Graeme Gill.

Other related posts: