<rnd>
and i bet the wayland protocols and compositors adopting the protocol will also be useful for every other toolkit program that also wants to have gamma-correct blending
<emersion>
dnkl: hm it shouldn't care whether it's a subsurface or not
<dnkl>
emersion: it's a bit weird, because it looks like the first frame has the correct colors, but then it's gone
<emersion>
the hacks are just disabling optimizations
<emersion>
hm
<dnkl>
rnd: @rnd@toot.cat is you?
<rnd>
yep
boomboxnation-1 has joined #foot
OtzmaVindicus has quit [Quit: levaya]
OtzmaVindicus has joined #foot
mtm has quit [Ping timeout: 244 seconds]
mtm has joined #foot
<WhyNotHugo>
text looks clearly sharper in those screenshots. can't wait to see this on my own screens
<WhyNotHugo>
btw: thanks for nerd snipping me into readinng about this whole "gamma correction" topic today XD
<rnd>
it's a thing that takes a lot of UI programmers unaware (and makes UI designers very annoyed)
<rnd>
i think there's a minutephysics video that describes it very well (although afaik it simplifies things a bit by assuming RGB colors are just square roots of linear colors, whereas in reality the power is more like 2.2, plus a small linear scale at the very bottom)
boomboxnation-1 has quit [Ping timeout: 252 seconds]
alexherbo2 has joined #foot
<WhyNotHugo>
rnd: " Computer Color is Broken"? It seems to already be in my bookmarks 😂
<dnkl>
WhyNotHugo: read your blog post 👍
<dnkl>
a note on the expensive math... since we're typically going from 8-bit encoded channels, the translation is often done with lookup tables
<dnkl>
both foot and pixman does this
<WhyNotHugo>
Right, that's a lot saner than x^2.2
<dnkl>
however, it's *still* very expensive CPU wise, to do it for every pixel. Hence why foot doesn't even bother implementing that part, but requires compositor offloading
<WhyNotHugo>
I'm noticing that applications that want to run on other desktops can't expect the same offloading capabilities.
<WhyNotHugo>
E.g.: if foot wanted to run on x11 too, you'd need to implement gamma correction yourself (or link to a library that does it for you).
<emersion>
or set the global gamma LUT to do it for you (and break all other apps, but welcome to X11!)
<emersion>
(that's what color-managed X11 apps do)
<WhyNotHugo>
Wait, is this why video games circa 1998 messed up colours for all other progams while running?
<WhyNotHugo>
And screenshots had all colours messed up?