← Back to context

Comment by jcelerier

3 days ago

> IIRC you could convert all 16M of RGB to CAM16 and L* in 6 seconds, in debug mode, in Dart, transpiled to Javascript in 2021, so I try to advocate for doing things with a proper color space as much as possible, the perf just doesn't matter.

Coming from the "real-time graphics" world, if I read that something which is going to be a minor part of your whole pipeline would take 6 seconds (or even 600 or 60 ms) it would be instantly disqualified so I don't really understand why you'd say "the perf just doesn't matter" ?

> I don't understand how "the perf just doesn't matter"

Ah, apologies, I don't mean to imply color perf never matters :)

The paragraph is discussing a color quantization algorithm to extract colors from an image, not color conversion in general. It's very hard in that situation

> "a minor part of your whole pipeline would take 6 seconds (or even 600 or 60 ms"

Ah, apologies for the lack of clarity: you don't need to ever convert the entirety of RGB to CAM16 and L*. :) That's just a rough instructive benchmark I can remember.

If I'm worried about realtime, say, I know I want to convert an 6K* wallpaper with realtime appearance modelling, at 120 fps on 2022 Android, I use a shader. 0 perf issues so far. (knock on wood)

* now that I think about it...it's probably at display res, not the original 6K. Maybe 2 megapixel? shrugs