I have made some experiments with my compression chain. But I can’t shrink my game as good as Gef.
Especially kzip and bjwflate have not the effect as hoped.
But I found the tool zopfli from google. This tool has good results.
Maybe the weak spot of the compression chain is elsewhere? Maybe my proguard settings are not optimal?
You can found my pro-file here:
http://pastebin.java-gaming.org/7847a3c2087As announced I uploaded 3 sources.
This is the original 4k-Source:
http://pastebin.java-gaming.org/847ac402781This is the 4k-Source with radar:
http://pastebin.java-gaming.org/47ac0572185And finally the full featured version:
http://pastebin.java-gaming.org/7ac0761258cHere are my compression results (with immediate data):
4k-version:Original JAR: 10.541 Bytes
After JARG: 5.400 Bytes
After Proguard: 5.328 Bytes
After Pack200 (without compression): 8.586 Bytes
Now I tried 4 different compression tools on the pack200 result:
KZIP: 4.084 Bytes
7Zip: 4.061 Bytes
BJwflate: 4.103 Bytes
Zopfli: 3.980 Bytes
At the end I used deflopt on every result:
KZIP: 4.075 Bytes
7Zip: 4.056 Bytes
BJwflate: 4.103 Bytes
Zopfli: 3.980 Bytes
radar-version:Original JAR: 11.274 Bytes
After JARG: 5.749 Bytes
After Proguard: 5.679 Bytes
After Pack200 (without compression): 9.083 Bytes
Now I tried 4 different compression tools on the pack200 result:
KZIP: 4.396 Bytes
7Zip: 4.364 Bytes
BJwflate: 4.389 Bytes
Zopfli: 4.262 Bytes
At the end I used deflopt on every result:
KZIP: 4.377 Bytes
7Zip: 4.360 Bytes
BJwflate: 4.387 Bytes
Zopfli: 4.262 Bytes
Full-featured-version:Original JAR: 12.754 Bytes
After JARG: 6.410 Bytes
After Proguard: 6.357 Bytes
After Pack200 (without compression): 11.114 Bytes
Now I tried 4 different compression tools on the pack200 result:
KZIP: 4.920 Bytes
7Zip: 4.907 Bytes
BJwflate: 4.951 Bytes
Zopfli: 4.874 Bytes
At the end I used deflopt on every result:
KZIP: 4.898 Bytes
7Zip: 4.904 Bytes
BJwflate: 4.950 Bytes
Zopfli: 4.874 Bytes
Maybe these information are useful for someone else.
@Gef and moogie:
It would be great if you have a good idea to save the radar.
Otherwise I think I’ll implement some minor gfx effects into the last bytes I won with zopfli.
Anyway I thank you for your support.
Felix...