A bit tangential, but in modern games with HDR I still get the fucking banding of dark colors.
Someone enlighten me what HDR actually does then.
HDR is extra brightness on your display. In practice it's kind of a mess, as both the hardware and software implementation has to be good. If you have cheap display, you'll get something marketed as HDR even though it would look better with it turned off, as they likely use very big extra brightness zones, so it won't end up looking right. On software side, unless it's a console, the PC stack was not designed for HDR and it really takes co-operation of the whole stack to make it look correct on the display. For a while, for best result you had to basically bypass most of your display stack to get correct results. Valve's been working on it for their own platform, and wayland has some experimental support.
EDIT: For TV, HDR works well assuming you don't have cheap TV.
mainly it confuses the heck out of everyone because some display industry association tried to tie it to absolute luminosity and then made HDR content way too bright or dark relative to everything around it
Dynamic range is luminance range. Standard dynamic range (SDR) was ~[0, 200nits]. High dynamic range (HDR) is higher, e.g. [0, 1000nits]. As John Carmack pointed out, human perception is non-linear. SDR uses color volumes that relies on Stevens' power law, which gamma correction approximates. For example, the SRGB and rec.709 TFs are pretty much piecewise gamma 2.2. This curve is only accurate at low nit levels. Thus, at high nit levels, a new curve known as the "perceptual quanitizer" or PQ TF is used instead. This curve is ostensibly fine up to 10000nits.
Because luminance ranges can differ drastically, converting media intended to be viewed on, say, a 3000nits display to a 1000nits display require other global transformations. HDR metadata standards are different parameterizations of different global transforms.
If you've ever experienced problems with HDR media it is because human perception is not actually global nor is it rooted in physics. We know from Retinex theory, the spatial dampening of the lateral geniculate nucleus, the Barten CSF, the Gelb effect, the 2022 Los Alamos paper on the non-Riemannian nature of color, etc. that the human visual system (HVS) cares about local spatio-temporal relationships more than it cares about global luminance. Because HDR pipelines are built on global transforms, they can actually have the effect of crushing the local differentials the HVS really cares about. There's a lot more to say on all of this, but that's the gist of it.