mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-16 08:21:20 -04:00
config: tweak.surface-bit-depth: add support for 16f surfaces
This adds supports for 16F surfaces (i.e. 16-bit floating point). We haven't been able to support this until now, since there were no corresponding pixman image type. Now there is. Use the new 16f surfaces by default, when gamma-correct-blending=yes.
This commit is contained in:
parent
7354b94f73
commit
8faea42d9e
9 changed files with 88 additions and 25 deletions
|
|
@ -221,12 +221,13 @@ empty string to be set, but it must be quoted: *KEY=""*)
|
|||
font designer set the font weight based on incorrect rendering.
|
||||
|
||||
In order to represent colors faithfully, higher precision image
|
||||
buffers are required. By default, foot will use 10-bit color
|
||||
channels, if available, when gamma-correct blending is
|
||||
enabled. However, the high precision buffers are slow; if you want
|
||||
to use gamma-correct blending, but prefer speed (throughput and
|
||||
input latency) over accurate colors, you can force 8-bit color
|
||||
channels by setting *tweak.surface-bit-depth=8-bit*.
|
||||
buffers are required. By default, foot will use either 16-bit, or
|
||||
10-bit color channels, depending on availability, when
|
||||
gamma-correct blending is enabled. However, the high precision
|
||||
buffers are slow; if you want to use gamma-correct blending, but
|
||||
prefer speed (throughput and input latency) over accurate colors,
|
||||
you can force 8-bit color channels by setting
|
||||
*tweak.surface-bit-depth=8-bit*.
|
||||
|
||||
Default: _no_.
|
||||
|
||||
|
|
@ -2023,7 +2024,7 @@ any of these options.
|
|||
|
||||
*surface-bit-depth*
|
||||
Selects which RGB bit depth to use for image buffers. One of
|
||||
*auto*, *8-bit*, or *10-bit*.
|
||||
*auto*, *8-bit*, *10-bit*, or *16f-bit*.
|
||||
|
||||
*auto* chooses bit depth depending on other settings, and
|
||||
availability.
|
||||
|
|
@ -2033,13 +2034,16 @@ any of these options.
|
|||
|
||||
*10-bit* uses 10 bits for each RGB channel, and 2 bits for the
|
||||
alpha channel. Thus, it provides higher precision color channels,
|
||||
but a lower precision alpha channel. It is the default when
|
||||
*gamma-correct-blending=yes*, if supported by the compositor.
|
||||
but a lower precision alpha channel.
|
||||
|
||||
Note that *10-bit* is much slower than *8-bit*; if you want to use
|
||||
gamma-correct blending, and if you prefer speed (throughput and
|
||||
input latency) over accurate colors, you can set
|
||||
*surface-bit-depth=8-bit* explicitly.
|
||||
*16f-bit* uses 16 bits (floating point) for each color channel,
|
||||
alpha included. If available, this is the default when
|
||||
*gamma-correct-blending=yes*.
|
||||
|
||||
Note that both *10-bit* and *16f-bit* are much slower than
|
||||
*8-bit*; if you want to use gamma-correct blending, and if you
|
||||
prefer speed (throughput and input latency) over accurate colors,
|
||||
you can set *surface-bit-depth=8-bit* explicitly.
|
||||
|
||||
Default: _auto_
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue