ngld / knossos

NuKnossos a complete rewrite of the old Knossos mod manager. Nebula also lives here since it's easier to manage both projects in a single monorepo. If you're looking for the old code, go to https://github.com/ngld/old-knossos.
Apache License 2.0
24 stars 2 forks source link

Support LZ4 compression #30

Open ngld opened 3 years ago

ngld commented 3 years ago

Thanks to @ShivanSpS, FSO supports compressing both loose files as well as files in VPs using LZ4. However, while a compressed VP is smaller than an uncompressed VP, a .7z of an uncompressed VP is smaller than a .7z of a compressed VP. This is the result of the unfortunate fact that compressing already compressed data usually doesn't work well. This means in practice that we don't want to upload compressed VPs to Nebula. Instead, we'd apply the LZ4 compression after we extract the uncompressed VPs from their .7z archives.

For reference, here is @ShivanSpS' compression code: https://github.com/Shivansps/VPC_Compressor

Some things to keep in mind: