From 0e53da09c7c608b4c38a037820f38b9630ea762f Mon Sep 17 00:00:00 2001 From: Shawn Date: Mon, 1 Jun 2026 22:59:00 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20barcode=20scan=20rate=2050ms=E2=86=92300?= =?UTF-8?q?ms=20=E2=80=94=20decoder=20was=20thrashing,=20missed=20barcodes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit delayBetweenScanAttempts was set to 50ms (20 scans/sec) but with TRY_HARDER enabled and 13 barcode formats configured, the ZXing decoder couldn't keep up — frames were skipped and barcodes visible in the viewfinder were never detected. 300ms gives each frame enough processing time while still feeling real-time. --- static/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/index.html b/static/index.html index d2b0fd8..53653f5 100644 --- a/static/index.html +++ b/static/index.html @@ -2851,7 +2851,9 @@ function _barcodeOptions() { return { - delayBetweenScanAttempts: 50, // scan every 50ms (was default ~500ms) + delayBetweenScanAttempts: 300, // scan every 300ms (was 50ms — too fast + // for TRY_HARDER with 13 formats, caused + // decoder thrashing and missed barcodes) delayBetweenScanSuccess: 2000, // 2s cooldown after a successful scan }; }