The-Aether
The-Aether copied to clipboard
feat: jar size reduction
changes
- compressed all png images with ect and oxipng
- compressed all sounds with optivorbis
- added a small script that minifies json files and re-zips the jar with java/zlib's highest compression setting
- removed datagen
.cache/
folder from jar
should save at least 2-3 megabytes, probably more when combined with https://github.com/The-Aether-Team/Nitrogen/pull/21
I didn't realize that there was a commit naming policy, if necessary I can redo this, but squashing this pr should fix it anyways
I agree to the Contributor License Agreement (CLA).
I can't check this out at the moment, but do block textures like leaves still have their transparent cutout parts made black when opaque with fast graphics? That has been an issue in the past with texture optimization attempts.
They do.
(the berry bush not becoming opaque also happens with the non-pr branch)
Apologies for not having been able to get around to reviewing this yet. We've been in the middle of a porting period which has been taking longer than expected, so I plan to look more in-depth at this after we release the 1.20.4 port and focus on the 1.5.0 update milestone.
I suggest to please update the description to reflect that you are not using machete anymore, it will probably be easier for the Aether team. Thanks!
sorry! it should be more accurate now.
Should I do that by creating a new PR or by switching the branch on this one and merging everything?
Should I do that by creating a new PR or by switching the branch on this one and merging everything?
Switching branch and merge everything then encompass new things and updated things etc (just would be my personal preference)
Ended up implementing a different implementation of the first iteration of this as #2196. Keeping the image optimizations to the script instead of manually updating them on the repository is better for future-proofing, and the sound designers are more in charge of the audio optimizations. Using the machete plugin will also likely be better for maintainability from its simplicity.