From 6334b0ddbe0f60b1de08c107e95c941773395168 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Sat, 23 May 2026 09:26:01 +0200 Subject: [PATCH] =?UTF-8?q?docs(simulation):=20fix=20stale=202048=C3=97102?= =?UTF-8?q?4=20heightmap=20resolution=20in=20loader=20docstring=20(#963)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The heightmap.rs module docstring still said 'canonically 2048×1024' (the pre-decision figure); the canonical resolution is 1024×512 (D-202 amended). Clerk caught the contradiction. Now consistent across D-200/201/202/208 + code. Co-Authored-By: Claude Opus 4.7 (1M context) --- server/src/atlas/heightmap.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/server/src/atlas/heightmap.rs b/server/src/atlas/heightmap.rs index f45724997..daa76095f 100644 --- a/server/src/atlas/heightmap.rs +++ b/server/src/atlas/heightmap.rs @@ -4,11 +4,12 @@ //! **16-bit grayscale `heightmap.png`** stored next to the color `reliefmap.png` //! in the body's wiki directory (path from `bodies.terrain_reference`). The //! grayscale luminance is the normalized elevation; this is the single source -//! of truth — no `systems.db` BLOB. The file is high-resolution (canonically -//! 2048×1024) so the lower cascade layers (region/block/tile) have real local -//! detail; **Layer 1** (continental drainage/basins/mountain-ranges) calls -//! [`BodyHeightmap::downsample`] to `GRID_W × GRID_H` first, decoupling the -//! continental compute cost from the stored resolution. +//! of truth — no `systems.db` BLOB. The file is canonically 1024×512 (D-202 +//! amended): native elevation detail for the lower cascade layers +//! (region/block/tile), while **Layer 1** (continental drainage/basins/ +//! mountain-ranges) calls [`BodyHeightmap::downsample`] to the +//! `GRID_W × GRID_H = 512×256` working grid first, decoupling continental +//! compute cost from the stored resolution. //! //! Elevation values are normalized to [0.0, 1.0]. `sea_level` is body metadata //! (carried alongside, not in the PNG) below which terrain is ocean.