Skip to content

Extract Thai renderer benchmark and visual verification tooling - #2

Closed
prasertsakd wants to merge 1 commit into
codex/thai-cell-wrapping-currentfrom
codex/thai-verification-tooling
Closed

prasertsakd wants to merge 1 commit into
codex/thai-cell-wrapping-currentfrom
codex/thai-verification-tooling

Conversation

@prasertsakd

@prasertsakd prasertsakd commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Superseded by storytold/gridcraft#3010. The replacement is a standalone public-renderer tool against main, with a font-free Latin default, automatic measured-source verification and portable optional Thai/mixed fixtures. It does not require or duplicate the unmerged Thai core. This dependent proposal is closed; its branch and history remain available. The original extraction notes below are retained as historical evidence.


This separates the Thai renderer benchmark and visual verification tooling from upstream core PR storytold/gridcraft#2899. Its base is the repaired core branch codex/thai-cell-wrapping-current (b1bc3697) in this contributor fork, so this review shows only tooling. It can be submitted upstream against main after the core merges; it is not an additional main-based PR duplicating the core implementation.

  • Restore benchmark_thai_renderer: a synthetic 500-visible-cell workload with varied 80-scalar Thai-bearing strings, cold/warm samples, zoom/DPI configurations, readiness/geometry checks, counters and stress cases.
  • Restore verify_thai_visuals and the hidden renderer bridge used by examples.
  • Enable pass/fallback/cache diagnostics only with thai-benchmark-diagnostics. Default builds omit the counter hooks. Hooks follow the repaired request flow and run after its Context/cache critical section.

The three tool files retain their previously reviewed source. Instrumentation is layered onto the repaired core; it does not restore the old cache implementation. The entire repaired Thai unit test module, portable font fixture, integration tests, isolated snapshot directories and Windows/save sources remain unchanged from the base. egui stays at GridCraft's 0.37.0 / fork revision 6d518fc799681571963842f95b55a6b68431b15a. No font assets are included.

Validation

With diagnostics enabled, Thai unit tests pass 30/30 and cargo clippy -p gridcraft-ui-egui --all-targets --features thai-benchmark-diagnostics -- -D warnings passes, including both examples. Before commit 8f9bd0d3, full default-build cargo xtask ci passed all ten stages (exit 0) with CARGO_INCREMENTAL=0. An earlier interrupted run and a retry with unresolved internal LLVM symbols at link time are retained in the local evidence; the complete non-incremental run passed without a source change. The default build also checks the examples with diagnostics off. External craft-fonts remains pinned to b076417b5880bd4154bd22f00695b1d28c6bea83.

No benchmark timings or new T0 comparison were collected for this extraction. Compilation and regression success do not establish a performance result. The earlier measurements disclosed in storytold#2899 remain tied to their original source manifests.

Existing tooling limits

The benchmark accepts revision/patch/manifest identity as arguments; that is not self-verification of measured source. Generate and independently verify a source inventory before/after building and measurement. The summary formatter still has the historical f6b0 label and describes a candidate using HEAD alone, which is insufficient for an uncommitted merge candidate. Retained earlier reports corrected those labels externally without changing raw results. Review/fix that provenance presentation before relying on a newly generated summary as evidence; this extraction does not recertify earlier unverified historical runs.

Windows/save prerequisites are independently reviewed in storytold/gridcraft#2902. No upstream PR is merged by this split, and public history is preserved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant