Thread: ROFZ Compressor
View Single Post
  #18  
Old Today, 08:16
sajmon83's Avatar
sajmon83 sajmon83 is online now
Registered User
 
Join Date: Jun 2017
Location: Poland
Posts: 52
Thanks: 256
Thanked 63 Times in 36 Posts
sajmon83 is on a distinguished road
Quote:
Originally Posted by FitGirl View Post
Thanks for the new toy to play with.

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)

rofz compessed with default -l8, no fine tuning
lolz compressed with MY default/mid-range settings, not max, nor mtt with blocks

dunno why rofz is so much slower on mt decomp than lolz on a single thread

made another run withour srep, size was just a 10-20 KBs smaller
ROFZ codes BC textures with a context-mixing model, not with LZ. The decoder runs the same model as the encoder for every byte, so one thread decodes texture data at a few MB/s, while an LZ decoder like LOLZ mostly copies matches. I’m working on changing this approach.

Your result is the part I would like to look into. My guess is that most of the textures were not recognised (console tiling, no headers) and went to LZ or to the wrong model. A 100–200 MB cut of the .decompressed file (before srep) would help even more.

Quote:
Originally Posted by FitGirl View Post
Also, about AVX2 requirement. This heavily stops the tool from adoption. You train models for old-gen consoles, but doesn't allow PC which could easily run those games on emulators from installing games compressed with ROFZ. Actually, I don't know a single popular compressor which would not work w/o AVX2. You might ask your AI to port the sourcebase to C and compile it there w/o AVX2 req and see how it performs.
Fair point. The arithmetic is integer-only and every AVX2 path has a plain fallback, so no C port is needed.
Code:
build     compression  decompression
(AVX2)       100%         100%
(SSE4.2)     +13%         +7%
(SSE2, any)  +19%         +14%
The next package will have both: rofz.exe (AVX2) and rofz_x64.exe (any x86-64 CPU).

Last edited by sajmon83; Today at 08:19.
Reply With Quote