Skip to content

feat: "Optimize" image directories by moving unused bin files to a backup dir#100

Draft
g026r wants to merge 11 commits intomainfrom
optimize_images
Draft

feat: "Optimize" image directories by moving unused bin files to a backup dir#100
g026r wants to merge 11 commits intomainfrom
optimize_images

Conversation

@g026r
Copy link
Copy Markdown
Owner

@g026r g026r commented Jul 1, 2025

What this does:

FAT isn't a terribly efficient file system when it comes to directories with a large number of files. For something like GB/GBC or GBA, where a full library set of either is roughly 3,000 images, this can add a noticeable lag to cartridge recognition due to it having to first parse the file allocation table in order to determine if an image is present.

Why would I want it

Depending on the speed of your SD card, this lag can be up to a second or two when selecting Run Cartridge. If you aren't really adding any new cartridges to your library & you aren't using the library browser option, there's no need to keep all those images in the directory.

Why wouldn't I want it

You're constantly adding new games to your library. You're mostly playing non-Game Boy systems, where the recognition lag is significantly lower. You just don't care about that extra time.

Does it get rid of all the lag?

Unfortunately no. Either the signature algorithm or looking up the correct game information is a bit slow on the Pocket, so those same systems will be improved but never be as a fast as e.g. the Neo Geo Pocket.

Still left to do:

  • Further testing
  • Check to see if the image is in the _bak dir when adding/editing/generating an entry
  • Unit tests
  • Figure out which menu to put this under

@g026r g026r marked this pull request as draft July 1, 2025 17:09
@g026r g026r added the enhancement New feature or request label Jul 1, 2025
@g026r g026r self-assigned this Jul 1, 2025
@g026r g026r force-pushed the optimize_images branch 2 times, most recently from 4b2add3 to 2d77cdc Compare August 28, 2025 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant