Repository navigation
Extract Thai renderer benchmark and visual verification tooling - #2
Closed
prasertsakd wants to merge 1 commit into
Closed
prasertsakd wants to merge 1 commit into
prasertsakd wants to merge 1 commit into
Conversation
This was referenced Oct 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.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.verify_thai_visualsand the hidden renderer bridge used by examples.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 warningspasses, including both examples. Before commit8f9bd0d3, full default-buildcargo xtask cipassed all ten stages (exit 0) withCARGO_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 tob076417b5880bd4154bd22f00695b1d28c6bea83.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.