Repository navigation
Launcher: the backdrop in 64 px tiles, smaller LVGL draw buffers (redraws 57 -> 41 ms, +184 KB in games) - #30
Merged
Conversation
- emu-ui perf/pattern-tile-size: the backdrop's pattern tile is repeated
to 64 px instead of one period (6-22 px): a few hundred draws per full
redraw instead of ~25,600. Scrolling the launcher, the average redraw
goes from 57 to 41 ms and the slowest from 164 to 111 ms.
- The LVGL draw buffers are a twentieth of the screen instead of a tenth:
they stay allocated during games (for the pause menu), so every game
gets 184 KB back (GBA: 5425 -> 5548 KB free with the tiles' cache).
With tenths the launcher measured 37 ms (slowest 96 ms).
- overlay_image.py: words inside merged strings (.str1.N) are not
references into the overlay. Any change to the strings can align four
characters that spell an overlay function's address (" 60H" =
0x48303620, a function start in four cores) and fail the build.
A full-frame LVGL draw buffer for the launcher was measured and left out:
one buffer serializes drawing with the PPA rotation (57 -> 66 ms
average), two (3.5 MB) only trim the slowest redraws (96 -> 80 ms) and
fragment the launcher's heap.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY
finger563
added a commit
that referenced
this pull request
Nov 21, 2026
tools/overlay_image.py: both sides added the merged-strings exception (#30 and this branch); main's version is kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Launcher redraws are about 30% faster, and every game gets 184 KB of PSRAM back.
perf/pattern-tile-size): the launcher's background pattern was drawn one 6-22 px tile at a time, about 25,600 draws per full redraw. That was the largest single cost of a redraw, and the larger tiles take a few hundred draws.overlay_image.py: words inside merged strings (.str1.N) no longer count as references into the core overlay." 60H"is0x48303620, a function start in four cores. That failed the build.maincould hit it with any change.Measurements (Tab5, 20 s of scrolling, LVGL
REFR_STARTtoREFR_READY)Measured and left out: a full-frame LVGL draw buffer for the launcher
The buffer was allocated while the launcher shows and freed when a game starts.
wait_for_flushingtook 18% of the GUI task. The two 1/10 buffers overlap these.Testing
main.Merge esp-cpp/emu-ui#1 first; this PR's emu-ui submodule points at its branch.
🤖 Generated with Claude Code
https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY