just out of interest, i did some testing to see how well zip archive compression compares to png compression through gimp (presumably gimp doesn't compress it as well as tools specialing in png, but probably does a decent job).
for the test, i grabbed a jpg, and saved it to an uncompressed png through gimp, and then saved it to a seperate png with as much compression as gimp would allow. then i zipped each of these using the standard foss zip utility, with default compression (level 6) - that is, compressed.zip contains only compressed.png, and uncompressed.zip contains only uncompressed.png, and these were the results.:
Code: Select all
22K original.jpg
165K compressed.png
165K compressed.zip
614K uncompressed.png
171K uncompressed.zip
i used zip compression to simulate the wz package format conditions.
now, given that default zip compression has
almost the same level deflation as png compression, at least in this case, it seems to be of little benefit to compress the png's themselves, unless your computer has extremely slow disk access. i'd want a second opinion on this, but depending on if warzone stores the contents of wz files temporarily on disk or if it loads them into memory, better performance might actually be achieved by leaving the png's individually uncompressed.
- if the zip file is unzipped, in whole, into main memory or on disk, then there'd be some small performance benefit to leaving them uncompressed, with the exception of being dumped onto a really slow disk (in which case io is the bottleneck).
- if the zip file is initially catalogued, but then has required files selectively decompressed from the archive, then there'd be no notable difference between full png compression and no png compression, since zip wouldn't effectively be able to compress a self-compressed png, and an uncompressed png would get compressed by the zip archiver -- either way, it only has to go through one logical stage of decompression.