GZip Implemented (Patreon)
Content
The GZip compression is finally working. It was implemented in a fully transparent way, which means that it's not using the .gz extension on filenames. Due to this, the old uncompressed files can still be loaded by the engine, but new files generated with compression won't be compatible with previous versions of Retroquad.
Right now, the only files that are being saved with compression are the FQM & FQT textures, FQB skyboxes, the color shading map, the color blending map, the horizon fading maps and the fog fading maps.
I'm also going to enable compression for savestates created in the menu, while autosaves will still be created without compression to make sure that the gameplay won't be disrupted.
Gameplay demos may also be compressed, but I'm going to test it first to ensure that the compression won't disrupt the gameplay. Hmm, it's likely better to compress the demos after recording, instead of compressing them during recording.
For loading, most individual files can be loaded with compression, but I haven't tested it on other filetypes yet. And compressed files can't be loaded from PAK file archives yet, but I'm going to look into that.