adrienabbey / REALLY-kinda-BAD-IDLE-GAME-Just-Kidding-The-Prequel-II

Team Project for Introduction to Software Engineering
1 stars 1 forks source link

Compress large audio files into .ogg and pictures into .webp or jpeg xl to reduce game file size #97

Open MuhammedAbu opened 3 months ago

MuhammedAbu commented 3 months ago

Smaller audio files like sfx can be kept in .wav, since there is some overhead decoding done with compressed formats which can cause latency issues. Can reduce current game file size of ~800mb into less than 100mb if all unused assets are removed when the game is finalized, and all the actively used aseets are compressed.

What audio format should I use when publishing a game?

Jpeg XL

adrienabbey commented 3 months ago

For our application, there's little reason to be concerned about decoding overhead, so compressing all the audio should be fine. It's not the kind of game where a few milliseconds of delay will be noticeable.

Probably a good idea to focus on file formats that Java natively support. I'm all for exploring using libraries to enable other file formats later, but for now we need to focus on getting things working before the looming due dates.