@geastack/targets 0.1.83 → 0.1.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/README.md +24 -0
  2. package/build-config.json +481 -0
  3. package/package.json +8 -7
  4. package/targets/cmake/gea_build_config.cmake +12 -0
  5. package/targets/esp32/chip_bindings/audio/es8311.cpp +30 -8
  6. package/targets/esp32/display.cpp +57 -28
  7. package/targets/esp32/gea_framework.cmake +25 -3
  8. package/targets/esp32/memory_config.h +7 -0
  9. package/targets/esp32/services/app_runner.cpp +13 -4
  10. package/targets/esp32/services/device_control.cpp +82 -27
  11. package/targets/esp32/services/frame_scheduler.cpp +117 -2
  12. package/targets/esp32-p4-m5stack-tab5/main/CMakeLists.txt +2 -1
  13. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/CMakeLists.txt +2 -1
  14. package/targets/esp32-p4-waveshare-touch-lcd-7/main/CMakeLists.txt +2 -1
  15. package/targets/esp32-s3-elecrow-rotary-2.1/main/CMakeLists.txt +2 -0
  16. package/targets/esp32-s3-epaper-1.54/main/CMakeLists.txt +3 -1
  17. package/targets/esp32-s3-lilygo-t-display-s3-long/CMakeLists.txt +1 -1
  18. package/targets/esp32-s3-lilygo-t-display-s3-long/main/CMakeLists.txt +1 -24
  19. package/targets/esp32-s3-touch-amoled-1.75/main/CMakeLists.txt +2 -1
  20. package/targets/esp32-s3-touch-amoled-1.8/main/CMakeLists.txt +10 -61
  21. package/targets/esp32-s3-touch-amoled-1.8/main/panel_reset.cpp +54 -0
  22. package/targets/esp32-s3-touch-amoled-2.06/dependencies.lock +1 -42
  23. package/targets/esp32-s3-touch-amoled-2.06/main/CMakeLists.txt +11 -128
  24. package/targets/rp2350-tufty-2350/CMakeLists.txt +6 -7
  25. package/targets/rp2350-waveshare-touch-amoled-2.41/CMakeLists.txt +4 -0
@@ -395,7 +395,6 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
395
395
  GEA_EMBEDDED_AUDIO_DISABLED=0
396
396
  GEA_EMBEDDED_DEFAULT_FRAME_INTERVAL_US=16000
397
397
  GEA_EMBEDDED_FRAME_SCHEDULER_USE_ESP_TIMER=1
398
- GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LITE=1
399
398
  GEA_EMBEDDED_FRAME_SCHEDULER_IDLE_YIELD_TICKS=0
400
399
  GEA_EMBEDDED_FRAME_SCHEDULER_MAX_CATCHUP_FRAMES_BEFORE_YIELD=60
401
400
  GEA_EMBEDDED_DIRTY_REGION_MAX_RECTS=64
