Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

docs(visual): promo-sea measurements, margins and frame time

eyalgolan55d1f58ccca0
diff --git a/docs/visual-v1.md b/docs/visual-v1.md
index cacb70feb..5c37b18e0 100644
--- a/docs/visual-v1.md
+++ b/docs/visual-v1.md
@@ -964,6 +964,54 @@ Final macOS player (SSAO, copies and bloom off):
macOS `-golden`, both builds: `GOLDEN OK 1950 71e9904d0ee48083db9bbba281f3f046136482ba83ee056e48d57b62e76a5b07`,
`GOLDEN OK 1952 73590e324f19e9959a455a4da79e93d7089dfcf283c13aac02af6b0a624b9767`.
+## promo-sea: water, surf and beach (art track, open item 3, issue #38)
+`ScWaterShade` (`StatecraftMap.hlsl`) is reworked on both sides of the edge, and a new `ScShore` paints the land's shore.
+- **Depth.** The map has no bathymetry (GLO-30 is a land model; its sea texels are 0 m), so depth is still the distance to
+ the shore from `coast.png`: turquoise shallows `ScShallowM` 2.6 km wide (edge wandering +-35% on a 3 km noise), teal,
+ then a muted steel blue by 12 km. Colours (sRGB, pre-grade): shallow (0.46, 0.68, 0.64), mid (0.29, 0.46, 0.53), deep
+ (0.22, 0.34, 0.47) (Task 7: (0.38, 0.74, 0.72), (0.13, 0.47, 0.58), (0.06, 0.24, 0.40)).
+- **Surf.** A swash line (full to 180 m) and breakers every 160 m rolling shoreward through a 900 m surf zone, broken
+ along the shore by a 300 m noise; the breakers fade to their mean once a pixel covers 40-100 m (footprint taken by the
+ callers outside the water branch, so derivatives stay in uniform control flow).
+- **Waves.** The 700 m swell plus a 170 m chop moving the other way, full under a 40 m footprint and gone by 170 m (the
+ overview averages it away); wave tilt 0.15 -> 0.28. Glint unchanged (0.06).
+- **Beach.** `ScShore`: a sand strip along the Mediterranean (above -100 m), 650 m on average (+-40% on a 4 km noise),
+ wet sand to 160 m, steep faces keep their rock; white salt flats along the Dead Sea (below -300 m). The width is
+ symbolic (the promo's beach), wider than the real 30-100 m strip and inside the coastal dune belt.
+- **Not done here.** Boats (owner: no civilian boats; navy ships are units on another track). Harbour water and piers at
+ Jaffa need geometry the settlement track owns. Issue #16 (1948 Dead Sea level, Lake Hula) is untouched.
+
+Measured (`tools/art_checkpoint.sh`, promo-sea-before at `0f13336` against promo-sea-after at `45a357e`; sea pixels =
+blue above red by 0.06, outside the bars and the minimap):
+
+| | before | after | promo |
+|---|---|---|---|
+| gameplay03 frame saturation / contrast / warmth / palette | 0.57 / 0.196 / 0.077 / 0.69 | 0.49 / 0.182 / 0.103 / 0.61 | 0.38 / 0.203 / 0.064 |
+| gameplay03 sea saturation, mean sRGB | 0.81, (19, 69, 96) | 0.56, (44, 77, 99) | 0.49, (52, 76, 97) |
+| diorama02 frame saturation / contrast / warmth / palette | 0.47 / 0.203 / 0.104 / 0.67 | 0.43 / 0.192 / 0.117 / 0.67 | 0.43 / 0.200 / 0.145 |
+| diorama02 sea saturation, mean sRGB | 0.66, (39, 81, 110) | 0.48, (62, 96, 117) | 0.47, (80, 119, 151) |
+
+diorama02 warmth stays in [0.087, 0.145] and saturation under 0.48. gameplay03 warmth moves away from the promo (0.077 ->
+0.103): the sea is less blue and the beach adds sand.
+
+`SeaTests` margins before -> after: foam over shallows (luma) 0.154 -> 0.217 (bound 0.02); shallows over the open sea
+0.345 -> 0.228 (0.05); Dead Sea over the Mediterranean 0.46 -> 0.32 (0.1); the diorama's open sea b - r 0.299 -> 0.231
+(0.15), haze luma shift 0.069 -> 0.048 (0.01); seam lines <= 0.001 (0.012). New: the open sea's pre-grade HSV
+saturation < 0.7 (0.91 -> 0.58); `ASandStripLinesTheMediterraneanShore` (red without `ScShore`: luma 0.65, b/g 0.58;
+green: 0.78, 0.67; bounds 0.72, 0.62). EditMode 458/458 before the new tests; GLES3 (`TheWaterShadersCompileForWebGL2`)
+passes and the WebGL build has no `Shader error`; web_check golden + smoke pass.
+
+Frame time (headless, on a loaded machine: load average 6-10 from other sessions, so every absolute is inflated; read
+the differences):
+- `PROFILE summary visual=all pose=gameplay03 runs=3 median_avg_ms=8.14 spread_ms=0.08 median_p95_ms=9.00`
+- `PROFILE summary visual=-water pose=gameplay03 runs=3 median_avg_ms=7.64 spread_ms=0.05 median_p95_ms=9.00`
+- `PROFILE summary visual=none pose=gameplay03 runs=3 median_avg_ms=7.39 spread_ms=0.06 median_p95_ms=9.00`
+- `PROFILE summary visual=all pose=diorama02 runs=3 median_avg_ms=13.77 spread_ms=0.32 median_p95_ms=15.00`
+- `PROFILE summary visual=-water pose=diorama02 runs=3 median_avg_ms=13.70 spread_ms=0.10 median_p95_ms=16.00`
+- `PROFILE summary visual=none pose=diorama02 runs=3 median_avg_ms=10.77 spread_ms=0.12 median_p95_ms=13.00`
+
+Water costs 0.50 ms at gameplay03 and 0.07 ms at diorama02 (budget 2.5 ms); p95 <= 16.7 ms at both poses.
+
## Open items for the art track
Each item below was ruled to the art track (controller, rank 10). None blocks landing the branch.
@@ -977,7 +1025,8 @@ Each item below was ruled to the art track (controller, rank 10). None blocks la
scale, 300-700 m) show long detached shadows, so they look as if they hover. Set the sun's shadow bias (depth and normal
bias) at kit scale: offsets of about 100-150 m at that texel. Do not just turn marker shadows off.
3. **Saturation of gameplay03 and warmth of diorama02.** gameplay03 saturation is +0.18 over promo 03, mostly the sea (0.83
- against 0.51) and the gold `hills` biome. Measure the `SeaTests` margins before any sea change. diorama02 warmth
+ against 0.51) and the gold `hills` biome. Sea part done in promo-sea (frame 0.57 -> 0.49, sea 0.81 -> 0.56); the
+ `hills` biome remains. Measure the `SeaTests` margins before any sea change. diorama02 warmth
(0.1038) sits near its 0.087 floor, so any sea desaturation must re-check it.
4. **Tilt-shift bottom band.** The bottom blurred band measures 17-22% of the frame against about 15% in the promo. It
awaits the owner's verdict on the offer `BottomHalfWidth` 0.16 / `BottomFeather` 0.19.