summaryrefslogtreecommitdiff
path: root/source/ui
diff options
context:
space:
mode:
authorcirakg <cirakg@cirakg.xyz>2026-10-25 14:17:45 +0100
committercirakg <cirakg@cirakg.xyz>2026-10-25 14:17:45 +0100
commit140a6660f63f88d05ba9aae0bf1c4b401bb6574d (patch)
tree943cbc93931e7ecabd979895ee29440a2c81c552 /source/ui
parent67e7ce3d496c34a30ff498eaff2074543350318a (diff)
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 <noreply@anthropic.com>
Diffstat (limited to 'source/ui')
-rw-r--r--source/ui/CodeView.mc3
1 files changed, 3 insertions, 0 deletions
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));