Repository navigation
Conversation
With the box art cache, folders skipped the box art load, so a folder's slot kept the box art of whatever entry had been there before. Folders now go through the same lookup and get marked as having no box art. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
moveCursor(), getFileInfo(), previousPage() and nextPage() took the directory listing by value, copying every entry's name on each call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Finding an entry's box art took up to four access() calls, each resolving the path from the card root, and each miss scanning the whole box art folder. The folder is now listed once and lookups are answered from memory (DSi-class consoles; non-ASCII names still fall back to access()). The cache loader and the top screen share the same lookup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bgOperations() runs once per directory entry while loading, and each call formatted the date and time into strings. Both now return early unless the second (or the colon blink) changed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- libfat cache raised from 64 KB to 256 KB per drive in DSi mode, so folders and FAT sectors stay cached while loading. - DSi/3DS themes: box art is opened once instead of getFileSize() + fopen(). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Member
|
Closing, since it sounds like AI was used to write the whole code. |
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.
Depends on #2717
What's changed?
Basically improve the loading time of the game list.
One of the most useful fixes are the index and how files are read and tested while loading a page. This improves quite a lot the loading of each page because there is way less polling on the SD card for every entry.
Was AI used?
What was AI used for?
Investigate where the time was spent on, and to implement the fix.
Where have you tested it?
Tested on my own DSi
Pull Request status