From d767f4fdec8a81e2d03f16d5eb56c802deb7112c Mon Sep 17 00:00:00 2001 From: Marius Andra Date: Mon, 30 Nov 2026 02:35:24 +0100 Subject: [PATCH] docs: what 256 scenes cost the ESP32 image Co-Authored-By: Claude Opus 5.5 --- docs/esp32-image-size.md | 11 +++++++++++ docs/scene-switcher.md | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/docs/esp32-image-size.md b/docs/esp32-image-size.md index 081ff773f..ee126cab9 100644 --- a/docs/esp32-image-size.md +++ b/docs/esp32-image-size.md @@ -1844,3 +1844,14 @@ first version built the SVG as text and drew the tabs ringed and rounded: `screenLockSvg` +500 (where the pill goes), its strings +468. A lock alone, one more path in the SVG, would be a few hundred bytes. The words on the home screen are the Sticky layout's JavaScript: none of the image's. + +## 256 scenes (2026-11-30) + +A set of 256 scenes in 512 slot files, and the scene list built only near +the screen (embedded/esp32/README.md "How big a set may be", +docs/scene-switcher.md), measured against main (c597b26f0) by two local +builds of the 32 MB image: **+304 app bytes**, and **664 bytes less +internal RAM** (`used_diram`: the store's work arrays of one change left +`.bss` for a PSRAM block). The list's pieces +366 (`system/sceneSwitcher`), +the store's kept block +86, the scene store's origins +52 (a constant), and +`grouped` moving its entries instead of copying them -156 in `system.nim`. diff --git a/docs/scene-switcher.md b/docs/scene-switcher.md index 4f5988c45..6a274f572 100644 --- a/docs/scene-switcher.md +++ b/docs/scene-switcher.md @@ -452,5 +452,5 @@ color table and headings that flow with the cells: the firmware-size comment on that pull request (#940) is the number. Building only the pieces near the screen (2026-11-30) is a loop over the -pieces and a test per piece where the loop over the tiles was: the -firmware-size comment on its pull request is the number. +pieces and a test per piece where the loop over the tiles was: +366 bytes of +the module on the S3 image (docs/esp32-image-size.md "256 scenes").