Skip to content

Minecraft: Java Edition 26.3 rewritten from scratch in Rust, checked against vanilla with 281 differential harnesses. Get it with the Horizon launcher.

Graphics: a Translucent Batching switch, on by default

NerfPhaselock89c7d5896752
diff --git a/crates/horizon-client-render/src/graphics.rs b/crates/horizon-client-render/src/graphics.rs
index 4edbec8bb..dce3f75d9 100644
--- a/crates/horizon-client-render/src/graphics.rs
+++ b/crates/horizon-client-render/src/graphics.rs
@@ -456,7 +456,7 @@ static TRANSLUCENT_BATCHING_OFFERED: std::sync::atomic::AtomicBool =
/// Whether the device can batch translucent quads (`Graphics::translucent_batching`): set when
/// the renderer starts; not without indirect multi-draw or on OpenGL, which loops over a
/// multi-draw's entries on the CPU, nor where vanilla frames draw flat (they read the section
-/// arena's translucent quads).
+/// arena's translucent quads). Where it can't, the settings grey its switch out.
pub fn offer_translucent_batching(on: bool) {
TRANSLUCENT_BATCHING_OFFERED.store(on, std::sync::atomic::Ordering::Relaxed);
}
@@ -601,9 +601,11 @@ pub struct Graphics {
/// The graphics API (Windows only; see `GraphicsApi`).
pub api: GraphicsApi,
/// Translucent quads in vertex buffers of their own (`gfx`'s translucent arena), so their
- /// back-to-front draws go out in a few calls, for a little more video memory. Off by
- /// default for now; read when a renderer is made (start, resource-pack reload), where it is
- /// offered (`translucent_batching_offered`).
+ /// back-to-front draws go out in a few calls, for a little more video memory. On by
+ /// default (Translucent Batching, Advanced graphics); read when a renderer is made (start,
+ /// resource-pack reload), where it is offered (`translucent_batching_offered`). Its key is
+ /// `batchTranslucent`: `translucentBatching`, which every save wrote as false while it was
+ /// off by default and had no switch, stays ignored.
pub translucent_batching: bool,
/// The shader pack picked in `shaderpacks/` (`shader_pack_list`); empty: none. Its key is
/// not `shaderPack`, which versions before the clean-room rewrite saved and which stays
@@ -646,7 +648,7 @@ impl Default for Graphics {
battery: false,
shadow_cache: false,
api: GraphicsApi::Auto,
- translucent_batching: false,
+ translucent_batching: true,
shader_pack: String::new(),
}
}
@@ -739,7 +741,7 @@ impl Graphics {
"hdrKey" if value.starts_with("key.") => g.hdr_key = value.to_owned(),
"batteryMode" => g.battery = flag(g.battery),
"shadowCache" => g.shadow_cache = flag(g.shadow_cache),
- "translucentBatching" => g.translucent_batching = flag(g.translucent_batching),
+ "batchTranslucent" => g.translucent_batching = flag(g.translucent_batching),
"graphicsApi" => g.api = GraphicsApi::from_name(value).unwrap_or_default(),
"pickedShaderPack" => g.shader_pack = value.to_owned(),
"overlay" => {
@@ -756,7 +758,7 @@ impl Graphics {
}
pub fn serialize(&self) -> String {
format!(
- "preset:{}\nlodDistance:{}\nfarDetail:{}\ncaveCulling:{}\nentityCulling:{}\nleafCulling:{}\nchunkUpdates:{}\nuploadBudgetKiB:{}\ntextureBudgetMiB:{}\nsky:{}\nfog:{}\nweather:{}\nanimatedTextures:{}\nditherCutoutMips:{}\npresentMode:{}\nframePacing:{}\nworkers:{}\noverlay:{}\nresolutionScale:{}\nfxaa:{}\ntaa:{}\nupscaling:{}\nscreenshotQuality:{}\nframeGeneration:{}\nhdr:{}\nhdrPaperWhite:{}\nhdrPeak:{}\nhdrBlackLevel:{}\nhdrUiBrightness:{}\nhdrKey:{}\nbatteryMode:{}\nshadowCache:{}\ngraphicsApi:{}\npickedShaderPack:{}\ntranslucentBatching:{}\n",
+ "preset:{}\nlodDistance:{}\nfarDetail:{}\ncaveCulling:{}\nentityCulling:{}\nleafCulling:{}\nchunkUpdates:{}\nuploadBudgetKiB:{}\ntextureBudgetMiB:{}\nsky:{}\nfog:{}\nweather:{}\nanimatedTextures:{}\nditherCutoutMips:{}\npresentMode:{}\nframePacing:{}\nworkers:{}\noverlay:{}\nresolutionScale:{}\nfxaa:{}\ntaa:{}\nupscaling:{}\nscreenshotQuality:{}\nframeGeneration:{}\nhdr:{}\nhdrPaperWhite:{}\nhdrPeak:{}\nhdrBlackLevel:{}\nhdrUiBrightness:{}\nhdrKey:{}\nbatteryMode:{}\nshadowCache:{}\ngraphicsApi:{}\npickedShaderPack:{}\nbatchTranslucent:{}\n",
self.preset.name(),
self.lod_distance,
self.far_detail.name(),
@@ -948,7 +950,7 @@ mod tests {
battery: true,
shadow_cache: true,
api: GraphicsApi::Dx12,
- translucent_batching: true,
+ translucent_batching: false,
shader_pack: "Golden Hour".into(),
};
assert_eq!(Graphics::parse(&g.serialize()), g);
@@ -968,8 +970,12 @@ mod tests {
EntityCullingMode::Off
);
assert_eq!(Graphics::parse(""), Graphics::default());
- // Translucent Batching is opt-in for now: only the file turns it on.
- assert!(!Graphics::default().translucent_batching);
+ // Translucent Batching is on, in files from before it too; only false turns it off,
+ // and only under its key: the old one held the false every save wrote while it was
+ // off by default, not a choice.
+ assert!(Graphics::default().translucent_batching);
+ assert!(!Graphics::parse("batchTranslucent:false\n").translucent_batching);
+ assert!(Graphics::parse("translucentBatching:false\n").translucent_batching);
// 0 is Auto; anything else is a peak the slider reaches.
assert_eq!(Graphics::parse("hdrPeak:0\n").hdr_peak, 0);
assert_eq!(Graphics::parse("hdrPeak:50\n").hdr_peak, 200);
diff --git a/crates/horizon-client-render/src/graphics_style.rs b/crates/horizon-client-render/src/graphics_style.rs
index eb7430979..22bc24abb 100644
--- a/crates/horizon-client-render/src/graphics_style.rs
+++ b/crates/horizon-client-render/src/graphics_style.rs
@@ -15,7 +15,7 @@ pub enum Cost {
Low,
Medium,
High,
- /// Turning it on makes frames faster (culling).
+ /// Turning it on makes frames faster (culling, caching, batching).
Saves,
}
impl Cost {
diff --git a/crates/horizon-client-render/src/graphics_ui.rs b/crates/horizon-client-render/src/graphics_ui.rs
index afc154001..1432ff07c 100644
--- a/crates/horizon-client-render/src/graphics_ui.rs
+++ b/crates/horizon-client-render/src/graphics_ui.rs
@@ -61,6 +61,7 @@ pub enum H {
BatteryMode,
ShadowCache,
GraphicsApi,
+ TranslucentBatching,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
@@ -357,6 +358,11 @@ pub fn rows(level: Level) -> Vec<Row> {
None,
"Vulkan, then DirectX 12 (Windows) or OpenGL (Linux) where it fails. Next start.",
),
+ h(
+ H::TranslucentBatching,
+ Saves,
+ "Water and glass in one buffer: fewer draw calls, a bit more VRAM. Next start.",
+ ),
h(
H::UploadBudget,
Low,
@@ -370,11 +376,13 @@ pub fn rows(level: Level) -> Vec<Row> {
),
],
};
- // Only Windows and Linux have more than one graphics API.
+ // Only Windows and Linux have more than one graphics API, and translucent batching
+ // (Metal draws flat).
if cfg!(target_os = "macos") {
- rows.retain(
- |row| !matches!(row, Row::Setting(s) if s.item == Item::Horizon(H::GraphicsApi)),
- );
+ rows.retain(|row| {
+ !matches!(row, Row::Setting(s)
+ if matches!(s.item, Item::Horizon(H::GraphicsApi | H::TranslucentBatching)))
+ });
}
rows
}
@@ -623,6 +631,12 @@ impl H {
H::BatteryMode => labelled("Battery Mode", on_off(g.battery)),
H::ShadowCache => labelled("Shadow Cache", on_off(g.shadow_cache)),
H::GraphicsApi => labelled("Graphics API", g.api.label()),
+ // Greyed out where the device can't (`Item::blocked`): Off, as it is there,
+ // while the saved value waits for a device that can.
+ H::TranslucentBatching => labelled(
+ "Translucent Batching",
+ on_off(g.translucent_batching && crate::graphics::translucent_batching_offered()),
+ ),
H::Overlay => labelled(
"Performance Overlay",
match g.overlay {
@@ -718,6 +732,7 @@ impl H {
H::BatteryMode => g.battery = !g.battery,
H::ShadowCache => g.shadow_cache = !g.shadow_cache,
H::GraphicsApi => g.api = step(GraphicsApi::choices(), g.api, back),
+ H::TranslucentBatching => g.translucent_batching = !g.translucent_batching,
H::Pacing => {
g.pacing = match g.pacing {
Pacing::Efficient => Pacing::Precise,
@@ -748,7 +763,8 @@ impl Item {
/// the display offers HDR output, whatever `horizon-graphics.txt` says (a copied game
/// folder, a display swapped for an SDR one: the renderer leaves HDR off there, and
/// the saved values wait for an HDR display), and its sliders do something only
- /// while it is on.
+ /// while it is on; Translucent Batching switches only where the device can batch
+ /// (`graphics::translucent_batching_offered`), its saved value waiting for one that can.
fn blocked(self, s: &Settings) -> Option<&'static str> {
if !self.available() {
return Some("This feature is not yet available in Horizon.");
@@ -764,6 +780,11 @@ impl Item {
| H::HdrPaperWhite
| H::HdrUiBrightness,
) if !s.horizon.hdr => Some("Turn HDR on to use it."),
+ Item::Horizon(H::TranslucentBatching)
+ if !crate::graphics::translucent_batching_offered() =>
+ {
+ Some("Your GPU or graphics API doesn't support it.")
+ }
_ => None,
}
}
@@ -780,6 +801,7 @@ impl Item {
Item::Horizon(H::Hdr) => g.hdr,
Item::Horizon(H::BatteryMode) => g.battery,
Item::Horizon(H::ShadowCache) => g.shadow_cache,
+ Item::Horizon(H::TranslucentBatching) => g.translucent_batching,
Item::Vanilla(Opt::ViewBobbing) => s.view_bobbing,
Item::Vanilla(Opt::Vsync) => s.vsync,
Item::Vanilla(Opt::Fullscreen) => s.fullscreen,
@@ -843,6 +865,7 @@ impl Item {
| H::BatteryMode
| H::ShadowCache
| H::GraphicsApi
+ | H::TranslucentBatching
) | Item::Vanilla(
Opt::GuiScale
| Opt::Fullscreen
@@ -1468,6 +1491,12 @@ impl GraphicsUi {
&& let Some(target) = self.focus
{
match target {
+ // A click focuses the greyed row; Enter there does nothing, as the click didn't.
+ Target::Item(item @ Item::Horizon(H::TranslucentBatching))
+ if item.blocked(s).is_some() =>
+ {
+ return (Vec::new(), true);
+ }
Target::Item(item) => {
if item.slider(s).is_some() {
self.can_change_value = !self.can_change_value;
@@ -1986,6 +2015,66 @@ mod tests {
assert_eq!(item.label(&s).plain(), "Entity Culling: Asynchronous");
}
+ /// Translucent Batching: a switch on Advanced (not Simple), on by default, no part of a
+ /// preset, and greyed out, reading Off, where the device can't batch.
+ #[test]
+ fn translucent_batching_is_an_advanced_switch_where_the_device_can() {
+ use winit::keyboard::KeyCode as K;
+ let item = Item::Horizon(H::TranslucentBatching);
+ let has = |level| {
+ rows(level)
+ .iter()
+ .any(|r| matches!(r, Row::Setting(x) if x.item == item))
+ };
+ if cfg!(target_os = "macos") {
+ // Metal draws flat: never offered, so not shown.
+ assert!(!has(Level::Advanced));
+ return;
+ }
+ assert!(has(Level::Advanced) && !has(Level::Simple));
+ let mut s = Settings::default();
+ s.horizon.preset = Preset::Balanced;
+ assert_eq!(item.switch(&s), Some(true));
+ let mut ui = GraphicsUi::default();
+ let size = (480.0, 2000.0);
+ let (widgets, _, _) = ui.layout(Level::Advanced, &s, size.0, size.1);
+ let w = widgets
+ .iter()
+ .find(|w| w.target == Target::Item(item))
+ .unwrap();
+ let point = (w.x + 1.0, w.y + 1.0);
+ let click = |ui: &mut GraphicsUi, s: &mut Settings| {
+ ui.click(Level::Advanced, s, point, size, [480, 2000], false, false)
+ };
+ // Where the device can't, the saved On reads Off, and neither a click nor Enter
+ // after it (the click focuses the row) does anything: no sound, no change, no save.
+ crate::graphics::offer_translucent_batching(false);
+ assert!(item.blocked(&s).is_some());
+ assert_eq!(item.label(&s).plain(), "Translucent Batching: Off");
+ assert!(click(&mut ui, &mut s).is_empty());
+ let enter = ui.key_modifiers(Level::Advanced, &mut s, K::Enter, false, size, [480, 2000]);
+ assert!(enter.0.is_empty());
+ assert!(s.horizon.translucent_batching);
+ // Where it can, a click switches it and keeps the preset.
+ crate::graphics::offer_translucent_batching(true);
+ assert_eq!(item.label(&s).plain(), "Translucent Batching: On");
+ assert_eq!(
+ click(&mut ui, &mut s),
+ [Action::ButtonClick, Action::Changed]
+ );
+ assert!(!s.horizon.translucent_batching);
+ assert_eq!(item.label(&s).plain(), "Translucent Batching: Off");
+ assert_eq!(s.horizon.preset, Preset::Balanced);
+ // No preset sets it.
+ for on in [false, true] {
+ s.horizon.translucent_batching = on;
+ for preset in Preset::ALL {
+ crate::graphics::apply_preset(preset, &mut s);
+ assert_eq!(s.horizon.translucent_batching, on, "{preset:?}");
+ }
+ }
+ }
+
#[test]
fn graphics_slider_keyboard_navigation_and_selection_toggle_parity() {
use winit::keyboard::KeyCode as K;
diff --git a/crates/horizon-client/assets/horizon/lang/en_us.json b/crates/horizon-client/assets/horizon/lang/en_us.json
index bdd8bc82a..9cd6fe524 100644
--- a/crates/horizon-client/assets/horizon/lang/en_us.json
+++ b/crates/horizon-client/assets/horizon/lang/en_us.json
@@ -99,6 +99,7 @@
"UI Brightness": "UI Brightness",
"Battery Mode": "Battery Mode",
"Graphics API": "Graphics API",
+ "Translucent Batching": "Translucent Batching",
"Performance Overlay": "Performance Overlay",
"Full Detail Distance": "Full Detail Distance",
"On": "On",
@@ -146,6 +147,7 @@
"This feature is not yet available in Horizon.": "This feature is not yet available in Horizon.",
"Your display or system doesn't offer HDR output.": "Your display or system doesn't offer HDR output.",
"Turn HDR on to use it.": "Turn HDR on to use it.",
+ "Your GPU or graphics API doesn't support it.": "Your GPU or graphics API doesn't support it.",
"%s chunks": "%s chunks",
"%s per frame": "%s per frame",
"%s MiB/frame": "%s MiB/frame",
@@ -205,6 +207,7 @@
"60 FPS cap (30 in menus or unfocused), half the workers: less power.": "60 FPS cap (30 in menus or unfocused), half the workers: less power.",
"Threads that generate, light and mesh chunks. Next start.": "Threads that generate, light and mesh chunks. Next start.",
"Vulkan, then DirectX 12 (Windows) or OpenGL (Linux) where it fails. Next start.": "Vulkan, then DirectX 12 (Windows) or OpenGL (Linux) where it fails. Next start.",
+ "Water and glass in one buffer: fewer draw calls, a bit more VRAM. Next start.": "Water and glass in one buffer: fewer draw calls, a bit more VRAM. Next start.",
"Mesh data sent to the GPU per frame. Lower is smoother while loading.": "Mesh data sent to the GPU per frame. Lower is smoother while loading.",
"Frame rate and frame times over the game, with a graph.": "Frame rate and frame times over the game, with a graph.",
"horizon.multiplayer.finding_friend": "Finding your friend's world...",
diff --git a/docs/graphics.md b/docs/graphics.md
index d6178d012..ca69afe30 100644
--- a/docs/graphics.md
+++ b/docs/graphics.md
@@ -9,7 +9,7 @@ Horizon's graphics settings are two screens built from vanilla's widgets, opened
Vanilla's own settings (render distance, FOV, framerate, VSync, GUI scale, smooth lighting...) stay where vanilla has them, in Video Settings; both screens leave them out.
-Every row has a one-line description and its cost in frame time (none, low, medium, high, or saves time for culling that makes frames faster), and applies at once, except worker threads, which apply at the next start. A preset sets the quality settings together; changing one of them turns it into Custom. Display preferences (FOV, framerate, VSync, GUI scale, fullscreen, present mode, pacing) leave the preset as it is.
+Every row has a one-line description and its cost in frame time (none, low, medium, high, or saves time for settings that make frames faster), and applies at once, except worker threads, the graphics API and translucent batching, which apply at the next start. A preset sets the quality settings together; changing one of them turns it into Custom. Display preferences (FOV, framerate, VSync, GUI scale, fullscreen, present mode, pacing) leave the preset as it is.
![Video Settings, with Horizon's buttons at the top](media/settings-simple.png)
![Advanced Graphics](media/settings-advanced.png)
@@ -24,7 +24,7 @@ Every row has a one-line description and its cost in frame time (none, low, medi
| Display | FOV, max framerate, VSync, fullscreen, GUI scale | `options.txt` |
| | resolution scale, anti-aliasing (FXAA or TAA), TAA upscaling, frame generation, present mode, frame pacing | `horizon-graphics.txt` |
| HDR (its own screen, from Display) | HDR, black level, peak brightness, paper white, UI brightness, a shortcut key to the screen | `horizon-graphics.txt` |
-| Performance | battery mode, worker threads, upload budget per frame | `horizon-graphics.txt` |
+| Performance | battery mode, shadow cache, worker threads, graphics API, translucent batching, upload budget per frame | `horizon-graphics.txt` |
| Overlay | performance overlay: FPS, frame/CPU/GPU times, frame-time graph | `horizon-graphics.txt` |
`options.txt` keeps exactly vanilla's keys and values, so the options harness still compares it with vanilla; Horizon's settings live in `horizon-graphics.txt` beside it. Their defaults render as vanilla does: cave culling on, entity and leaf culling off, no upload budgets, sky, fog and weather on, 100% resolution, no anti-aliasing, HDR off, the present mode following VSync. VSync on always waits for the display (Fifo), in a window and in fullscreen, as in vanilla; the present mode setting chooses how frames are shown only while VSync is off. Frame pacing defaults to Efficient: the limiter sleeps through the last half millisecond where vanilla spins, which changes timing, not pixels.
@@ -33,7 +33,7 @@ Every row has a one-line description and its cost in frame time (none, low, medi
**Battery mode** (Performance, off by default) is for laptops and handhelds: at most 60 frames per second in a world, 30 in menus without a world or while another window has focus, and half the automatic worker threads (chunks load slower). It changes only when frames are drawn: what they show and the game's 20 ticks per second stay as they are.
-**Translucent batching** (only in the file for now: `translucentBatching` in `horizon-graphics.txt`, off by default; edit it with the game closed, it applies at the next start) gives water, glass, ice and other translucent quads a vertex buffer of their own, with pages up to 2 GiB, and their sorted indices the same: the back-to-front list then stays in one page and goes out in a few draw calls instead of switching pages every few sections. The picture is the same; it costs a little video memory, as solid and translucent quads no longer share free space. The large pages shrink once the view has settled (a second after terrain stops arriving): one much larger than what it holds, as after a teleport or a lower render distance, moves into a page of the right size, about 32 MiB a frame. It needs indirect multi-draw that isn't OpenGL's (which loops over the entries on the CPU), and devices whose vanilla frames draw flat (Metal, Intel Gen11 and Gen12 on Vulkan) don't offer it. A `shaders/` pack's terrain and shadow passes, and the `[shadow]` pass of one of Horizon's own packs, draw flat where the device can, reading translucent quads beside their section's solid ones: while such a pack runs they go back there. Such a pack picked at the start has the world laid out for it from the first; switching to or from one later meshes the world again.
+**Translucent batching** (Performance, after Graphics API; on by default, `batchTranslucent` in `horizon-graphics.txt`, a new key so that the `translucentBatching:false` earlier builds saved for everyone doesn't keep it off; it applies at the next start or resource reload, and is no part of a preset) gives water, glass, ice and other translucent quads a vertex buffer of their own, with pages up to 2 GiB, and their sorted indices the same: the back-to-front list then stays in one page and goes out in a few draw calls instead of switching pages every few sections. The picture is the same and frames come faster, most over water and at high render distances (RTX 4090 at 1080p: 4 to 16% more FPS at render distance 32; over the ocean at 64, 354 draw calls a frame instead of 3,832 and 43% more FPS); it costs a little video memory, as solid and translucent quads no longer share free space (terrain meshes take 1 to 15% more at render distance 32, 5 to 10% more at 64). The large pages shrink once the view has settled (a second after terrain stops arriving): one much larger than what it holds, as after a teleport or a lower render distance, moves into a page of the right size, about 32 MiB a frame. It needs indirect multi-draw that isn't OpenGL's (which loops over the entries on the CPU), and devices whose vanilla frames draw flat (Metal, Intel Gen11 and Gen12 on Vulkan) don't offer it: there the switch is greyed out and reads Off, and macOS doesn't show it. A `shaders/` pack's terrain and shadow passes, and the `[shadow]` pass of one of Horizon's own packs, draw flat where the device can, reading translucent quads beside their section's solid ones: while such a pack runs they go back there. Such a pack picked at the start has the world laid out for it from the first; switching to or from one later meshes the world again.
**HDR** (off by default) lives on its own screen, Graphics: HDR, behind **HDR Settings...** under Display, which is greyed where the display path offers no HDR output (so players without an HDR display don't take its settings for their display's); there the switch comes first and the sliders below it only while it is on. It presents to an HDR10 swapchain (`Rgb10a2Unorm`, BT.2020 with the PQ curve) or, where only that is offered, an scRGB one (`Rgba16Float`, extended linear sRGB), on displays and compositors that offer either; `HORIZON_HDR_OUTPUT=pq` or `scrgb` allows only one. The frame is drawn exactly as in SDR, in vanilla's gamma space, and a last pass (`hdr.wgsl`) decodes it to linear light at the **Paper White** and lifts light sources (blocks that emit light, lava, the sun and the moon) towards the **Peak Brightness**; everything else stays as in SDR. The mesher puts the light a block's face emits in its vertex colour's alpha (`EMISSION_BITS`), the frame's alpha carries the mark, and only pixels that still show the world before the hand and HUD are lifted. On Vulkan, `horizon-hdr` sends HDR metadata (MaxCLL, mastering luminance), which wgpu doesn't: without it a compositor may clip everything above SDR white. Paper White and Peak Brightness are **Auto** by default: they follow what the system reports for the display. On Wayland that's the compositor's preferred image description of the window (`wp_color_management_v1`, in `horizon-hdr`'s `wayland.rs`), asked and then watched while HDR output is on (with HDR off the game doesn't ask), so a move to another output or a recalibrated desktop applies at once. KWin maps the content's reference white (203 nits) onto the desktop's SDR white, so Auto puts Paper White at 203 and Peak Brightness at the display's peak over that ratio; Hyprland (0.57) doesn't: it reports the standard 203 as reference white, so Auto puts Paper White at 203, and it shows HDR windows below its own SDR white (`sdr_max_luminance`, which it doesn't report): in a test, a white browser page was brighter than both the game's white and a 1000-nit patch in mpv. Other compositors are unchecked. On Windows Auto takes what wgpu reads from the OS (`Surface::display_hdr_info`: DXGI's `MaxLuminance` and the SDR white level of Windows' SDR content brightness slider, both absolute nits), read again every 2 seconds since no event says they changed; these often come from the display's EDID and may run optimistic, and this is untested so far. **Calibrate...** (`hdr_calibration.rs`) sets Black Level, Peak Brightness and Paper White full screen, one test picture at a time, drawn by the last pass straight in nits above a band of controls: Horizon's logo at the slider on black, lowered until it disappears; the logo at the slider inside a tenth of the screen at 10 000 nits (small, so the display doesn't dim), raised until it disappears; a white card, set to a white that's comfortable in the light the player plays in. Save writes the three, Cancel or Escape keeps what was set, and a step left untouched keeps Auto. The Peak step needs a path that doesn't tone-map: on KWin the logo never disappears, so where the system reports its values the button reads **Calibrate Anyway...** and says the display is already set up (**Use Automatic Setup** once they were changed by hand). Where nothing is reported, Auto is 203 and 1000 nits, and the Graphics: HDR screen asks the player to calibrate. **Black Level** (0 by default, for an OLED's true black) is the display's darkest black, in nits: the last pass lifts the shadows onto it with ITU-R BT.2390's black level lift in PQ, which leaves the peak where it is and fades out by the fourth power above black, and the metadata gives it as the minimum luminance; at 0 the picture is unchanged. **UI Brightness** (100% by default) sets the HUD and menus against paper white: once the world is kept for the last pass, the frame's alpha is zeroed, everything drawn after raises it where it covers the world, the first-person hand's is then scaled down to 1/255 (it stays at the world's brightness), and the last pass scales the rest by UI Brightness and lifts none of it (so text over the sun stays text). With HDR on, F2 writes vanilla's screenshot as always and an HDR10 copy beside it (`…-hdr.png`): the HDR pass drawn once more into a 10-bit PQ target, whatever the swapchain is, saved as a 16-bit PNG tagged BT.2020 with PQ (`cICP`, PNG's third edition) and the peak and paper white as content light levels (`cLLI`); viewers that read `cICP` show it in HDR, and others that honour its ICC profile (reference white at the profile's white) a correct SDR picture with clipped highlights. Not lifted yet: translucent blocks (the nether portal), distant LOD terrain.