Thread: ROFZ Compressor
View Single Post
  #25  
Old 30-11-2026, 05:56
kj911 kj911 is offline
Registered User
 
Join Date: Apr 2010
Location: world
Posts: 272
Thanks: 176
Thanked 99 Times in 71 Posts
kj911 is on a distinguished road
Quote:
Originally Posted by FitGirl View Post
GTA6 Sample (textures pack, full of BC textures)
Typical compression chain:

222333440 ttdb_terrain_image_based.ttpf
473012275 ttdb_terrain_image_based.ttpf.decompressed
368614655 ttdb_terrain_image_based.ttpf.decompressed.srep (m3f)
186781464 ttdb_terrain_image_based.ttpf.decompressed.srep.lo lz_single_thread_compressed (dec 5 sec on 1 thread)
193881051 ttdb_terrain_image_based.ttpf.decompressed.srep.ro fz (dec in 14 sec with 16 threads)
I’m experimenting with it too. There’s one small detail missing from the equation!

Specifically, did you use Precomp? With v0.4.7, I get a result similar to yours regarding the unpacked size (~300 KB smaller). With XTOOL 0.12, the file size after SREP is nearly 70–75 MB smaller (~295 million bytes). With XTOOL 0.99, it yields a size similar to 'reflate' when using 128 MB chunk sizes. It’s even smaller with 'preflate'.

Comparing the old XTOOL 0.12 (zlib) against Precomp v0.4.7. Precomp wins!
In a test performed on the "textures.rpf" file, the final archive was ~4–5 MB smaller when using LOLZ with very fast settings. (precompressor + srep:m3f:a0+lolz:dt:d160m:mc32:mtt1:mt2)

However, I can’t seem to reach that 186-million-byte result. Is it a different (newer/older) version of LOLZ? I can manage to hit the 193–194 million range, which is roughly consistent with the results from ROFZ.

For those looking to compress very quickly:

Classic INNOSETUP. (Internal LZMA or ZLIB are available.)
Alternatively: xtool:cflac:dd3:flzma:d128m:l6 or a similar configuration. With or without SREP but always using XTOOL and ordered by compression ratio:

XLZMA/FLZMA or DLZ
Razor (slow packing, fast unpacking)
Nanozip v0.08/0.09 with "-cO" and "-m2g/m4g" switches (requires plenty of space for TEMP files)
LOLZ (ranging from faster, multi-threaded compression to extremely slow, fast unpacking)

Estimated repack/installer sizes:

Classic INNO or "rep:2gb+tor": 195–205 GB
Monkey repack (simple LOLZ or FLZMA): 190–200+ GB
xtool:cflac:dd3:flzma:d128m:l6 (or similar configurations): 190+ GB
xtoolreflate:cbink:cflac+dd3 + FLZMA (or any other): 175–185 GB
or RZ: ~160–165 GB
or Nanozip/LOLZ: 140–160 GB

Impossible: less than 125–130 GB.

The test results in the TXT file below indicate that for RPF/TTPF files, it is better to use preflate or precomp instead of classic ZLIB.
Attached Files
File Type: txt gta6_ztmp000.txt (1.9 KB, 3 views)
Reply With Quote