Repository navigation
ESP32: a frame holds 256 scenes, and the scene list builds only what is near the screen - #1193
Conversation
…is near the screen Firmware: FOS_SCENE_STORE_SCENES 128 -> 256, FOS_SCENE_STORE_SLOTS 256 -> 512, FOS_SCENE_PIECES_MAX with them. What grew with the count went to PSRAM: the store's work arrays of one change (one kept block, no longer 1.5 KB of internal .bss), the boot's pick of a scene (no longer 2 KB on the main task's 8 KB stack) and a backend set's pieces. load_scene_index lets go of its cJSON tree before the runtime parses its copy of the catalog. A host test holds 256 entries that keep the most an entry may (469 KB of index) under the 512 KB every reader takes. Both planes: one table of tiers each (backend ESP32_SCENE_STORE_TIERS, cloud esp32SceneStoreTiers): 512 slots and 256 scenes from 2026.11.17, 256 and 128 from 2026.11.12, 32 before. The cloud's parts never hold more scenes than the board's firmware does (esp32SceneStoreScenesFor, passed by the hub); a backend says in the frame's log, once a set, that a board on older firmware was sent more scenes than it holds. A hardware report over 8 KB keeps its platform and drops only storage.sceneBytes (256 scenes' sizes are some 12 KB), on the hub and at enrollment; the backend keeps 256 sizes, not 64. Flasher: the most scenes follows the release it writes (standaloneMaxScenes, from the firmware listing): 256 from 2026.11.17, 128 before and until the listing is in. The scene list: built in pieces of eight tiles, each a box at its place in the list and among its children; only the pieces in sight or a row away get their tiles, the rest stay empty boxes as tall as theirs, so the list scrolls as far, and a tile keeps its key while the list scrolls. With 256 scenes a 480x480 LCD builds 48 tiles, 349 nodes of 1,687. The UX bench (--sceneCount, now in the harness) measured opening it with 256 at 1.3 MB on the Sticky, 2.1 MB on the E1003 and 0.9 MB on the SenseCAP, where main peaked at 5.3, 5.3 and 4.4 MB; pictures the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ESP32 firmware sizeBuilt from 999d631 by this run; compared with the latest release v2026.11.16.
Breakdown by subsystem —
|
| Subsystem | This PR | v2026.11.16 | Δ |
|---|---|---|---|
| FrameOS core (Nim) | 1,240,674 | 1,200,070 | +40,604 (+3.4%) |
| QuickJS | 358,678 | 358,634 | +44 (+0.0%) |
| ESP-IDF misc | 305,752 | 179,429 | +126,323 (+70.4%) |
| Wi-Fi stack | 292,403 | 282,624 | +9,779 (+3.5%) |
| fos_* firmware shell (C) | 277,740 | 257,325 | +20,415 (+7.9%) |
| String pool (attributed to efuse) | 148,296 | 138,441 | +9,855 (+7.1%) |
| mbedTLS + certificates | 121,178 | 121,123 | +55 (+0.0%) |
| lwIP / HTTP / WebSocket | 120,032 | 120,539 | -507 (-0.4%) |
| Nim stdlib | 119,409 | 119,176 | +233 (+0.2%) |
| Storage (SPIFFS / FatFS / SD / NVS) | 88,691 | 88,579 | +112 (+0.1%) |
| Display drivers (C) | 86,291 | 85,466 | +825 (+1.0%) |
| libc / libm / newlib | 62,523 | 62,519 | +4 (+0.0%) |
| Embedded font | 61,135 | 61,135 | ±0 |
| FrameOS apps (Nim) | 56,113 | 56,049 | +64 (+0.1%) |
| Crypto (monocypher) | 18,957 | 18,957 | ±0 |
| Nim packages (chrono, zippy, chroma, qrgen, ...) | 18,293 | 18,237 | +56 (+0.3%) |
| Total mapped flash | 3,376,165 | 3,168,303 | +207,862 (+6.6%) |
Inside each subsystem
FrameOS core (Nim) — 1,240,674
| Part | This PR | v2026.11.16 | Δ |
|---|---|---|---|
pixie/src |
348,189 | 347,701 | +488 (+0.1%) |
frameos/js_runtime |
192,750 | 191,116 | +1,634 (+0.9%) |
frameos/utils |
166,302 | 166,060 | +242 (+0.1%) |
frameos/ui |
108,115 | 103,316 | +4,799 (+4.6%) |
frameos/interpreter.nim |
76,231 | 78,615 | -2,384 (-3.0%) |
system/sceneSettings |
58,921 | 48,900 | +10,021 (+20.5%) |
embedded_main.nim |
28,157 | 27,366 | +791 (+2.9%) |
frameos/event_loop.nim |
25,179 | 24,029 | +1,150 (+4.8%) |
frameos/input_state.nim |
24,395 | 16,792 | +7,603 (+45.3%) |
frameos/scene_compiler.nim |
24,246 | 24,182 | +64 (+0.3%) |
embedded_runtime.nim |
22,938 | 21,847 | +1,091 (+5.0%) |
system/sceneSwitcher |
21,110 | 19,525 | +1,585 (+8.1%) |
frameos_nim_glue.c.obj |
15,617 | 15,521 | +96 (+0.6%) |
frameos/single_scene_host.nim |
13,731 | 13,708 | +23 (+0.2%) |
lib/tz.nim |
9,141 | 9,157 | -16 (-0.2%) |
embedded_scene.nim |
7,905 | 7,961 | -56 (-0.7%) |
frameos/types.nim |
7,915 | 7,536 | +379 (+5.0%) |
frameos/planner.nim |
7,828 | 7,827 | +1 (+0.0%) |
frameos/scene_rhythm.nim |
7,320 | 7,313 | +7 (+0.1%) |
frameos/values.nim |
5,627 | 5,627 | ±0 |
frameos/apps.nim |
5,466 | 5,470 | -4 (-0.1%) |
frameos/keyboard_tables.nim |
5,020 | — | +5,020 |
frameos/spool.nim |
4,874 | 4,890 | -16 (-0.3%) |
frameos/render_probe.nim |
4,377 | 4,377 | ±0 |
frameos/events_gen.nim |
2,783 | 3,664 | -881 (-24.0%) |
fos_netguard.c.obj |
3,230 | 3,214 | +16 (+0.5%) |
patched/base64.nim |
2,968 | 2,968 | ±0 |
frameos/app_config.nim |
2,873 | 2,873 | ±0 |
frameos/cache_key.nim |
2,619 | — | +2,619 |
patched_chroma_names.nim |
2,374 | 2,374 | ±0 |
frameos/cursor_sprite.nim |
2,270 | — | +2,270 |
frameos/app_capabilities.nim |
2,121 | 2,121 | ±0 |
frameos/node_config.nim |
2,084 | 2,084 | ±0 |
frameos/screen_lock.nim |
2,056 | — | +2,056 |
fos_js_io.c.obj |
1,879 | 1,879 | ±0 |
frameos/event_map.nim |
1,843 | 1,839 | +4 (+0.2%) |
frameos/reboot_reason.nim |
1,808 | 1,808 | ±0 |
frameos/events.nim |
1,729 | 1,733 | -4 (-0.2%) |
frameos/refresh_interval.nim |
1,730 | 1,730 | ±0 |
frameos/layout_choice.nim |
1,717 | 1,705 | +12 (+0.7%) |
frameos/loading_mark.nim |
1,489 | 1,473 | +16 (+1.1%) |
frameos/render_scale.nim |
1,334 | 1,346 | -12 (-0.9%) |
frameos/tones.nim |
1,235 | — | +1,235 |
frameos/frame_service_keys.nim |
1,198 | 1,202 | -4 (-0.3%) |
fos_log_ring.c.obj |
1,157 | 1,157 | ±0 |
patched_dragonbox.nim |
750 | 750 | ±0 |
frameos/runtime_diagnostics.nim |
682 | 682 | ±0 |
frameos/keyboard_gen.nim |
572 | — | +572 |
frameos/panel_shape.nim |
481 | 489 | -8 (-1.6%) |
fos_rows.c.obj |
475 | 475 | ±0 |
fos_version.c.obj |
403 | 403 | ±0 |
frameos/scene_background.nim |
370 | 370 | ±0 |
frameos/frame_keys.nim |
369 | 369 | ±0 |
fos_table_probe.nim |
366 | 358 | +8 (+2.2%) |
frameos/full_screen.nim |
349 | 349 | ±0 |
frameos/scene_icon.nim |
305 | 297 | +8 (+2.7%) |
patched_md5.nim |
300 | 300 | ±0 |
fos_heap_walk.c.obj |
220 | 220 | ±0 |
frameos/event_log.nim |
207 | 207 | ±0 |
frameos/cursor_shape.nim |
186 | — | +186 |
frameos/channels.nim |
171 | 171 | ±0 |
frameos/frame_settings_hooks.nim |
170 | 170 | ±0 |
patched/assertions.nim |
170 | 170 | ±0 |
fos_oom_policy.c.obj |
90 | 90 | ±0 |
fos_log_backoff.c.obj |
88 | 88 | ±0 |
frameos/ids.nim |
62 | 62 | ±0 |
frameos/hal |
37 | 37 | ±0 |
frameos/retired_apps.nim |
— | 7 | -7 (-100.0%) |
QuickJS — 358,678
| Part | This PR | v2026.11.16 | Δ |
|---|---|---|---|
quickjs_hot.c.obj |
286,656 | 286,612 | +44 (+0.0%) |
libunicode.c.obj |
49,977 | 49,977 | ±0 |
libregexp.c.obj |
13,633 | 13,633 | ±0 |
dtoa.c.obj |
5,548 | 5,548 | ±0 |
cutils.c.obj |
2,087 | 2,087 | ±0 |
fos_qjs_glue.c.obj |
633 | 633 | ±0 |
fos_unicode_case.c.obj |
144 | 144 | ±0 |
ESP-IDF misc — 305,752
| Part | This PR | v2026.11.16 | Δ |
|---|---|---|---|
libbtdm_app.a |
64,924 | — | +64,924 |
libbt.a |
60,943 | — | +60,943 |
libesp_hw_support.a |
36,003 | 35,972 | +31 (+0.1%) |
libhal.a |
21,365 | 21,345 | +20 (+0.1%) |
libfreertos.a |
16,649 | 16,516 | +133 (+0.8%) |
libesp_system.a |
13,163 | 13,081 | +82 (+0.6%) |
libheap.a |
8,606 | 8,606 | ±0 |
libesp_driver_uart.a |
8,367 | 8,367 | ±0 |
libesp_driver_i2c.a |
8,251 | 8,239 | +12 (+0.1%) |
libesp_lcd.a |
7,523 | 7,455 | +68 (+0.9%) |
libesp_driver_spi.a |
7,193 | 7,249 | -56 (-0.8%) |
libjson.a |
5,500 | 5,432 | +68 (+1.3%) |
libesp_driver_gpio.a |
4,916 | 4,900 | +16 (+0.3%) |
liblog.a |
4,452 | 4,452 | ±0 |
libxtensa.a |
3,671 | 3,671 | ±0 |
libbootloader_support.a |
3,393 | 3,385 | +8 (+0.2%) |
libesp_driver_usb_serial_jtag.a |
3,046 | 3,046 | ±0 |
libesp_event.a |
2,971 | 2,971 | ±0 |
libesp_ringbuf.a |
2,930 | 2,930 | ±0 |
libesp_driver_ledc.a |
2,896 | 2,896 | ±0 |
libsoc.a |
2,648 | 2,648 | ±0 |
libesp_mm.a |
2,347 | 2,315 | +32 (+1.4%) |
libesp_rom.a |
2,329 | 2,329 | ±0 |
libapp_update.a |
2,291 | 2,299 | -8 (-0.3%) |
libesp_adc.a |
2,237 | 2,261 | -24 (-1.1%) |
libesp_timer.a |
2,214 | 2,140 | +74 (+3.5%) |
libesp_psram.a |
2,007 | 2,007 | ±0 |
libpthread.a |
1,349 | 1,349 | ±0 |
libesp_app_format.a |
499 | 499 | ±0 |
libxt_hal.a |
437 | 437 | ±0 |
libesp_security.a |
416 | 416 | ±0 |
libconsole.a |
166 | 166 | ±0 |
libesp_common.a |
26 | 26 | ±0 |
libesp_pm.a |
24 | 24 | ±0 |
Wi-Fi stack — 292,403
| Part | This PR | v2026.11.16 | Δ |
|---|---|---|---|
libnet80211.a |
136,641 | 136,597 | +44 (+0.0%) |
libpp.a |
61,922 | 61,942 | -20 (-0.0%) |
libwpa_supplicant.a |
42,757 | 42,753 | +4 (+0.0%) |
libphy.a |
34,032 | 33,955 | +77 (+0.2%) |
libcoexist.a |
5,588 | — | +5,588 |
libesp_wifi.a |
4,566 | 4,461 | +105 (+2.4%) |
libbtbb.a |
3,432 | — | +3,432 |
libesp_phy.a |
2,571 | 2,352 | +219 (+9.3%) |
libesp_coex.a |
608 | 278 | +330 (+118.7%) |
libcore.a |
283 | 283 | ±0 |
libespnow.a |
3 | 3 | ±0 |
fos_ firmware shell (C)* — 277,740
| Part | This PR | v2026.11.16 | Δ |
|---|---|---|---|
fos_client.c.obj |
32,392 | 32,338 | +54 (+0.2%) |
fos_cloud.c.obj |
23,998 | 22,955 | +1,043 (+4.5%) |
fos_http.c.obj |
23,672 | 23,375 | +297 (+1.3%) |
fos_console.c.obj |
17,867 | 17,217 | +650 (+3.8%) |
fos_scenes.c.obj |
15,626 | 15,232 | +394 (+2.6%) |
fos_settings.c.obj |
9,314 | 9,153 | +161 (+1.8%) |
fos_touch.c.obj |
9,046 | 8,741 | +305 (+3.5%) |
fos_bt.c.obj |
8,094 | — | +8,094 |
fos_scene_store.c.obj |
7,483 | 7,366 | +117 (+1.6%) |
fos_config.c.obj |
6,142 | 5,975 | +167 (+2.8%) |
fos_cloud_contract.c.obj |
5,826 | 5,774 | +52 (+0.9%) |
fos_ota.c.obj |
5,786 | 5,710 | +76 (+1.3%) |
fos_frame_settings.c.obj |
5,630 | 5,056 | +574 (+11.4%) |
fos_store.c.obj |
4,923 | 4,871 | +52 (+1.1%) |
fos_wifi.c.obj |
4,596 | 4,251 | +345 (+8.1%) |
fos_buttons.c.obj |
4,376 | 4,361 | +15 (+0.3%) |
fos_voice.c.obj |
4,294 | 4,246 | +48 (+1.1%) |
fos_printf.c.obj |
4,127 | 4,123 | +4 (+0.1%) |
fos_assets.c.obj |
3,545 | 3,362 | +183 (+5.4%) |
fos_panel_draw.c.obj |
3,530 | 3,530 | ±0 |
main.c.obj |
3,520 | 3,448 | +72 (+2.1%) |
setup_page.html.gz.S.obj |
3,505 | 3,505 | ±0 |
fos_board.c.obj |
3,199 | 3,195 | +4 (+0.1%) |
fos_codec.c.obj |
3,047 | 2,983 | +64 (+2.1%) |
fos_config_parse.c.obj |
2,964 | 2,972 | -8 (-0.3%) |
fos_schedule.c.obj |
2,960 | 2,814 | +146 (+5.2%) |
fos_events.c.obj |
2,887 | 2,827 | +60 (+2.1%) |
fos_assets_sd.c.obj |
2,649 | 2,534 | +115 (+4.5%) |
fos_sd_probe.c.obj |
2,624 | 2,624 | ±0 |
fos_animation.c.obj |
2,550 | 2,578 | -28 (-1.1%) |
fos_hid_report.c.obj |
2,435 | — | +2,435 |
fos_mic.c.obj |
2,352 | 2,352 | ±0 |
fos_rtc.c.obj |
2,310 | 2,310 | ±0 |
fos_assets_flash.c.obj |
2,227 | 2,227 | ±0 |
fos_motion.c.obj |
2,188 | — | +2,188 |
fos_buzzer.c.obj |
2,173 | 2,047 | +126 (+6.2%) |
fos_i2c.c.obj |
2,066 | 2,039 | +27 (+1.3%) |
fos_scene_state.c.obj |
2,050 | 2,050 | ±0 |
fos_code.c.obj |
1,780 | 1,780 | ±0 |
fos_sscanf.c.obj |
1,585 | 1,585 | ±0 |
fos_url_guard.c.obj |
1,371 | 1,371 | ±0 |
fos_imu.c.obj |
1,302 | 315 | +987 (+313.3%) |
fos_commands.c.obj |
1,284 | 1,284 | ±0 |
fos_backend_http.c.obj |
1,245 | 1,245 | ±0 |
fos_voice_binding.c.obj |
1,182 | 1,131 | +51 (+4.5%) |
fos_scene_pieces.c.obj |
1,175 | 1,169 | +6 (+0.5%) |
fos_store_scan.c.obj |
1,159 | 1,159 | ±0 |
fos_led.c.obj |
1,156 | 1,141 | +15 (+1.3%) |
fos_tz.c.obj |
1,145 | 1,145 | ±0 |
fos_minisig.c.obj |
1,046 | 1,046 | ±0 |
fos_battery.c.obj |
1,023 | 976 | +47 (+4.8%) |
fos_lan_access.c.obj |
946 | 946 | ±0 |
fos_render_pull.c.obj |
936 | 936 | ±0 |
fos_wake.c.obj |
919 | 919 | ±0 |
fos_scene_meta.c.obj |
862 | 862 | ±0 |
fos_status_screen.c.obj |
837 | 837 | ±0 |
fos_gauge.c.obj |
813 | 813 | ±0 |
fos_sd_diskio.c.obj |
718 | — | +718 |
fos_assets_path.c.obj |
533 | 533 | ±0 |
fos_framebuffer.c.obj |
512 | 512 | ±0 |
fos_button_timing.c.obj |
485 | 485 | ±0 |
fos_charger.c.obj |
453 | 453 | ±0 |
fos_render_relay.c.obj |
445 | 445 | ±0 |
fos_ota_download.c.obj |
436 | 436 | ±0 |
fos_tone.c.obj |
431 | — | +431 |
fos_spiffs_gc.c.obj |
409 | 375 | +34 (+9.1%) |
fos_slot_cache.c.obj |
358 | 358 | ±0 |
fos_press.c.obj |
310 | 310 | ±0 |
fos_rotation.c.obj |
294 | — | +294 |
fos_climate.c.obj |
293 | 293 | ±0 |
fos_power.c.obj |
289 | 289 | ±0 |
fos_json_guard.c.obj |
265 | 265 | ±0 |
fos_restart.c.obj |
227 | 227 | ±0 |
fos_battery_filter.c.obj |
211 | 211 | ±0 |
fos_http_body.c.obj |
190 | 190 | ±0 |
fos_boot_scene.c.obj |
189 | 189 | ±0 |
fos_tls_dates.c.obj |
185 | 185 | ±0 |
fos_wifi_networks.c.obj |
176 | 176 | ±0 |
fos_tls.c.obj |
147 | 147 | ±0 |
fos_voice_hold.c.obj |
134 | 134 | ±0 |
fos_spiffs_footprint.c.obj |
82 | 82 | ±0 |
fos_cpu.c.obj |
73 | 73 | ±0 |
fos_usb_pads.c.obj |
65 | 65 | ±0 |
fos_usj_attach.c.obj |
58 | 58 | ±0 |
fos_cxx_new.c.obj |
33 | 33 | ±0 |
String pool (attributed to efuse) — 148,296
| Part | This PR | v2026.11.16 | Δ |
|---|---|---|---|
esp_efuse_utility.c.obj |
147,299 | 137,444 | +9,855 (+7.2%) |
esp_efuse_rtc_calib.c.obj |
528 | 528 | ±0 |
esp_efuse_table.c.obj |
268 | 268 | ±0 |
esp_efuse_api.c.obj |
143 | 143 | ±0 |
esp_efuse_startup.c.obj |
58 | 58 | ±0 |
mbedTLS + certificates — 121,178
| Part | This PR | v2026.11.16 | Δ |
|---|---|---|---|
libmbedcrypto.a |
64,493 | 64,438 | +55 (+0.1%) |
libmbedtls.a |
43,290 | 43,294 | -4 (-0.0%) |
libmbedx509.a |
6,933 | 6,929 | +4 (+0.1%) |
libesp-tls.a |
5,186 | 5,214 | -28 (-0.5%) |
libesp_https_server.a |
1,276 | 1,248 | +28 (+2.2%) |
lwIP / HTTP / WebSocket — 120,032
| Part | This PR | v2026.11.16 | Δ |
|---|---|---|---|
liblwip.a |
76,206 | 76,635 | -429 (-0.6%) |
libhttp_parser.a |
10,154 | 10,158 | -4 (-0.0%) |
libesp_http_server.a |
8,969 | 8,981 | -12 (-0.1%) |
libtcp_transport.a |
7,055 | 7,111 | -56 (-0.8%) |
libesp_http_client.a |
6,044 | 6,090 | -46 (-0.8%) |
libespressif__esp_websocket_client.a |
5,847 | 5,811 | +36 (+0.6%) |
libesp_netif.a |
5,757 | 5,753 | +4 (+0.1%) |
Nim stdlib — 119,409
| Part | This PR | v2026.11.16 | Δ |
|---|---|---|---|
system.nim |
36,366 | 36,533 | -167 (-0.5%) |
pure/collections/tables.nim |
27,363 | 27,208 | +155 (+0.6%) |
pure/strutils.nim |
7,205 | 7,205 | ±0 |
pure/json.nim |
7,024 | 6,868 | +156 (+2.3%) |
pure/parsexml.nim |
5,262 | 5,262 | ±0 |
pure/unicode.nim |
4,457 | 4,457 | ±0 |
pure/parsejson.nim |
2,984 | 2,984 | ±0 |
pure/streams.nim |
2,507 | 2,507 | ±0 |
pure/xmlparser.nim |
2,350 | 2,350 | ±0 |
std/syncio.nim |
2,304 | 2,304 | ±0 |
pure/times.nim |
2,025 | 2,025 | ±0 |
std/private/ospaths2.nim |
1,815 | 1,700 | +115 (+6.8%) |
pure/algorithm.nim |
1,627 | 1,627 | ±0 |
pure/lexbase.nim |
1,244 | 1,244 | ±0 |
pure/strtabs.nim |
1,163 | 1,163 | ±0 |
pure/parseutils.nim |
1,154 | 1,158 | -4 (-0.3%) |
pure/pathnorm.nim |
1,111 | 1,111 | ±0 |
pure/options.nim |
976 | 976 | ±0 |
pure/hashes.nim |
950 | 933 | +17 (+1.8%) |
pure/collections/sets.nim |
929 | 929 | ±0 |
pure/xmltree.nim |
928 | 928 | ±0 |
pure/strformat.nim |
763 | 763 | ±0 |
pure/math.nim |
717 | 717 | ±0 |
pure/collections/deques.nim |
675 | 675 | ±0 |
pure/random.nim |
657 | 657 | ±0 |
pure/uri.nim |
626 | 630 | -4 (-0.6%) |
system/exceptions.nim |
552 | 552 | ±0 |
std/private/digitsutils.nim |
526 | 526 | ±0 |
system/dollars.nim |
474 | 505 | -31 (-6.1%) |
std/monotimes.nim |
474 | 474 | ±0 |
std/private/osdirs.nim |
470 | 474 | -4 (-0.8%) |
std/oserrors.nim |
421 | 421 | ±0 |
std/envvars.nim |
370 | 370 | ±0 |
std/private/oscommon.nim |
262 | 262 | ±0 |
std/private/decode_helpers.nim |
179 | 179 | ±0 |
pure/bitops.nim |
137 | 137 | ±0 |
std/formatfloat.nim |
103 | 103 | ±0 |
pure/os.nim |
97 | 97 | ±0 |
std/private/osfiles.nim |
87 | 87 | ±0 |
core/macros.nim |
75 | 75 | ±0 |
Storage (SPIFFS / FatFS / SD / NVS) — 88,691
| Part | This PR | v2026.11.16 | Δ |
|---|---|---|---|
libspiffs.a |
19,702 | 19,698 | +4 (+0.0%) |
libfatfs.a |
19,350 | 19,286 | +64 (+0.3%) |
libnvs_flash.a |
13,391 | 13,347 | +44 (+0.3%) |
libspi_flash.a |
13,374 | 13,370 | +4 (+0.0%) |
libsdmmc.a |
11,285 | 11,285 | ±0 |
libvfs.a |
5,543 | 5,543 | ±0 |
libesp_driver_sdspi.a |
3,741 | 3,741 | ±0 |
libesp_partition.a |
1,747 | 1,751 | -4 (-0.2%) |
libesp_vfs_console.a |
553 | 553 | ±0 |
libnvs_sec_provider.a |
5 | 5 | ±0 |
Display drivers (C) — 86,291
| Part | This PR | v2026.11.16 | Δ |
|---|---|---|---|
(everything else) |
18,484 | 18,484 | ±0 |
lcd_splash.c.obj |
7,829 | 7,829 | ±0 |
lcd_st7701s_rgb.c.obj |
7,637 | 6,876 | +761 (+11.1%) |
it8951.c.obj |
7,055 | 7,055 | ±0 |
lcd_qspi_amoled.c.obj |
5,525 | 5,461 | +64 (+1.2%) |
frameos_display.c.obj |
5,218 | 5,218 | ±0 |
frameos_panel_table.c.obj |
3,567 | 3,567 | ±0 |
DEV_Config_esp.c.obj |
2,868 | 2,868 | ±0 |
EPD_5in79.c.obj |
2,026 | 2,026 | ±0 |
EPD_13in3e.c.obj |
1,758 | 1,758 | ±0 |
EPD_4in2.c.obj |
1,579 | 1,579 | ±0 |
EPD_3in7.c.obj |
1,421 | 1,421 | ±0 |
| 29 smaller rows | 21,324 | 21,324 | ±0 |
libc / libm / newlib — 62,523
| Part | This PR | v2026.11.16 | Δ |
|---|---|---|---|
libm.a |
31,559 | 31,559 | ±0 |
libc.a |
24,231 | 24,227 | +4 (+0.0%) |
libnewlib.a |
6,503 | 6,503 | ±0 |
libgcc.a |
219 | 219 | ±0 |
libcxx.a |
10 | 10 | ±0 |
libstdc++.a |
1 | 1 | ±0 |
Embedded font — 61,135
| Part | This PR | v2026.11.16 | Δ |
|---|---|---|---|
assets/fonts.nim |
61,135 | 61,135 | ±0 |
FrameOS apps (Nim) — 56,113
| Part | This PR | v2026.11.16 | Δ |
|---|---|---|---|
apps/data/localImage |
9,005 | 9,017 | -12 (-0.1%) |
apps/render/split |
7,945 | 8,041 | -96 (-1.2%) |
apps/apps.nim |
5,419 | 5,419 | ±0 |
apps/render/zoomPan |
5,386 | 5,386 | ±0 |
apps/render/text |
5,145 | 5,141 | +4 (+0.1%) |
apps/render/svg |
3,268 | 3,256 | +12 (+0.4%) |
apps/render/image |
3,141 | 3,141 | ±0 |
apps/data/xmlToJson |
2,539 | 2,539 | ±0 |
apps/render/gradient |
2,506 | 2,510 | -4 (-0.2%) |
apps/data/qr |
1,877 | 1,755 | +122 (+7.0%) |
apps/data/downloadImage |
1,845 | 1,845 | ±0 |
apps/data/rotateImage |
1,688 | 1,697 | -9 (-0.5%) |
apps/data/downloadUrl |
1,643 | 1,647 | -4 (-0.2%) |
apps/data/newImage |
1,579 | 1,583 | -4 (-0.3%) |
apps/data/resizeImage |
1,237 | 1,223 | +14 (+1.1%) |
apps/render/color |
988 | 988 | ±0 |
apps/render/opacity |
902 | 861 | +41 (+4.8%) |
Crypto (monocypher) — 18,957
| Part | This PR | v2026.11.16 | Δ |
|---|---|---|---|
monocypher.c.obj |
15,811 | 15,811 | ±0 |
monocypher-ed25519.c.obj |
3,146 | 3,146 | ±0 |
Nim packages (chrono, zippy, chroma, qrgen, ...) — 18,293
| Part | This PR | v2026.11.16 | Δ |
|---|---|---|---|
chrono 0.3.1 |
12,436 | 12,376 | +60 (+0.5%) |
chroma 1.0.0 |
5,106 | 5,110 | -4 (-0.1%) |
zippy 0.10.19 |
488 | 488 | ±0 |
flatty 0.3.4 |
140 | 140 | ±0 |
bumpy 1.1.3 |
75 | 75 | ±0 |
jsony 1.1.5 |
48 | 48 | ±0 |
Biggest movers (per object)
| Object | Δ | This PR | Baseline |
|---|---|---|---|
system/sceneSettings/scene.nim |
+10,021 | 58,921 | 48,900 |
esp_efuse_utility.c.obj |
+9,855 | 147,299 | 137,444 |
fos_bt.c.obj |
+8,094 | 8,094 | — |
frameos/input_state.nim |
+7,603 | 24,395 | 16,792 |
ble_sm.c.obj |
+7,291 | 7,291 | — |
ble_gap.c.obj |
+6,828 | 6,828 | — |
ble_gattc.c.obj |
+6,449 | 6,449 | — |
llm_scan.o |
+5,817 | 5,817 | — |
arch_main.o |
+5,438 | 5,438 | — |
frameos/keyboard_tables.nim |
+5,020 | 5,020 | — |
llm_hci.o |
+4,780 | 4,780 | — |
llm_adv.o |
+4,765 | 4,765 | — |
gpio.c.obj |
-4,197 | — | 4,197 |
tlsf.c.obj |
-4,194 | — | 4,194 |
pixie/src/pixie.nim |
-4,178 | — | 4,178 |
Largest 30 objects
| Object | Subsystem | This PR | v2026.11.16 | Δ |
|---|---|---|---|---|
quickjs_hot.c.obj |
QuickJS | 286,656 | 286,612 | +44 (+0.0%) |
frameos/js_runtime/app_runtime.nim |
FrameOS core (Nim) | 148,215 | 146,597 | +1,618 (+1.1%) |
esp_efuse_utility.c.obj |
String pool (attributed to efuse) | 147,299 | 137,444 | +9,855 (+7.2%) |
frameos/interpreter.nim |
FrameOS core (Nim) | 76,231 | 78,615 | -2,384 (-3.0%) |
pixie/src/pixie/paths.nim |
FrameOS core (Nim) | 71,941 | 71,769 | +172 (+0.2%) |
assets/fonts.nim |
Embedded font | 61,135 | 61,135 | ±0 |
system/sceneSettings/scene.nim |
FrameOS core (Nim) | 58,921 | 48,900 | +10,021 (+20.5%) |
frameos/ui/layout.nim |
FrameOS core (Nim) | 58,738 | 57,915 | +823 (+1.4%) |
pixie/src/pixie/fileformats/svg.nim |
FrameOS core (Nim) | 56,574 | 56,571 | +3 (+0.0%) |
libunicode.c.obj |
QuickJS | 49,977 | 49,977 | ±0 |
pixie/src/pixie/images.nim |
FrameOS core (Nim) | 37,110 | 36,812 | +298 (+0.8%) |
nim/lib/system.nim |
Nim stdlib | 36,366 | 36,533 | -167 (-0.5%) |
frameos/utils/image.nim |
FrameOS core (Nim) | 35,727 | 35,708 | +19 (+0.1%) |
pixie/src/pixie/fileformats/webp.nim |
FrameOS core (Nim) | 35,424 | 35,424 | ±0 |
fos_client.c.obj |
fos_* firmware shell (C) | 32,392 | 32,338 | +54 (+0.2%) |
pixie/src/pixie/fileformats/jpeg.nim |
FrameOS core (Nim) | 31,567 | 31,575 | -8 (-0.0%) |
embedded_main.nim |
FrameOS core (Nim) | 28,157 | 27,366 | +791 (+2.9%) |
frameos/ui/events.nim |
FrameOS core (Nim) | 27,554 | 24,065 | +3,489 (+14.5%) |
nim/lib/pure/collections/tables.nim |
Nim stdlib | 27,363 | 27,208 | +155 (+0.6%) |
frameos/event_loop.nim |
FrameOS core (Nim) | 25,179 | 24,029 | +1,150 (+4.8%) |
frameos/input_state.nim |
FrameOS core (Nim) | 24,395 | 16,792 | +7,603 (+45.3%) |
frameos/scene_compiler.nim |
FrameOS core (Nim) | 24,246 | 24,182 | +64 (+0.3%) |
fos_cloud.c.obj |
fos_* firmware shell (C) | 23,998 | 22,955 | +1,043 (+4.5%) |
fos_http.c.obj |
fos_* firmware shell (C) | 23,672 | 23,375 | +297 (+1.3%) |
embedded_runtime.nim |
FrameOS core (Nim) | 22,938 | 21,847 | +1,091 (+5.0%) |
system/sceneSwitcher/scene.nim |
FrameOS core (Nim) | 21,110 | 19,525 | +1,585 (+8.1%) |
frameos/utils/asset_colors.nim |
FrameOS core (Nim) | 19,008 | 19,008 | ±0 |
x509_crt_bundle.S.obj |
mbedTLS + certificates | 17,928 | 17,928 | ±0 |
fos_console.c.obj |
fos_* firmware shell (C) | 17,867 | 17,217 | +650 (+3.8%) |
pixie/src/pixie/fileformats/png.nim |
FrameOS core (Nim) | 17,575 | 17,579 | -4 (-0.0%) |
Flash = .text + .rodata from the linker map via esp_idf_size; "Inside each subsystem" splits every bucket one level down (the Nim core by directory, apps by app, packages by package, ESP-IDF by archive) over all objects, not just the largest. "String pool (attributed to efuse)" is the linker's merged string-literal pool for the whole image, not efuse code — see docs/esp32-image-size.md.
An ESP32 frame holds up to 256 scenes (512 slot files) instead of 128, and the built-in scene list builds only the tiles near what it shows, so 256 costs it about what a screenful does.
Firmware
FOS_SCENE_STORE_SCENES128 → 256,FOS_SCENE_STORE_SLOTS256 → 512,FOS_SCENE_PIECES_MAXwith them (fos_scene_store.h,fos_scene_pieces.h).s_fresh,s_written): one block made at the first change and kept, no longer 1.5 KB of internal.bss(so the 768 B they took at 128 is free too);activate_from_index): 2 KB, no longer on the main task's 8 KB stack;fos_scene_set_t): 2 KB,fos_cold_calloc.load_scene_indexlets go of its cJSON tree before the runtime parses its own copy of the catalog, so the two trees are never held together.test_a_full_set_of_the_longest_entries): 256 entries that each keep the most an entry may (a 127-character id, a 256-byte name, a 1 KB icon, a 128-byte category and file types, a 32-byte window size) are 468,717 bytes of index, under the 524,288 every reader takes. Only escapes go past that, and those changes are refused with the set as it was (as before). The samples average about 360 B an entry: 92 KB for 256.Both planes
One table of tiers on each plane, held to the header and to each other by
test_embedded_scenes_patch_slots.py:ESP32_SCENE_STORE_TIERS,esp32_scene_store_slots/esp32_scene_store_scenes): a patch goes only where its puts fit the board's slots, as before but by tier. The backend never capped the scene count; now, when it serves a board on older firmware more scenes than it holds, it says so in the frame's log once per set ("This frame's firmware (FrameOS 2026.11.16) holds at most 128 scenes, and it was sent 130. It keeps the scenes it had. Remove 2 and push again, or update its firmware: FrameOS 2026.11.17 and later hold 256."). It keeps 256 scene sizes from a board's storage report, not 64.esp32SceneStoreTiers,esp32SceneStoreSlotsFor/ newesp32SceneStoreScenesFor): the hub passes the board's own count tonextScenesPart, so a set in parts never holds more scenes than that board does (the old code capped every board at the newest number). The hub's integration test's fake board now holds what 2026.11.12 holds and the hub must refuse 129 for it.storage.sceneBytes). 256 uuid-named scenes are about 12 KB, and a report over the 8 KB cap was dropped whole on the hub and at enrollment, platform included. NowhardwareReportkeeps the report and leaves out onlysceneBytespast the cap (unit test, plus a hub integration case).versions.json's 2026.11.16. If a release is cut before this merges, bump the tier's version on both planes and in the flasher. Any release after this merge is ≥ 2026.11.17 (a December one is 2026.12.0), so the comparison holds.Flasher
STANDALONE_MAX_SCENESfollows the firmware the flasher writes. flash.frameos.net always writes the newest signed release, so the page reads the release from its firmware listing (loadRelease) and usesstandaloneMaxScenes(release): 256 from 2026.11.17, 128 before and until the listing is in. That matters for the window between this merge (the cloud deploys at once) and the release: the page keeps offering 128 until the release it would write holds 256.presetPicksandpickedScenesProblemtake the number as an optional last argument.Other flasher paths: the backend's flasher bridge and a setup file bring the plane's own scenes (the plane's to keep to the board's number; the board refuses more, whole), and a plane's
local-devbuild is only written by that plane's own flasher from its setup document, never by the standalone picker.Overlap with #1189 (
writing-sample, merged while this was in progress): it changedpresetPicks(one place kept for a layout) and the flasher tests. This branch is rebased on main with it, and builds on itsmaxScenes - 1.The scene list builds only what is near the screen
frameos/src/system/sceneSwitcher/scene.nimtree: the list is built in pieces of eight tiles (PieceTiles), each a box at the place its rows have in the list and at its own place among the list's children.reveal, a screenful, the round lens), so nothing else changed: category headings, search, the keys' highlight and the scroll to it, the press map and taps, the round panel's lens, e-paper's inverted highlight and damage repaint, the desktops' windows and the settingsswapall keep working.groupedmoves the entries instead of copying them twice (a list of 256 names and icons is read at every render).sceneSwitcher/tests/test_scene.nimwith 256 scenes in eight categories:Measurements
UX bench (
tools/ux-bench, built-ins). The harness takes--sceneCount Nnow: light copies of the samples past the first 45 (a name, an icon and a category, all the list reads). Each step records its memory peak in the model of the board's memory, and the UI elements placed. Main's switcher and this branch's in the same wasm runtime, otherwise identical:Memory peak opening the list:
256 scenes on this branch:
Hardware: not done. No ESP32 board is attached to this machine's USB (only Bluetooth serial ports), so the Sticky could not be flashed or measured: no heap low-water marks, list open time, index read time or boot time from a board. The branch's firmware does build locally for the Sticky's 32 MB layout: app 3,400,992 bytes, 82.4% of the 4032K slot, the same as CI's.
Firmware size:
used_diram).fos_store.c+52,system.nim−156 (groupedmoves).docs/esp32-image-size.md.Docs
embedded/esp32/README.md"How big a set may be" (the tiers, the index arithmetic, what moved to PSRAM), AGENTS.md,cloud/docs/flasher.md,docs/scene-switcher.md(the pieces, the numbers),docs/esp32-memory.md"The scene index",tools/ux-bench/README.md(--sceneCount).Tests run locally
test_fos_scene_store.c(1879 checks),test_fos_scene_pieces.c, and the backend's runners of the ESP32 host tests.test_embedded_scenes_patch_slots.py,test_embedded_device.py.scenes-patch.test.ts, the flasher tests,frame-hardware-report.test.ts, andpnpm verify.🤖 Generated with Claude Code