feat(simulation): equilibrium hydrology solver prototype + bench (T-1177)

Priority-flood fill with basin grouping, topographic-saddle spill points,
moisture-governed endorheic classification (reuses the reserved
RIVER_DOWNSTREAM_TERMINAL sentinel), and Dijkstra overflow/carving. Pure
function of (elevation, sea_level, climate) — deterministic per D-010, no
stateful simulation. 15 unit tests incl. determinism proofs and direct
carving-mechanism verification; #[ignore]d release benches at 512x256 /
768x432 / 3840x2160 plus the 273-bodies-parallel production shape.

Workshop gate measurement (1) for body-map-viewer: settled hydrology is
VIABLE per body-open (~24 ms at 512x256; ~0.7-0.8 s all 273 bodies).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-23 19:22:28 +02:00
co-authored by Claude Fable 5
parent 77531a0eab
commit 05f9630cb4
3 changed files with 1283 additions and 0 deletions
File diff suppressed because it is too large Load Diff
+1
View File
@@ -23,6 +23,7 @@ pub mod drainage;
pub mod features;
pub mod gen_queue;
pub mod heightmap;
pub mod hydrology_equilibrium;
pub mod layer1;
pub mod layer_proxy;
pub mod mosaic;