@@ -458,6 +457,7 @@ file(GLOB_RECURSE _GEATSC_DIST_SRCS CONFIGURE_DEPENDS
458
457
  add_custom_command(
459
458
  OUTPUT ${_GEATSC_BUILD_STAMP}
460
459
  COMMAND node ${_GEA_VITE_GEATSC_SCRIPT}
460
+ --build-config "${GEA_BUILD_CONFIG_JSON}"
461
461
  --app-dir ${GEA_EMBEDDED_APP_DIR}
462
462
  --entry ${GEA_EMBEDDED_APP_ENTRY}
463
463
  --cpp-board "${GEA_EMBEDDED_CPP_BOARD}"
@@ -471,6 +471,7 @@ add_custom_command(
471
471
  ${GEA_EMBEDDED_APP_GEATSC_PLUGIN_ARGS}
472
472
  COMMAND ${CMAKE_COMMAND} -E touch ${_GEATSC_BUILD_STAMP}
473
473
  DEPENDS
474
+ "${GEA_BUILD_CONFIG_JSON}"
474
475
  ${GEA_EMBEDDED_APP_GEATSC_PLUGINS}
475
476
  ${_ACTIVE_APP_SRCS}
476
477
  ${_ACTIVE_APP_ASSETS}
@@ -410,7 +410,6 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
410
410
  GEA_EMBEDDED_AUDIO_DISABLED=0
411
411
  GEA_EMBEDDED_DEFAULT_FRAME_INTERVAL_US=16000
412
412
  GEA_EMBEDDED_FRAME_SCHEDULER_USE_ESP_TIMER=1
413
- GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LITE=1
414
413
  GEA_EMBEDDED_FRAME_SCHEDULER_IDLE_YIELD_TICKS=0
415
414
  GEA_EMBEDDED_FRAME_SCHEDULER_MAX_CATCHUP_FRAMES_BEFORE_YIELD=60
416
415
  GEA_EMBEDDED_DIRTY_REGION_MAX_RECTS=64
@@ -473,6 +472,7 @@ file(GLOB_RECURSE _GEATSC_DIST_SRCS CONFIGURE_DEPENDS
473
472
  add_custom_command(
474
473
  OUTPUT ${_GEATSC_BUILD_STAMP}
475
474
  COMMAND node ${_GEA_VITE_GEATSC_SCRIPT}
475
+ --build-config "${GEA_BUILD_CONFIG_JSON}"
476
476
  --app-dir ${GEA_EMBEDDED_APP_DIR}
477
477
  --entry ${GEA_EMBEDDED_APP_ENTRY}
478
478
  --cpp-board "${GEA_EMBEDDED_CPP_BOARD}"
@@ -486,6 +486,7 @@ add_custom_command(
486
486
  ${GEA_EMBEDDED_APP_GEATSC_PLUGIN_ARGS}
487
487
  COMMAND ${CMAKE_COMMAND} -E touch ${_GEATSC_BUILD_STAMP}
488
488
  DEPENDS
489
+ "${GEA_BUILD_CONFIG_JSON}"
489
490
  ${GEA_EMBEDDED_APP_GEATSC_PLUGINS}
490
491
  ${_ACTIVE_APP_SRCS}
491
492
  ${_ACTIVE_APP_ASSETS}
@@ -507,6 +507,7 @@ file(GLOB_RECURSE _GEATSC_DIST_SRCS CONFIGURE_DEPENDS
507
507
  add_custom_command(
508
508
  OUTPUT ${_GEATSC_BUILD_STAMP}
509
509
  COMMAND node ${_GEA_VITE_GEATSC_SCRIPT}
510
+ --build-config "${GEA_BUILD_CONFIG_JSON}"
510
511
  --app-dir ${GEA_EMBEDDED_APP_DIR}
511
512
  --entry ${GEA_EMBEDDED_APP_ENTRY}
512
513
  --cpp-board "${GEA_EMBEDDED_CPP_BOARD}"
@@ -520,6 +521,7 @@ add_custom_command(
520
521
  ${GEA_EMBEDDED_APP_GEATSC_PLUGIN_ARGS}
521
522
  COMMAND ${CMAKE_COMMAND} -E touch ${_GEATSC_BUILD_STAMP}
522
523
  DEPENDS
524
+ "${GEA_BUILD_CONFIG_JSON}"
523
525
  ${GEA_EMBEDDED_APP_GEATSC_PLUGINS}
524
526
  ${_ACTIVE_APP_SRCS}
525
527
  ${_GEATSC_BIN}
@@ -91,7 +91,7 @@ set(GEA_EMBEDDED_CPP_BOARD "${GEA_EMBEDDED_TARGET_CPP_BOARD}" CACHE STRING "Boar
91
91
  # crisp, uniform stems when baked at an integer multiple of their native size,
92
92
  # which requires baked-size == CSS-size. A non-integer DPR (1.5) would force
93
93
  # fractional baked sizes and reintroduce uneven 1px/2px stems on this 1-bit panel.
94
- set(GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO "${GEA_EMBEDDED_TARGET_CSS_DEVICE_PIXEL_RATIO}" CACHE STRING "Logical CSS px to physical pixel scale for this board" FORCE)
94
+ set(GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO "${GEA_EMBEDDED_TARGET_CSS_DEVICE_PIXEL_RATIO}" CACHE STRING "Logical CSS px to physical pixel scale for this board")
95
95
 
96
96
  # Write a file only when its content would change. Preserves mtime when content matches,
97
97
  # so downstream make/ninja rules don't see spurious changes on every reconfigure.
@@ -583,6 +583,7 @@ file(GLOB_RECURSE _GEATSC_DIST_SRCS CONFIGURE_DEPENDS
583
583
  add_custom_command(
584
584
  OUTPUT ${_GEATSC_BUILD_STAMP}
585
585
  COMMAND node ${_GEA_VITE_GEATSC_SCRIPT}
586
+ --build-config "${GEA_BUILD_CONFIG_JSON}"
586
587
  --app-dir ${GEA_EMBEDDED_APP_DIR}
587
588
  --entry ${GEA_EMBEDDED_APP_ENTRY}
588
589
  --cpp-board "${GEA_EMBEDDED_CPP_BOARD}"
@@ -597,6 +598,7 @@ add_custom_command(
597
598
  ${GEA_EMBEDDED_APP_GEATSC_PLUGIN_ARGS}
598
599
  COMMAND ${CMAKE_COMMAND} -E touch ${_GEATSC_BUILD_STAMP}
599
600
  DEPENDS
601
+ "${GEA_BUILD_CONFIG_JSON}"
600
602
  ${GEA_EMBEDDED_APP_GEATSC_PLUGINS}
601
603
  ${_ACTIVE_APP_SRCS}
602
604
  ${_ACTIVE_APP_ASSETS}
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.16)
2
2
 
3
3
  set(EXTRA_COMPONENT_DIRS "${CMAKE_CURRENT_LIST_DIR}/../esp32/components")
4
4
  include("${CMAKE_CURRENT_LIST_DIR}/../esp32/app_project.cmake")
5
- set(GEA_EMBEDDED_APP "bouncing-balls-jsx" CACHE STRING "Example app to build (must match a package.json gea.id)")
5
+ set(GEA_EMBEDDED_APP "" CACHE STRING "Example app to build (must match a package.json gea.id)")
6
6
  set(PROJECT_VER "${GEA_EMBEDDED_APP}" CACHE STRING "Firmware app id" FORCE)
7
7
 
8
8
  include($ENV{IDF_PATH}/tools/cmake/project.cmake)
@@ -1,7 +1,7 @@
1
1
  set(GEA_BOARD_COMPONENT_DIR "${CMAKE_CURRENT_LIST_DIR}")
2
2
  set(GEA_BOARD_TARGET_DIR "${CMAKE_CURRENT_LIST_DIR}/..")
3
3
  set(GEA_EMBEDDED_CPP_BOARD "esp32-s3-lilygo-t-display-s3-long")
4
- set(GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO "1.0")
4
+ set(GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO "1.0" CACHE STRING "Logical CSS px to physical pixel scale for this board")
5
5
  set(GEA_BOARD_DISPLAY_WIDTH 640)
6
6
  set(GEA_BOARD_DISPLAY_HEIGHT 180)
7
7
  set(GEA_BOARD_NATIVE_DISPLAY_WIDTH 180)
@@ -15,32 +15,9 @@ endif()
15
15
  if(NOT DEFINED GEA_BOARD_FRAMEBUFFER_STREAM_FLUSH)
16
16
  set(GEA_BOARD_FRAMEBUFFER_STREAM_FLUSH 1)
17
17
  endif()
18
- if(NOT DEFINED GEA_BOARD_FRAMEBUFFER_CS_HELD_STREAM)
19
- # The AXS15231B intermittently loses horizontal pixel alignment when a
20
- # framebuffer stream keeps CS asserted across queued DMA chunks.
21
- set(GEA_BOARD_FRAMEBUFFER_CS_HELD_STREAM 0)
22
- endif()
23
18
  set(GEA_BOARD_PARTIAL_PAD_X 0)
24
19
  set(GEA_BOARD_PARTIAL_PAD_Y 0)
25
20
  set(GEA_BOARD_STREAM_PACE_CHUNKS 0)
26
- if(NOT DEFINED GEA_BOARD_GEATSC_OPTIMIZATION)
27
- # Keep the one-time large-partition migration image compatible with the
28
- # original 2 MiB OTA layout. Later builds have 8,128 KiB per slot.
29
- set(GEA_BOARD_GEATSC_OPTIMIZATION -Os)
30
- endif()
31
- if(NOT DEFINED GEA_BOARD_OPTIMIZE_BOUNCING_BALLS_JSX)
32
- set(GEA_BOARD_OPTIMIZE_BOUNCING_BALLS_JSX 1)
33
- endif()
34
- # Landscape scanout uses a physical-order framebuffer exposed through a rotated
35
- # logical Canvas. Keep fused replay off until its generated-app microtask crash
36
- # is resolved; the stable path renders into native-order PSRAM and copies rows.
37
- set(GEA_BOARD_FUSE_REPLAY_FLUSH 0)
38
- # The shared bouncing-balls profile collapses 64 movers to one broad dirty
39
- # bbox, which is beneficial on the square AMOLED but makes this rotated panel
40
- # redraw and transmit almost all 640 native rows. Preserve precise damage so
41
- # display.cpp can project it into only the changed physical row bands.
42
- set(GEA_BOARD_BROAD_DIRTY_BBOX 0)
43
- set(GEA_BOARD_ADAPTIVE_COALESCE 0)
44
21
  set(GEA_BOARD_EXTRA_REQUIRES
45
22
  esp_driver_ledc
46
23
  espressif__esp_tinyusb
@@ -430,7 +430,6 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
430
430
  GEA_EMBEDDED_APP_FRAME_TASK_PRIORITY=23
431
431
  # Compact scheduler perf line (gea_esp32_frame perf-lite) for cross-checking
432
432
  # the app-level gea.perf window without the full phase dump's serial cost.
433
- GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LITE=1
434
433
  # 2-core replay split: defaults (96 rows / 64k px) only engage at the largest
435
434
  # dirty phases of an animated-transform scene; lower so mid-size regions split
436
435
  # too. Measured on css-3d-cube (glassy): median 52.3 -> 59.2 fps, min 44 -> 49.
@@ -485,6 +484,7 @@ file(GLOB_RECURSE _GEATSC_DIST_SRCS CONFIGURE_DEPENDS
485
484
  add_custom_command(
486
485
  OUTPUT ${_GEATSC_BUILD_STAMP}
487
486
  COMMAND node ${_GEA_VITE_GEATSC_SCRIPT}
487
+ --build-config "${GEA_BUILD_CONFIG_JSON}"
488
488
  --app-dir ${GEA_EMBEDDED_APP_DIR}
489
489
  --entry ${GEA_EMBEDDED_APP_ENTRY}
490
490
  --cpp-board "${GEA_EMBEDDED_CPP_BOARD}"
@@ -498,6 +498,7 @@ add_custom_command(
498
498
  ${GEA_EMBEDDED_APP_GEATSC_PLUGIN_ARGS}
499
499
  COMMAND ${CMAKE_COMMAND} -E touch ${_GEATSC_BUILD_STAMP}
500
500
  DEPENDS
501
+ "${GEA_BUILD_CONFIG_JSON}"
501
502
  ${GEA_EMBEDDED_APP_GEATSC_PLUGINS}
502
503
  ${_ACTIVE_APP_SRCS}
503
504
  ${_ACTIVE_APP_ASSETS}
@@ -95,55 +95,12 @@ endif()
95
95
  if(NOT DEFINED GEA_BOARD_EXTRA_COMPILE_DEFINITIONS)
96
96
  set(GEA_BOARD_EXTRA_COMPILE_DEFINITIONS "")
97
97
  endif()
98
- if(NOT DEFINED GEA_BOARD_GEATSC_OPTIMIZATION)
99
- set(GEA_BOARD_GEATSC_OPTIMIZATION -Os)
100
- endif()
101
- if(NOT DEFINED GEA_BOARD_OPTIMIZE_BOUNCING_BALLS_JSX)
102
- set(GEA_BOARD_OPTIMIZE_BOUNCING_BALLS_JSX 0)
103
- endif()
104
-
105
- # Keep app-sensitive renderer/codegen choices explicit at the board wrapper.
106
- # The shared 1.8-inch target retains its measured defaults; boards opting into
107
- # the bouncing-balls-jsx profile get the same native-number and retained-tree
108
- # shortcuts as the faster AMOLED target without affecting unrelated apps.
109
- set(GEA_EMBEDDED_NUMBER_F32 0)
110
- set(GEA_EMBEDDED_FUSE_FLUSH_VALUE 0)
111
- set(GEA_EMBEDDED_REVEAL_CHECK_VALUE 1)
112
- set(GEA_EMBEDDED_SKIP_POSITION_RECORD_VALUE 0)
113
- set(GEA_EMBEDDED_ADAPTIVE_COALESCE_VALUE 0)
114
- set(GEA_EMBEDDED_BROAD_DIRTY_BBOX_VALUE 0)
115
- set(GEA_EMBEDDED_FB_CS_HELD_VALUE 0)
116
- set(GEA_EMBEDDED_PRESENT_CS_HELD_VALUE 0)
117
- set(GEA_EMBEDDED_PERF_VALUE 1)
118
- set(GEA_EMBEDDED_PERF_LITE_VALUE 1)
119
- if(GEA_BOARD_OPTIMIZE_BOUNCING_BALLS_JSX AND GEA_EMBEDDED_APP STREQUAL "bouncing-balls-jsx")
120
- set(GEA_EMBEDDED_NUMBER_F32 1)
121
- set(GEA_EMBEDDED_FUSE_FLUSH_VALUE 1)
122
- set(GEA_EMBEDDED_REVEAL_CHECK_VALUE 0)
123
- set(GEA_EMBEDDED_SKIP_POSITION_RECORD_VALUE 1)
124
- set(GEA_EMBEDDED_ADAPTIVE_COALESCE_VALUE 1)
125
- set(GEA_EMBEDDED_BROAD_DIRTY_BBOX_VALUE 1)
126
- set(GEA_EMBEDDED_FB_CS_HELD_VALUE 1)
127
- set(GEA_EMBEDDED_PRESENT_CS_HELD_VALUE 1)
128
- set(GEA_EMBEDDED_PERF_VALUE 0)
129
- set(GEA_EMBEDDED_PERF_LITE_VALUE 0)
130
- list(APPEND GEA_BOARD_EXTRA_COMPILE_DEFINITIONS GEA_NUMBER_FLOAT=1)
131
- endif()
132
- if(DEFINED GEA_BOARD_FRAMEBUFFER_CS_HELD_STREAM)
133
- set(GEA_EMBEDDED_FB_CS_HELD_VALUE ${GEA_BOARD_FRAMEBUFFER_CS_HELD_STREAM})
134
- endif()
135
- if(DEFINED GEA_BOARD_PRESENT_CS_HELD_STREAM)
136
- set(GEA_EMBEDDED_PRESENT_CS_HELD_VALUE ${GEA_BOARD_PRESENT_CS_HELD_STREAM})
137
- endif()
138
- if(DEFINED GEA_BOARD_FUSE_REPLAY_FLUSH)
139
- set(GEA_EMBEDDED_FUSE_FLUSH_VALUE ${GEA_BOARD_FUSE_REPLAY_FLUSH})
140
- endif()
141
- if(DEFINED GEA_BOARD_ADAPTIVE_COALESCE)
142
- set(GEA_EMBEDDED_ADAPTIVE_COALESCE_VALUE ${GEA_BOARD_ADAPTIVE_COALESCE})
143
- endif()
144
- if(DEFINED GEA_BOARD_BROAD_DIRTY_BBOX)
145
- set(GEA_EMBEDDED_BROAD_DIRTY_BBOX_VALUE ${GEA_BOARD_BROAD_DIRTY_BBOX})
98
+ if(GEA_EMBEDDED_CPP_BOARD STREQUAL "esp32-s3-touch-amoled-1.8")
99
+ list(APPEND GEA_BOARD_PLATFORM_SOURCES "${CMAKE_CURRENT_LIST_DIR}/panel_reset.cpp")
100
+ list(APPEND GEA_BOARD_EXTRA_COMPILE_DEFINITIONS GEA_BOARD_PREPARE_DISPLAY_PANEL=1)
146
101
  endif()
102
+ # Compiler/renderer choices are resolved from package.json by the CLI.
103
+ # Hardware defaults and restrictions live in the targets build catalog.
147
104
 
148
105
  # Write a file only when its content would change. Preserves mtime when content matches,
149
106
  # so downstream make/ninja rules don't see spurious changes on every reconfigure.
@@ -350,7 +307,7 @@ set(GEATSC_COMPILE_OPTIONS
350
307
  # the false positive into an error and no board on this base builds at all.
351
308
  -Wno-dangling-reference
352
309
  -Wno-dangling-pointer
353
- ${GEA_BOARD_GEATSC_OPTIMIZATION}
310
+ -${GEA_BUILD_COMPILER_GENERATED_CODE_OPTIMIZATION}
354
311
  -mtext-section-literals
355
312
  )
356
313
  set(GEATSC_COMPILE_DEFINITIONS "")
@@ -530,6 +487,7 @@ idf_component_register(
530
487
  esp_http_client
531
488
  ${GEA_EMBEDDED_HTTPS_REQUIRES}
532
489
  app_update
490
+ spi_flash
533
491
  esp_mm
534
492
  esp_netif
535
493
  esp_event
@@ -583,15 +541,7 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
583
541
  GEA_EMBEDDED_HAS_GENERATED_FONTS=1
584
542
  GEA_EMBEDDED_APP_FRAME_TASK_CORE=0
585
543
  GEA_EMBEDDED_DISPLAY_CO5300_FRAMEBUFFER_STREAM_FLUSH=${GEA_BOARD_FRAMEBUFFER_STREAM_FLUSH}
586
- GEA_EMBEDDED_DISPLAY_CO5300_FRAMEBUFFER_CS_HELD_STREAM=${GEA_EMBEDDED_FB_CS_HELD_VALUE}
587
- GEA_EMBEDDED_DISPLAY_CO5300_PRESENT_CS_HELD_STREAM=${GEA_EMBEDDED_PRESENT_CS_HELD_VALUE}
588
544
  GEA_EMBEDDED_DISPLAY_QSPI_PCLK_HZ=${GEA_BOARD_QSPI_PCLK_HZ}
589
- GEA_EMBEDDED_DISPLAY_FUSE_REPLAY_FLUSH=${GEA_EMBEDDED_FUSE_FLUSH_VALUE}
590
- GEA_EMBEDDED_SUBTREE_REVEAL_CHECK=${GEA_EMBEDDED_REVEAL_CHECK_VALUE}
591
- GEA_EMBEDDED_SKIP_POSITION_INLINE_RECORD=${GEA_EMBEDDED_SKIP_POSITION_RECORD_VALUE}
592
- GEA_EMBEDDED_FLUSH_ADAPTIVE_COALESCE=${GEA_EMBEDDED_ADAPTIVE_COALESCE_VALUE}
593
- GEA_EMBEDDED_BROAD_DIRTY_BBOX=${GEA_EMBEDDED_BROAD_DIRTY_BBOX_VALUE}
594
- GEA_EMBEDDED_PERF=${GEA_EMBEDDED_PERF_VALUE}
595
545
  # SH8601 JSX flush — the fastest genuinely-clean config is tight SPARSE per-ball windows
596
546
  # + X=8 pad, no fusion (~53-57fps). Measured dead-ends (all on-device, 2026-06-09):
597
547
  # - full-width band-collapse: 47fps. Cuts windows but DMAs the whole screen (byte-bound).
@@ -631,7 +581,6 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
631
581
  GEA_EMBEDDED_RENDER_PARALLEL_MIN_PIXELS=24000
632
582
  # Compact per-window scheduler perf line (tag gea_esp32_frame) for on-device
633
583
  # fps measurement without the full phase dump's serial cost.
634
- GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LITE=${GEA_EMBEDDED_PERF_LITE_VALUE}
635
584
  ${GEA_BOARD_EXTRA_COMPILE_DEFINITIONS}
636
585
  ${GEA_EMBEDDED_BLE_COMPILE_DEFINITIONS}
637
586
  ${GEA_EMBEDDED_HTTPS_COMPILE_DEFINITIONS}
@@ -681,9 +630,8 @@ file(GLOB_RECURSE _GEATSC_DIST_SRCS CONFIGURE_DEPENDS
681
630
  )
682
631
  add_custom_command(
683
632
  OUTPUT ${_GEATSC_BUILD_STAMP}
684
- COMMAND ${CMAKE_COMMAND} -E env
685
- "GEA_EMBEDDED_NUMBER_F32=${GEA_EMBEDDED_NUMBER_F32}"
686
- node ${_GEA_VITE_GEATSC_SCRIPT}
633
+ COMMAND node ${_GEA_VITE_GEATSC_SCRIPT}
634
+ --build-config "${GEA_BUILD_CONFIG_JSON}"
687
635
  --app-dir ${GEA_EMBEDDED_APP_DIR}
688
636
  --entry ${GEA_EMBEDDED_APP_ENTRY}
689
637
  --cpp-board "${GEA_EMBEDDED_CPP_BOARD}"
@@ -697,6 +645,7 @@ add_custom_command(
697
645
  ${GEA_EMBEDDED_APP_GEATSC_PLUGIN_ARGS}
698
646
  COMMAND ${CMAKE_COMMAND} -E touch ${_GEATSC_BUILD_STAMP}
699
647
  DEPENDS
648
+ "${GEA_BUILD_CONFIG_JSON}"
700
649
  ${GEA_EMBEDDED_APP_GEATSC_PLUGINS}
701
650
  ${_ACTIVE_APP_SRCS}
702
651
  ${_ACTIVE_APP_ASSETS}
@@ -0,0 +1,54 @@
1
+ // The 1.8-inch board routes its peripheral reset lines through an XCA9554.
2
+ // Follow Waveshare's original 04_GFX_FT3168_Image sequence: EXIO0..2 low for
3
+ // 20 ms, then high. Preserve the remaining pins and reuse the shared I2C bus.
4
+ // https://github.com/waveshareteam/ESP32-S3-Touch-AMOLED-1.8/blob/main/examples/arduino/examples/04_GFX_FT3168_Image/04_GFX_FT3168_Image.ino
5
+ #include "i2c.h"
6
+ #include "driver/i2c_master.h"
7
+ #include "esp_log.h"
8
+ #include "freertos/FreeRTOS.h"
9
+ #include "freertos/task.h"
10
+ #include <cstdint>
11
+
12
+ namespace gea::platform::board {
13
+ void prepareDisplayPanel()
14
+ {
15
+ const auto bus = gea::platform::i2c::Bus::primary();
16
+ if (!bus.available()) {
17
+ ESP_LOGE("panel_reset", "shared I2C bus unavailable");
18
+ return;
19
+ }
20
+ i2c_device_config_t config{};
21
+ config.dev_addr_length = I2C_ADDR_BIT_LEN_7;
22
+ config.device_address = 0x20;
23
+ config.scl_speed_hz = 400000;
24
+ i2c_master_dev_handle_t device = nullptr;
25
+ esp_err_t err = i2c_master_bus_add_device(
26
+ static_cast<i2c_master_bus_handle_t>(bus.nativeHandle()), &config, &device);
27
+ if (err != ESP_OK) {
28
+ ESP_LOGE("panel_reset", "expander attach failed: %s", esp_err_to_name(err));
29
+ return;
30
+ }
31
+ constexpr std::uint8_t pins = 0x07;
32
+ const auto read = [&](std::uint8_t reg, std::uint8_t &value) {
33
+ return i2c_master_transmit_receive(device, &reg, 1, &value, 1, 100);
34
+ };
35
+ const auto write = [&](std::uint8_t reg, std::uint8_t value) {
36
+ const std::uint8_t bytes[]{reg, value};
37
+ return i2c_master_transmit(device, bytes, sizeof(bytes), 100);
38
+ };
39
+ std::uint8_t output = 0, direction = 0;
40
+ err = read(0x01, output);
41
+ if (err == ESP_OK) err = read(0x03, direction);
42
+ // Set the low latch before enabling outputs to avoid an unintended pulse.
43
+ if (err == ESP_OK) err = write(0x01, output & ~pins);
44
+ if (err == ESP_OK) err = write(0x03, direction & ~pins);
45
+ if (err == ESP_OK) {
46
+ vTaskDelay(pdMS_TO_TICKS(20));
47
+ err = write(0x01, output | pins);
48
+ vTaskDelay(pdMS_TO_TICKS(50));
49
+ }
50
+ i2c_master_bus_rm_device(device);
51
+ if (err == ESP_OK) ESP_LOGI("panel_reset", "peripherals reset through XCA9554 EXIO0..2");
52
+ else ESP_LOGE("panel_reset", "expander reset failed: %s", esp_err_to_name(err));
53
+ }
54
+ } // namespace gea::platform::board
@@ -9,16 +9,6 @@ dependencies:
9
9
  registry_url: https://components.espressif.com
10
10
  type: service
11
11
  version: 0.5.3
12
- espressif/esp_codec_dev:
13
- component_hash: 4779f31a3ba3f9b38aee1afe6ccb9ba8f6108dc3a6e77d39d7d714e9a215371b
14
- dependencies:
15
- - name: idf
16
- require: private
17
- version: '>=4.0'
18
- source:
19
- registry_url: https://components.espressif.com/
20
- type: service
21
- version: 1.6.2
22
12
  espressif/esp_io_expander:
23
13
  component_hash: 7b7f91270172e46ca4597e3874f48d8412e280e8c295559f5922ec38656e3e5f
24
14
  dependencies:
@@ -61,45 +51,14 @@ dependencies:
61
51
  registry_url: https://components.espressif.com/
62
52
  type: service
63
53
  version: 1.0.1
64
- espressif/esp_libsrtp:
65
- component_hash: 131560184c73ec09f77d8904a2db709307803f0f9f111898921b6966776eac15
66
- dependencies: []
67
- source:
68
- registry_url: https://components.espressif.com
69
- type: service
70
- version: 1.0.0
71
- espressif/esp_peer:
72
- component_hash: e29d65a3d2eba15f761e7d2740ab62650384edff27a1f8277dd6ccfa45813863
73
- dependencies:
74
- - name: espressif/esp_libsrtp
75
- registry_url: https://components.espressif.com
76
- require: private
77
- version: ^1.0.0
78
- source:
79
- registry_url: https://components.espressif.com/
80
- type: service
81
- version: 1.5.6
82
- espressif/esp_websocket_client:
83
- component_hash: dc00233af846f3a744ada283a300e0d586040aadc3ee67361645ecdce4523672
84
- dependencies:
85
- - name: idf
86
- require: private
87
- version: '>=5.0'
88
- source:
89
- registry_url: https://components.espressif.com/
90
- type: service
91
- version: 1.8.0
92
54
  idf:
93
55
  source:
94
56
  type: idf
95
57
  version: 6.0.2
96
58
  direct_dependencies:
97
- - espressif/esp_codec_dev
98
59
  - espressif/esp_lcd_co5300
99
60
  - espressif/esp_lcd_panel_io_additions
100
- - espressif/esp_peer
101
- - espressif/esp_websocket_client
102
61
  - idf
103
- manifest_hash: 4251b5a6af848c92c5fbc8b9dbb076a8b2a53c265de5eadaa6d4357945f77209
62
+ manifest_hash: 34ae4cf7c0b000b13ee85d92cb57e298a904e8345f7b179f0b61b01b2f42de35
104
63
  target: esp32s3
105
64
  version: 3.0.0
@@ -294,7 +294,7 @@ set(GEATSC_COMPILE_OPTIONS
294
294
  # Scoped to the generated GEATSC archive only (this block never applies to
295
295
  # framework or app source), so hand-written uninitialized bugs still error.
296
296
  -Wno-uninitialized
297
- -O2
297
+ -${GEA_BUILD_COMPILER_GENERATED_CODE_OPTIMIZATION}
298
298
  -mtext-section-literals
299
299
  )
300
300
  set(GEATSC_COMPILE_DEFINITIONS "")
@@ -303,18 +303,7 @@ if(NOT CMAKE_SCRIPT_MODE_FILE)
303
303
  "${GEA_HOST}/host/rtc_esp.cpp"
304
304
  PROPERTIES COMPILE_OPTIONS "-Wno-unused-variable;-Os"
305
305
  )
306
- if(GEA_EMBEDDED_APP STREQUAL "canvas-3d" OR GEA_EMBEDDED_APP STREQUAL "sky-hop-jsx")
307
- list(APPEND GEATSC_COMPILE_DEFINITIONS GEA_CPP_MINIMAL_GLOBAL_OBJECT=1)
308
- endif()
309
- if(GEA_EMBEDDED_APP STREQUAL "canvas-3d")
310
- list(APPEND GEATSC_COMPILE_DEFINITIONS GEA_EMBEDDED_DIRECT_CANVAS_CONTEXT=1)
311
- set_property(SOURCE
312
- ${GEA_APP_ENTRY_SRC}
313
- "${GEA_CORE}/runtime.cpp"
314
- "${GEA_ENGINE}/ui/canvas_element.cpp"
315
- "${GEA_EMBEDDED_ROOT}/targets/esp32/services/frame_scheduler.cpp"
316
- APPEND PROPERTY COMPILE_DEFINITIONS GEA_EMBEDDED_DIRECT_CANVAS_CONTEXT=1)
317
- endif()
306
+
318
307
  endif()
319
308
  set(GEA_EMBEDDED_HTTPS_REQUIRES "")
320
309
  set(GEA_EMBEDDED_HTTPS_COMPILE_DEFINITIONS "")
@@ -431,85 +420,7 @@ if(_GEA_EMBEDDED_ENABLE_HTTPS AND GEA_EMBEDDED_CAPABILITY_NETWORK)
431
420
  list(APPEND GEA_EMBEDDED_HTTPS_REQUIRES mbedtls)
432
421
  endif()
433
422
 
434
- set(GEA_EMBEDDED_DIRECT_CANVAS_PROFILE 0)
435
- if(GEA_EMBEDDED_APP STREQUAL "canvas-3d" OR GEA_EMBEDDED_APP STREQUAL "gea3d-cube")
436
- set(GEA_EMBEDDED_DIRECT_CANVAS_PROFILE 1)
437
- endif()
438
- # The profile controls two independent things that only canvas-3d wants
439
- # together: (a) the lean board build (minimal framework sources, radios off,
440
- # boot services off, flush pool) and (b) the SLIM direct-canvas geatsc
441
- # emission (direct_canvas_runtime.h — no gea_cpp_value dynamic machinery).
442
- # gea3d-cube needs (a) but its class-heavy emitted code requires the full
443
- # runtime, so its codegen stays on the standard emission.
444
- set(GEA_EMBEDDED_DIRECT_CANVAS_CODEGEN ${GEA_EMBEDDED_DIRECT_CANVAS_PROFILE})
445
- if(GEA_EMBEDDED_APP STREQUAL "gea3d-cube")
446
- set(GEA_EMBEDDED_DIRECT_CANVAS_CODEGEN 0)
447
- endif()
448
-
449
- # f32 `number` storage WITHOUT the slim direct-canvas runtime: the S3 FPU is
450
- # single-precision, so full-runtime DOM apps that opt in here keep the whole
451
- # gea_cpp_value/DOM machinery but lower `number` to gea_f32 (and Math.* to the
452
- # f32 helpers). Independent of the direct-canvas profile above.
453
- set(GEA_EMBEDDED_NUMBER_F32 0)
454
- if(GEA_EMBEDDED_APP STREQUAL "bouncing-balls-jsx" OR GEA_EMBEDDED_APP STREQUAL "bubble-grid")
455
- set(GEA_EMBEDDED_NUMBER_F32 1)
456
- endif()
457
- # bubble-grid was MEASURED on f32 and is a REGRESSION — do not re-enable
458
- # without re-measuring. f32 did what it says (fn_computeFisheye's soft-float
459
- # helper calls dropped 48 -> 13, sqrt -> sqrtf), yet the draw loop went
460
- # 6.57ms -> 8.3ms/frame. The per-circle SDF was never the dominant cost; the
461
- # remaining float<->int64 conversion calls (__fixsfdi/__floatdisf) at the
462
- # Int32Array/Uint16Array batching boundary cost more than the double math
463
- # saved.
464
-
465
- # FUSE_REPLAY_FLUSH: bouncing-balls-jsx (DOM, full-screen-dirty every frame) skips
466
- # the separate replay-into-framebuffer pass AND the PSRAM->staging copy by fusing
467
- # the replay into the flush — measured 30->47 fps. canvas-3d/gea3d-cube stay on the
468
- # persistent-framebuffer path (0) that matches their 70-90fps historical numbers
469
- # (see the FUSE=0 comparison-mode comment on the flag below).
470
- set(GEA_EMBEDDED_FUSE_FLUSH_VALUE 0)
471
- if(GEA_EMBEDDED_APP STREQUAL "bouncing-balls-jsx")
472
- set(GEA_EMBEDDED_FUSE_FLUSH_VALUE 1)
473
- endif()
474
-
475
- # SUBTREE_REVEAL_CHECK (default 1): b300e2d added a per-node, per-frame call to
476
- # DisplayList::subtreeRevealsUnrecordedContent — an O(nodeCount) whole-tree scan — in the
477
- # keep-display-list guard, to reveal content that was culled outside the record-time clip
478
- # and later pans INTO view (sky-hop). Apps whose content never leaves the viewport can't
479
- # reveal anything, so for 64 translating balls it is O(N^2) waste AND spuriously forces a
480
- # full display-list record every frame (measured: dlist 1499->300us, 47->50fps). Opt those
481
- # apps out. Keep it ON (1) for any app that pans/reveals off-clip content.
482
- set(GEA_EMBEDDED_REVEAL_CHECK_VALUE 1)
483
- if(GEA_EMBEDDED_APP STREQUAL "bouncing-balls-jsx")
484
- set(GEA_EMBEDDED_REVEAL_CHECK_VALUE 0)
485
- endif()
486
-
487
- # Skip Left/Top inline-style recording for apps whose position comes only from a reactive
488
- # keyed list (bouncing-balls-jsx re-applies every frame; the record self-corrects). ~384µs/frame.
489
- set(GEA_EMBEDDED_SKIP_POSITION_RECORD_VALUE 0)
490
- if(GEA_EMBEDDED_APP STREQUAL "bouncing-balls-jsx")
491
- set(GEA_EMBEDDED_SKIP_POSITION_RECORD_VALUE 1)
492
- endif()
493
-
494
- # CS-held (non-draining) framebuffer stream: pipeline the fused-raster chunks via
495
- # queueColorStreamData (raster chunk N+1 overlaps chunk N's DMA) exactly like the
496
- # present path that gets non-jsx to 65fps — instead of the synchronous per-chunk
497
- # txColor that drains the SPI queue every chunk. MEASURED 2026-07-08 net-neutral:
498
- # CS-held at 36-row/14-chunk = 58.3fps vs draining 58.7 (noise). The fused flush is
499
- # NOT drain-bound — pipelining doesn't help. The ~1.6ms gap vs non-jsx's present
500
- # path (11.9ms/65fps) is the RASTER ROUTINE: jsx replays a full reactive display
501
- # list (64 nodes: clip/style/layout) per chunk vs present's lean command list.
502
- # Closing it needs a fused-raster→command-list rewrite, not drain-vs-CS-held.
503
- # Left 0 (draining path proven); code kept in display.cpp gated off. Do not retry
504
- # CS-held at other chunk sizes: 16-row = 47.5fps (per-chunk overhead x31 dominates).
505
- # PROBE RESULT 2026-07-08: rasterSum~4350us / flushWall~11800us — fused raster is only
506
- # 37% of the flush and FULLY HIDDEN under DMA slot-waits. Flush is WIRE-BOUND at ~34MB/s
507
- # (=present's rate). The ~1.7ms/frame beginColorStream bus-acquire cancels CS-held's
508
- # pipelining gain → net-neutral. Conclusion: a fused-raster→command-list rewrite buys
509
- # NOTHING (raster already hidden), and both jsx & non-jsx share the same ~11.8ms full-
510
- # screen wire floor. The jsx↔non-jsx fps gap is APP COMPUTE (reactive tree), not flush.
511
- set(GEA_EMBEDDED_FB_CS_HELD_VALUE 1)
512
-
423
+ # All app choices are declared in package.json and resolved by the CLI.
513
424
  set(GEA_FW_CXX_SOURCES_FOR_APP ${GEA_FW_CXX_SOURCES})
514
425
  set(GEA_FW_C_SOURCES_FOR_APP ${GEA_FW_C_SOURCES})
515
426
  set(GEA_EMBEDDED_DIRECT_CANVAS_COMPILE_DEFINITIONS "")
@@ -538,6 +449,7 @@ set(GEA_EMBEDDED_TARGET_SERVICE_SOURCES
538
449
  "${GEA_EMBEDDED_ROOT}/targets/esp32/services/app_state.cpp"
539
450
  "${GEA_EMBEDDED_ROOT}/targets/esp32/services/frame_scheduler.cpp"
540
451
  "${GEA_EMBEDDED_ROOT}/targets/esp32/services/heap.cpp"
452
+ "${GEA_EMBEDDED_ROOT}/targets/esp32/services/memory.cpp"
541
453
  )
542
454
  set(GEA_EMBEDDED_TARGET_HOST_SOURCES "")
543
455
  set(GEA_EMBEDDED_TARGET_REQUIRES
@@ -549,7 +461,7 @@ set(GEA_EMBEDDED_TARGET_REQUIRES
549
461
  esp_mm
550
462
  )
551
463
 
552
- if(GEA_EMBEDDED_DIRECT_CANVAS_PROFILE)
464
+ if(GEA_APP_CANVAS_ONLY)
553
465
  set(GEA_FW_CXX_SOURCES_FOR_APP
554
466
  "${GEA_ENGINE}/ui/canvas_element.cpp"
555
467
  "${GEA_ENGINE}/canvas.cpp"
@@ -562,26 +474,9 @@ if(GEA_EMBEDDED_DIRECT_CANVAS_PROFILE)
562
474
  "${GEA_HOST}/host/display.cpp"
563
475
  )
564
476
  set(GEA_FW_C_SOURCES_FOR_APP "")
565
- list(APPEND GEA_EMBEDDED_DIRECT_CANVAS_COMPILE_DEFINITIONS
566
- GEA_EMBEDDED_DIRECT_CANVAS_CONTEXT=1
567
- GEA_EMBEDDED_WIFI_DISABLED=1
568
- # Reserve the full 80-row x 2-deep flush pipeline statically (radios are
569
- # off in this profile, so the internal RAM is genuinely free). Without
570
- # the pool the lazy per-slot mallocs hit boot-time fragmentation and the
571
- # pipeline descends to 16-row chunks — ~5x the QSPI per-transaction
572
- # overhead on a bandwidth-bound link.
573
- GEA_EMBEDDED_DISPLAY_FLUSH_POOL_BYTES=131200
574
- # Present chunks stream as data-only continuations under one held CS
575
- # (window+RAMWR once per region). The per-chunk drawBitmap path sends
576
- # commands per chunk and esp_lcd drains ALL in-flight DMA before every
577
- # command — measured ~18MB/s effective on the 40MB/s link with zero
578
- # raster/DMA overlap. See display.cpp PRESENT_CS_HELD_STREAM comment.
579
- # Enabled: the CS-held path is runtime-gated in display.cpp to the gea3d
580
- # half-res present (presentScale_==2); every other app still takes the
581
- # drawBitmap path, so this only changes the gea3d flythrough.
582
- GEA_EMBEDDED_DISPLAY_CO5300_PRESENT_CS_HELD_STREAM=1
583
- )
584
- else()
477
+ endif()
478
+
479
+ if(NOT GEA_APP_CANVAS_ONLY)
585
480
  # i2c.cpp, launcher_button.cpp and sdcard_mount.cpp are already NC-tolerant:
586
481
  # each checks GPIO_NUM_NC and declines to bring its peripheral up, so a board
587
482
  # that has none of them compiles and boots without special-casing. touch.cpp
@@ -639,7 +534,6 @@ else()
639
534
  "${GEA_EMBEDDED_ROOT}/targets/esp32/services/app_runner.cpp"
640
535
  "${GEA_EMBEDDED_ROOT}/targets/esp32/services/battery_service.cpp"
641
536
  "${GEA_EMBEDDED_ROOT}/targets/esp32/services/device_control.cpp"
642
- "${GEA_EMBEDDED_ROOT}/targets/esp32/services/memory.cpp"
643
537
  "${GEA_EMBEDDED_ROOT}/targets/esp32/services/storage_service.cpp"
644
538
  )
645
539
  # Staging an OTA image is transport-agnostic, so it follows OTA itself rather
@@ -788,12 +682,10 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
788
682
  # pixels (199K->92K) but was SLOWER (47->35fps, inflush 13.3->20.5ms) because the
789
683
  # tight windows fragment into 39 chunks and the CO5300 per-window/per-chunk setup
790
684
  # penalty dominates. Fewer, bigger windows beat fewer pixels on this panel.
791
- GEA_EMBEDDED_FLUSH_ADAPTIVE_COALESCE=1
792
685
  # Opt this FPU-less ESP32-S3 board into single-precision `number` storage:
793
686
  # geatsc's `gea_number` typedef (runtime/gea_number.h) becomes `float` instead
794
687
  # of soft-float `double`, so per-frame reactive/animation math runs on the
795
688
  # hardware FPU. Default (undefined) stays `double` for test262/host correctness.
796
- GEA_NUMBER_FLOAT=1
797
689
  # ONE master switch strips ALL per-frame perf instrumentation on this board —
798
690
  # the app "gea.perf:" line, the scheduler "perf:"/"perf-lite:" harvest, per-op
799
691
  # refresh & canvas timing, the requestAnimationFrame queue timing, and heap
@@ -804,9 +696,7 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
804
696
  # Production build: ALL perf instrumentation stripped (this is how the user's
805
697
  # 60fps reference was measured). The ungated PRODFPS probe in frame_scheduler.cpp
806
698
  # reports the true frame rate independently.
807
- GEA_EMBEDDED_PERF=0
808
699
  GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LOG=0
809
- GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LITE=0
810
700
  GEA_EMBEDDED_TEXT_SPRITE_DIAG=0
811
701
  # css-3d-cube reads transform+gradient every frame on every node; embed the rare
812
702
  # fields inline in ComputedStyle (direct load, spine's access pattern) instead of the
@@ -814,27 +704,22 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
814
704
  GEA_EMBEDDED_RARE_STYLE_INLINE=1
815
705
  # Per-app: skip b300e2d's O(N^2) subtreeRevealsUnrecordedContent reveal-check for apps
816
706
  # whose content never pans off-clip (bouncing-balls-jsx). See the value block above.
817
- GEA_EMBEDDED_SUBTREE_REVEAL_CHECK=${GEA_EMBEDDED_REVEAL_CHECK_VALUE}
818
- GEA_EMBEDDED_SKIP_POSITION_INLINE_RECORD=${GEA_EMBEDDED_SKIP_POSITION_RECORD_VALUE}
819
707
  # DIAG 2026-07-08: uniting dirty into one full-screen bbox saves ~1.2ms of
820
708
  # dirty-tracking but forces the RENDER to re-rasterize every node in the bbox
821
709
  # each frame — including the static 26vmin FPS badge, measured at t:2136us/frame
822
710
  # (bigger than all 64 balls' fill). Keeping the sparse per-ball rects lets the
823
711
  # replay re-raster the badge only where a ball actually overlaps it ("only
824
712
  # re-render the changing parts"); the flush still coalesces via ADAPTIVE_COALESCE.
825
- GEA_EMBEDDED_BROAD_DIRTY_BBOX=1
826
713
  GEA_EMBEDDED_DISPLAY_CO5300_FRAMEBUFFER_STREAM_FLUSH=1
827
714
  # Per-app: pipeline the fused framebuffer flush like the present path (see value
828
715
  # block above). Takes priority over FRAMEBUFFER_STREAM_FLUSH's draining txColor
829
716
  # in display.cpp (streamFlush only runs when csHeldStream is false).
830
- GEA_EMBEDDED_DISPLAY_CO5300_FRAMEBUFFER_CS_HELD_STREAM=${GEA_EMBEDDED_FB_CS_HELD_VALUE}
831
717
  # CS-held data-only present stream (window+RAMWR once per region, chunks stream as
832
718
  # continuations under one held CS). The per-chunk drawBitmap path drains ALL in-flight
833
719
  # DMA before every command, serializing raster against the wire (~18MB/s effective,
834
720
  # measured [chunk.probe] overlap=0). CS-held keeps the queue command-free mid-stream so
835
721
  # a chunk's raster overlaps the previous chunk's DMA → flush approaches the 40MB/s wire
836
722
  # floor (~10.3ms). Runtime-gated in display.cpp to any full-region present.
837
- GEA_EMBEDDED_DISPLAY_CO5300_PRESENT_CS_HELD_STREAM=1
838
723
  # NOTE (2026-07-07): overlapping the flush with the app's next-frame compute by moving
839
724
  # the flush to a separate present task was tested in 4 configs, all WORSE than the
840
725
  # inline 50fps: core-1 task DEADLOCKS (CO5300 held-CS SPI wedge); same-core (low-prio,
@@ -861,7 +746,6 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
861
746
  # Old-spine comparison mode: persistent framebuffer path, no replay-fused
862
747
  # flush. This keeps canvas-3d on the path used by the 70-90fps historical
863
748
  # measurements while we compare the newer runtime/binary size separately.
864
- GEA_EMBEDDED_DISPLAY_FUSE_REPLAY_FLUSH=${GEA_EMBEDDED_FUSE_FLUSH_VALUE}
865
749
  # Golden (e6614f6a, 62fps) used no partial-flush edge pad and showed no smudge.
866
750
  # The 2px all-sides pad inflates every per-rect ball flush window (~24/frame:
867
751
  # 15k -> 24k px). Drop it; if the CO5300 left-edge smudge reappears it's a
@@ -1012,10 +896,8 @@ file(GLOB_RECURSE _GEATSC_DIST_SRCS CONFIGURE_DEPENDS
1012
896
  )
1013
897
  add_custom_command(
1014
898
  OUTPUT ${_GEATSC_BUILD_STAMP}
1015
- COMMAND ${CMAKE_COMMAND} -E env
1016
- "GEA_EMBEDDED_DIRECT_CANVAS_CONTEXT=${GEA_EMBEDDED_DIRECT_CANVAS_CODEGEN}"
1017
- "GEA_EMBEDDED_NUMBER_F32=${GEA_EMBEDDED_NUMBER_F32}"
1018
- node ${_GEA_VITE_GEATSC_SCRIPT}
899
+ COMMAND node ${_GEA_VITE_GEATSC_SCRIPT}
900
+ --build-config "${GEA_BUILD_CONFIG_JSON}"
1019
901
  --app-dir ${GEA_EMBEDDED_APP_DIR}
1020
902
  --entry ${GEA_EMBEDDED_APP_ENTRY}
1021
903
  --cpp-board "${GEA_EMBEDDED_CPP_BOARD}"
@@ -1029,6 +911,7 @@ add_custom_command(
1029
911
  ${GEA_EMBEDDED_APP_GEATSC_PLUGIN_ARGS}
1030
912
  COMMAND ${CMAKE_COMMAND} -E touch ${_GEATSC_BUILD_STAMP}
1031
913
  DEPENDS
914
+ "${GEA_BUILD_CONFIG_JSON}"
1032
915
  ${GEA_EMBEDDED_APP_GEATSC_PLUGINS}
1033
916
  ${_ACTIVE_APP_SRCS}
1034
917
  ${_ACTIVE_APP_ASSETS}