Files
tactility_apps/Apps/LuaGame/main
Adolfo ca1202345e fix(LuaGame): PSRAM Lua alloc, conditional audio, exit gesture, on-demand
- Custom lua_psram_alloc uses heap_caps_malloc(SPIRAM|8BIT) fallback to reduce internal heap pressure
  - Fixes sdmmc_read_sectors not enough mem (0x101) and MemoryChecker low 359 bytes
- Audio skipped for solitaire (no sfx/tone in source) to save RAM: 'audio not needed, skipping SfxEngine'
- Exit: game.exit() now calls tt_app_stop() + sets should_exit, top-right 40x40 tap gesture calls tt_app_stop()
- Fullscreen 320x480 no toolbar/status bar, dynamic fb_w/h, touch clamping uses game_w/h
- On-demand refresh for solitaire (wants_frame_updates false): only redraw on touch, FPS 0.1-1.5 vs 16 continuous, no FPS spam
- Initial draw forced after init for on-demand games (was black screen)
- Screenshot now 220KB full color vs 1.2K 4-bit, shows solitaire cards with optimized LEFT=4 GAP=4 TOP_Y=4 TAB_Y=60 (was 37/10/30/98) - no window chrome
- Tested solitaire loads external 24430 bytes, pico=1, no Lua errors
2026-07-31 13:23:40 -04:00
..