Repository navigation
Bottom screen: reuse unchanged wild-list snapshots - #273
Merged
ZallaxDev merged 2 commits intoNov 20, 2026
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
mkrieger95
force-pushed
the
perf/mkrieger95-encounter-cache
branch
from
November 18, 2026 15:26
c47434a to
6edf9d2
Compare
Author
|
@ZallaxDev - rebuilt this after #272 merged |
Owner
|
Thanks a lot @mkrieger95! Built and tested in Azahar (alone and combined with #209): the wild-list snapshots on the bottom screen are reused correctly and nothing regressed when catching or changing maps. Merging. |
ZallaxDev
added a commit
that referenced
this pull request
Nov 21, 2026
- public_sync: an integration commit is held when each file has what it adds; changelog credits beside the pull requests' own entries - Changelog: public pull requests #190 #209 #262-#300, by their authors - public_sync: dev takes integration's ported pull requests as their own commits; a conflict or unported pull requests are problems, not a line - Public export: the benchmark, profiling and macOS builder test tools (#293, #295, #300) - Public export: upstream.lock's Python 3.15.2 and Pillow 13.0.0 (#288, #289) - Harden Emerald 3DS runtime and builder workflows (#300) - Replace deprecated Pillow pixel reads in voxel tools (#294) - Add opt-in macOS standalone builder support (#295) - Locales: move the Japanese span in main_menu.c past the main menu card (#298) - Fly map: choose the destination with the +Control Pad (#267) - Bottom screen: a tap on the map that slides a little still goes on with a message (#281) - Summary: give the trainer memo room for a third line (#269) - Summary: show Pokémon status icons (#270) - Main menu: the saved game's trainer card on the top screen (#284) - Restore Japanese naming marks and full touchscreen rows (#275) - Speed up voxel generation to shorten development builds (#293) - Release: ship bottom/menu_top.bin with the engine files (#280) - Bag: planting a berry opens it in the bottom screen's window (#283) - Frontier Pass map: the picture half as big again, filling its plate (#282) - CI: support Ubuntu 26.04 with non-PIE sanitizer fixtures (#290) - Startup: the data pack errors and the START hint in French and Italian (#209) - Installation: step-by-step builder for Linux and macOS (#190) - Bottom screen: reuse unchanged wild-list snapshots (#273) - Upgrade release builds to Pillow 13.0.0 (#289) - Naming screen: a tab turns straight to its page (#287) - ci: upgrade GitHub Actions to latest tested releases (#292) - Generate map event IDs for standalone voxel host tests (#277) - Tests: update the voxel draft chunk fixture (#262) - Harden native string formatting and numeric input parsing (#279) - Build releases with Python 3.15.2 (#288) - Visible wild: roll the IVs right after the personality (PID/IV legality) (#266) - CI: use the release toolchain for 3DS builds (#286) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
While the wild list is open, each bottom-screen snapshot walks the encounter tables, rebuilds the rows, and queries the Pokédex even when the area, page, and progress are unchanged. The redraw check can skip painting the screen, but it happens after this repeated CPU work.
Cache the last wild-list page and reuse it when its inputs match. Refresh it when the map, page, uncaught-filter mode, effective timed encounter phase, Altering Cave set, wild randomizer settings, or the Pokédex flag bytes change. The cache still makes a small per-frame input check so new catches and encounters show up promptly.
Validation: bottom-screen host tests passed, including a check that identical snapshots skip both encounter table construction and individual Pokédex flag lookups. The tests also verify that toggling the uncaught filter refreshes the cache even when the page number stays the same. Production timed encounter tests and
git diff --checkpassed. No on-hardware speedup is claimed.Based on
integrationafter #272 merged. AI-assisted implementation.