Thread: [Dev]XTool
View Single Post
  #174  
Old 20-07-2020, 21:06
Razor12911's Avatar
Razor12911 Razor12911 is offline
Programmer
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,636
Thanks: 2,013
Thanked 10,339 Times in 2,202 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by panker1992 View Post
I talked to you about preflate quite some time ago
talking to me about it isn't the same as implementing it

@everyone

here's the xtool with reflate support.

I'll once again explain what's the difference. There are 3 deflate precompressors in xtool: zlib, reflate and preflate.

The old xtool/ztool/pzlib all had zlib+reflate but they had so many errors so I added preflate as an alternative if you have issues when you use reflate.

There are other things to this of course. I added all 3 because sometimes one has an advantage such as speed or better size output. Which is up to you to pick.

reflate cannot be used at the same time as preflate or the other way round.

but zlib can be used with reflate or preflate (pick one) like this -mzlib+reflate or -mzlib+preflate

here are my results on games that use the "normal" deflate configuration

using -mzlib:
Code:
Compressed 1 file, 1,138,892,800 => 2,611,771,763 bytes. Ratio 229.33%
Compression time: cpu 1.34 sec/real 55.54 sec = 2%. Speed 20.51 mB/s
using -mreflate:
Code:
Compressed 1 file, 1,138,892,800 => 2,613,343,052 bytes. Ratio 229.46%
Compression time: cpu 1.28 sec/real 86.86 sec = 1%. Speed 13.11 mB/s
using -mpreflate
Code:
Compressed 1 file, 1,138,892,800 => 2,613,650,264 bytes. Ratio 229.49%
Compression time: cpu 1.34 sec/real 90.68 sec = 1%. Speed 12.56 mB/s
Attached Files
File Type: 7z xtool_reflate_test.7z (1.89 MB, 64 views)
Reply With Quote
The Following 3 Users Say Thank You to Razor12911 For This Useful Post:
COPyCAT (23-08-2020), dixen (21-07-2020), shazzla (20-07-2020)