Games folder lossless recompression (carousel)
Nov 19, 2018 3:35:59 GMT
gurce, jj0, and 1 more like this
Post by crispin on Nov 19, 2018 3:35:59 GMT
GAMES FOLDER LOSSLESS RECOMPRESSION (CAROUSEL)
updated data for firmware 1.2.0 (Gallencia 53079 > 49967 diff 3112 bytes - 3KB)
If you losslessly recompress files with FileOptimizer, you will gain 6% or 0,4MB of free space at Mini.
If average game is using 90kB, it means 4 more games (68 instead 64), occupying same space.
It stands for Europian (PAL) version; US (NTSC) version will gain more, because there are ~10 games more.
(see gurce.net/c64mini/existing_multi-game_disks#robert_gray_s_collection)
DETAILED CALCULATION
games folder original:
6266004 Bytes - 6 MB
games folder recompressed:
5866433 Bytes - 5,6 MB
difference:
399571 Bytes - 390KB - 0,38MB (0,4MB)
Little over 6% bytes less then original (6,38%), or: original is 6,81% bigger then recompressed files.
Because of file system clustering etc, files occupies slightly more space.
So for real use it could be slightly more (7%).
edit: Recompressed Paolo's game set is 11,77MB instead 14MB: 2,23MB freed. Add it to 0,38MB of above.
WHY THAT METTERS?
There is limited space at Mini for adding your games. Because of way it is done (full snapshots+screens+covers+description), it is possible to add up to 83 extra games (total limit of titles at Carousel is 150). It means only ~24MB free for extra software, not more.
Exact amount of free space depends of your game saves, model/firmware version etc.
I added (recompressed!) Paolo's 84 games set to existing one, cca 11MB (I had to remove one game from original set because of Galencia, that came with fw 1.2.0). I changed default music (file is now bigger), added Midnight Commander to Mini (5,4MB). Right now I have 6,6MB left, according to this:
After replacing default games with recompressed version, available space raised to 7,0 MB!
HOW TO DO IT YOURSELF
Caution: First back up copy of original files! Just in case.
The simplest way is to use FileOptimizer by Nikkho (thank you Javier!). It is Windows tool but it runs at Windows, Linux, OS X (I am using it at Linux for years).
From Menu/Optimize/Options.../General 1/"Optimization level" choose "9 - best".
You should consider to adjust "Process priority" as "Above normal" or "High".
Then just drag & drop file(s) to optimize and click Optimize/Optimize all files (or just Ctrl+O).
Now copy your recompressed games (with subfolders) to usb stick / memory card, Plug it in to Mini and login, then:
mount /tmp/usbdrive/sda1 /mnt
mount -o remount, rw /
(as usual)
cp -fr /mnt/games /usr/share/the64/games
mount -o remount, ro /
umount /mnt
poweroff
(as usual)
(^ this is for UART mod, for FEL it could be little different)
updated data for firmware 1.2.0 (Gallencia 53079 > 49967 diff 3112 bytes - 3KB)
If you losslessly recompress files with FileOptimizer, you will gain 6% or 0,4MB of free space at Mini.
If average game is using 90kB, it means 4 more games (68 instead 64), occupying same space.
It stands for Europian (PAL) version; US (NTSC) version will gain more, because there are ~10 games more.
(see gurce.net/c64mini/existing_multi-game_disks#robert_gray_s_collection)
DETAILED CALCULATION
games folder original:
6266004 Bytes - 6 MB
games folder recompressed:
5866433 Bytes - 5,6 MB
difference:
399571 Bytes - 390KB - 0,38MB (0,4MB)
Little over 6% bytes less then original (6,38%), or: original is 6,81% bigger then recompressed files.
Because of file system clustering etc, files occupies slightly more space.
So for real use it could be slightly more (7%).
edit: Recompressed Paolo's game set is 11,77MB instead 14MB: 2,23MB freed. Add it to 0,38MB of above.
WHY THAT METTERS?
There is limited space at Mini for adding your games. Because of way it is done (full snapshots+screens+covers+description), it is possible to add up to 83 extra games (total limit of titles at Carousel is 150). It means only ~24MB free for extra software, not more.
Exact amount of free space depends of your game saves, model/firmware version etc.
I added (recompressed!) Paolo's 84 games set to existing one, cca 11MB (I had to remove one game from original set because of Galencia, that came with fw 1.2.0). I changed default music (file is now bigger), added Midnight Commander to Mini (5,4MB). Right now I have 6,6MB left, according to this:
root@redquarkone:/$ df -h
Filesystem Size Used Available Use% Mounted on
none 68.9M 62.3M 6.6M 90% /dev
/dev/nandb 68.9M 62.3M 6.6M 90% /
tmpfs 52.7M 0 52.7M 0% /dev/shm
tmpfs 52.7M 0 52.7M 0% /tmp
tmpfs 52.7M 8.0K 52.7M 0% /run
After replacing default games with recompressed version, available space raised to 7,0 MB!
root@redquarkone:/$ df -h
Filesystem Size Used Available Use% Mounted on
none 68.9M 61.9M 7.0M 90% /dev
/dev/nandb 68.9M 61.9M 7.0M 90% /
HOW TO DO IT YOURSELF
Caution: First back up copy of original files! Just in case.
The simplest way is to use FileOptimizer by Nikkho (thank you Javier!). It is Windows tool but it runs at Windows, Linux, OS X (I am using it at Linux for years).
From Menu/Optimize/Options.../General 1/"Optimization level" choose "9 - best".
You should consider to adjust "Process priority" as "Above normal" or "High".
Then just drag & drop file(s) to optimize and click Optimize/Optimize all files (or just Ctrl+O).
Now copy your recompressed games (with subfolders) to usb stick / memory card, Plug it in to Mini and login, then:
mount /tmp/usbdrive/sda1 /mnt
mount -o remount, rw /
(as usual)
cp -fr /mnt/games /usr/share/the64/games
mount -o remount, ro /
umount /mnt
poweroff
(as usual)
(^ this is for UART mod, for FEL it could be little different)