I thought I'd read on the wiki that v5 of the bootloader handles fragmentation better?Artcfox wrote: ↑Sun Feb 19, 2023 8:25 amJust a FYI, deleting files off the SD card can cause fragmentation, which would break a bunch of games that require their level data to be contiguous (for speed purposes) if any of those games were copied to the SD card after the fragmentation took place.
Edit: The best way to restore full speed of a fragmented SD card is to format it with this proprietary tool: https://www.sdcard.org/downloads/formatter/ which only has a Windows and Mac version, because it does some behind the scenes magic to make sure the filesystem parameters match up with the underlying hardware implementation for that specific card. I guess on Linux, one could create a compressed image of the card before copying any files to it, and then use dd to restore the formatted image back.
It seems that the majority of Uzebox games can run entirely from flash without and any data stored on SD card. It seems its only really T2K and playing audio files with Uzeamp that might require a defragged SD card. I've been deleting and adding stuff onto my SD card without issue so far. T2K still seems to play after all my messing without any defrags so maybe its only really Uzeamp that is hyper sensitive to fragmentation?
I would imagine that simply copying all of the files off your SD card, then doing a full mkfs.vfat format or dd'ing the disk and then doing a quick vfat format should both fix fragmentation but there is also at least one tool to defrag FAT32 (and NTFS) disks from Linux:
https://github.com/749/UltraDefrag4Linux
There is at least one more but I'm struggling to find it or remember what it was called.