Author Topic: PK3 Compression [Solved]  (Read 5968 times)

Overdose

  • Posts: 396
  • Turrets: +52/-47
PK3 Compression [Solved]
« 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?
« Last Edit: January 03, 2009, 12:13:56 am by YourMama »
Chocolate Milk.

Archangel

  • Guest
Re: PK3 Compression
« Reply #1 on: January 02, 2009, 10:52:20 pm »
If you like having an invalid pure checksum, sure

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: PK3 Compression
« Reply #2 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.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Overdose

  • Posts: 396
  • Turrets: +52/-47
Re: PK3 Compression
« Reply #3 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? :)
Chocolate Milk.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: PK3 Compression
« Reply #4 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.
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Archangel

  • Guest
Re: PK3 Compression
« Reply #5 on: January 02, 2009, 11:35:19 pm »
Ah, my bad.

Overdose

  • Posts: 396
  • Turrets: +52/-47
Re: PK3 Compression
« Reply #6 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.
Chocolate Milk.

Bissig

  • Posts: 1309
  • Turrets: +103/-131
Re: PK3 Compression
« Reply #7 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.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: PK3 Compression [Solved]
« Reply #8 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.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Overdose

  • Posts: 396
  • Turrets: +52/-47
Re: PK3 Compression [Solved]
« Reply #9 on: January 03, 2009, 12:40:20 am »
Hmm, I need an SSD so I can really test it.....donations anyone?
Chocolate Milk.