From 140a6660f63f88d05ba9aae0bf1c4b401bb6574d Mon Sep 17 00:00:00 2001 From: cirakg Date: Sun, 25 Oct 2026 14:17:45 +0100 Subject: fix(codes): encoding progress follows the work The QR percentage counted phases and the display froze at 90 % once encoding ended, so the first opening sat at 90 % while the slow stages ran. Each 2D symbology now weights its phases by measured cost, interpolates inside the long ones, and the display splits encode, pack and runs; a cached code counts its runs from 0. Co-Authored-By: Claude Opus 5.5 --- source/ui/CodeView.mc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/ui') diff --git a/source/ui/CodeView.mc b/source/ui/CodeView.mc index 20b9bf2..efa23d2 100644 --- a/source/ui/CodeView.mc +++ b/source/ui/CodeView.mc @@ -179,6 +179,9 @@ class CodeView extends WatchUi.View { _code = new Codes.CodeError(err != null ? err : "could not encode"); } else { var cache = job.cache; + var ms = job.stageMs; + Diag.data("matrix_stages", "type=" + header.type + " cached=" + (cache == null) + " encode_ms=" + ms[0] + + " pack_ms=" + ms[1] + " runs_ms=" + ms[2]); if (cache != null) { Diag.data("matrix_encoded", "type=" + header.type + " size=" + runs.width + "x" + runs.height + " ms=" + (System.getTimer() - _startedAt)); -- cgit v1.2.3