Tremulous Forum

Mods => Modding Center => Topic started by: Overdose on January 02, 2009, 10:43:10 pm

Title: PK3 Compression [Solved]
Post by: Overdose on January 02, 2009, 10:43:10 pm
When pk3 files are read and loaded do they get decompressed? If so, would using a less aggressive algorithm help increase map loading speed? In other words would using the "Fast" setting instead of the "Ultra" setting, in 7-zip, help decrease loading times?
Title: Re: PK3 Compression
Post by: Archangel on January 02, 2009, 10:52:20 pm
If you like having an invalid pure checksum, sure
Title: Re: PK3 Compression
Post by: David on January 02, 2009, 10:58:42 pm
Regardless of pure, its an interesting point.  Would using zero compression have a speed up?
If so, then there's a good argument for doing it, both for 1.2, and for maps.
Title: Re: PK3 Compression
Post by: Overdose on January 02, 2009, 11:08:28 pm
If you like having an invalid pure checksum, sure

Does that matter if the server is already hosting my files? :)
Title: Re: PK3 Compression
Post by: kevlarman on January 02, 2009, 11:15:08 pm
the pure checksum only applies to files inside the pk3, not to the pk3 itself. repackaging a pk3 with less/no compression will help loading times a little at the cost of disk space.
Title: Re: PK3 Compression
Post by: Archangel on January 02, 2009, 11:35:19 pm
Ah, my bad.
Title: Re: PK3 Compression
Post by: Overdose on January 03, 2009, 12:13:18 am
That's fantastic! Disk space is cheap these days, I'd rather save a few seconds than a few megabytes.
Title: Re: PK3 Compression
Post by: Bissig on January 03, 2009, 12:16:00 am
That's fantastic! Disk space is cheap these days, I'd rather save a few seconds than a few megabytes.

At todays processor speeds you might save zilch to one second - at most. Someone should try to measure it.
Title: Re: PK3 Compression [Solved]
Post by: David on January 03, 2009, 12:23:37 am
It could even take more time, as it has to read more off the disk, and disks are massively slower than the processor.
Title: Re: PK3 Compression [Solved]
Post by: Overdose on January 03, 2009, 12:40:20 am
Hmm, I need an SSD so I can really test it.....donations anyone?