OpenTPW

UI-060: Match graph pixel metrics#

Status and classification#

Verified backdrop contract#

Static inspection of the shared native setup and drawing helpers supersedes the old proposal's three-interior-line assumption. Setup 0x4806a0 supplies geometry and colors; grid routine 0x47fcd0 draws ten horizontal divisions and twelve labeled vertical spans.

Completed research comprised 106 static and synthetic assertions. The original executable was not run or emulated for this slice. Derived behavior and synthetic fixtures are publishable; original executable material and private investigation artifacts are not included.

Implementation and preserved behavior#

source/OpenTPW/UI/Original/GraphBackdrop.cs contains immutable bitmap geometry and the shared host draw adapter. Both ParkHud.FinanceWindow.cs and ParkHud.InfoGraph.cs consume it. The canonical UiApproximations.cs entry and the UI documentation describe the same remaining scope.

Finance retains all eight value mappings and colors, selected-series masks, zero-inclusive extrema, default bank balance, period/month selection, fractional series normalization, sampling and marker-before-line ordering. It maps its drawing area to the shared plot but does not snap series points onto integer backdrop coordinates. Park information retains Column/Row, ring selection, ScaleMaximum, SeriesPoints, series order, sample marks, dedicated rating and last-value text. No simulation or persistence code changes.

Host safety adaptations are explicit:

Tests and current evidence limits#

Added 69 C# test cases cover the pure bitmap contract and the actual graph controls using synthetic glyphs and independent CPU-batch expectations:

The C# tests and the ten Python source-integration and synthetic-arithmetic checks run in CI; the post-merge review ran the full with-data suite (8788 passed).

Remaining qualification and ownership#

UI-060 remains open for original display-mode/host pixel calibration, financial sample-to-month correspondence and stretching of available months, font and palette handling, and actual raster/composited-output fidelity. A rendered host check must still inspect clipping/overlap and opaque green-on-black output in both windows; that check alone would not prove native parity.

UI-914 retained ownership of park-information history and its other presentation residuals at this proposal's time; it was retired in round 11 J (docs/UI.md). Existing UI #433 and languages #423 remain baseline work. The implementation kept the same UI-060 ID rather than creating another owner or another approximation ID; the residual ID is not retired by the backdrop change.

Source: docs/proposals/ui-060-match-graph-pixel-metrics.md in the project repository.