add BZip2 support in 7z/pk7

Moderator: GZDoom Developers

Post Reply
User avatar
landfill baby
Posts: 21
Joined: Tue Jan 31, 2017 12:08 am
Graphics Processor: nVidia with Vulkan support
Contact:

add BZip2 support in 7z/pk7

Post by landfill baby »

self-explanatory.
Last edited by landfill baby on Thu May 24, 2018 2:45 pm, edited 1 time in total.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: update LZMA SDK to 18.05, add BZip2 support in 7z/pk7

Post by Graf Zahl »

LZMA is already at 18.05.
User avatar
landfill baby
Posts: 21
Joined: Tue Jan 31, 2017 12:08 am
Graphics Processor: nVidia with Vulkan support
Contact:

Re: add BZip2 support in 7z/pk7

Post by landfill baby »

yeah, oops, i was mistaken there, but i just checked with the latest dev build (b612e182b) and it still gives the error "unsupported 7z/LZMA file!" with a bzip2ed pk7
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: add BZip2 support in 7z/pk7

Post by _mental_ »

BZip2 is not supported by LZMA library, it's implemented in 7-zip executable only.
For this reason GZDoom cannot handle such .7z files.

The question is why do you need BZip2 compression in pk7?
LZMA provides better compression ratio and difference in decompression speed isn't noticeable in most cases (as long as solid archives are not used).
User avatar
landfill baby
Posts: 21
Joined: Tue Jan 31, 2017 12:08 am
Graphics Processor: nVidia with Vulkan support
Contact:

Re: add BZip2 support in 7z/pk7

Post by landfill baby »

i've found that with a certain set of (very repetitive) files, bzip2 outperforms lzma by almost twofold when making a solid archive. i guess if i really have to, i could put all of the files into a wad and then bzip2 it via a zip.
Gez
 
 
Posts: 17835
Joined: Fri Jul 06, 2007 3:22 pm

Re: add BZip2 support in 7z/pk7

Post by Gez »

Solid archives are good for storage and transfer, but bad for use as a game data format, because it means the engine has to uncompress the entire file to access any lump in it.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”