mikejsavage/cocainediesel

Black magic tool that can save a few megabytes in your base folder

adem4ik opened this issue · 3 comments

Result: After 3h 45m "base" folder size decreased from 61.9 MB to 51.4 MB
image
image

If you want to get better optimization you can try "Optimization level - Best" (at the cost of much longer time) & "Allow lossy optimizations" in PNG/JPG tabs (at the cost of visual quality loss). It works nicely with JPG/PNG, and less efficiently with OGG/WAV.

Also it can be a good practice to optimize media files before every realese. Or you can try to make it automatically (example https://github.com/SuperTux/supertux/blob/master/tools/png_recompress.sh ) using different open-source tools widely available on le internet. You can find a list of them here https://nikkhokkho.sourceforge.io/static.php?page=FileOptimizer at Description section.

Cheers.

wb adem

so I'm not too bothered by this:

  • the game is already tiny by game standards
  • lots of assets need replacing
  • upcoming changes are going to increase game size substantially (physx, new ui) so cutting 10MB is going to become less of a win

that said I do run optipng from time to time and if there are some free wins we may as well

Well, I can make a pull request with better optimization level tomorrow, if you don't mind.

nah don't worry about it. thanks though