Author Topic: Shrinkler Z80 decrunch routine  (Read 7973 times)

0 Members and 1 Guest are viewing this topic.

Online GUNHED

  • 6128 Plus
  • ******
  • Posts: 1.798
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
  • Liked: 791
  • Likes Given: 2044
Re: Shrinkler Z80 decrunch routine
« Reply #100 on: 16:51, 12 May 20 »
Sorry for reviving an older topic, but out of younger interest...

Hi there. I tested some files and it seems that Shrinkler is usually better than anything else. But I lack a manual.

Does anybody know where to get a Shrinkler Manual?

Where can I find the up to date de-crunch routine? (Or is it still the one here in the thread?)

EDIT: BTW: Shrinkler 4.6 was released 2020.2.22
« Last Edit: 09:50, 13 May 20 by GUNHED »
http://futureos.de --> Get the revolutionary FutureOS (Recent update: 2019.08.07)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2019.08.14)

Offline Targhan

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.095
  • Country: fr
  • Liked: 1017
  • Likes Given: 151
Re: Shrinkler Z80 decrunch routine
« Reply #101 on: 00:30, 13 May 20 »
Shrinkler is the BEST compressor, period. The counterpart is that it is terribly slow on depacking.

I can't help you about the manual though, but I'm sure someone else can.

Also, this graph may be of interest to you if you accept a lower compression ratio, but require more speed:
https://github.com/emmanuel-marty/lzsa
(scroll down a bit)
Targhan/Arkos

Arkos Tracker 2 - alpha 8 now released! - Follow the news on Twitter!
Disark A cross-platform Z80 disassembler/source converter

Imperial Mahjong
Orion Prime

Offline reidrac

  • Supporter
  • 6128 Plus
  • *
  • Posts: 781
  • Country: gb
  • Trying to gamedev!
    • index.php?action=treasury
    • usebox.net
  • Liked: 1363
  • Likes Given: 790
Re: Shrinkler Z80 decrunch routine
« Reply #102 on: 09:25, 13 May 20 »
Shrinkler is the BEST compressor, period. The counterpart is that it is terribly slow on depacking.

I can't help you about the manual though, but I'm sure someone else can.

Also, this graph may be of interest to you if you accept a lower compression ratio, but require more speed:
https://github.com/emmanuel-marty/lzsa
(scroll down a bit)

That graph is interesting, but turns out the data I compress in my games doesn't behave like that.

I was using UCL for a long time, then moved to ZX7 in few projects, and turns out ApLib with apultra compressor it is the best for me hitting the sweet spot speed/compression.

So it all depends on your use case AND your data!
Released The Return of Traxtor, Golden Tail, Magica, The Dawn of Kernel and Kitsune`s Curse for the CPC.

If you like my games and want to show some appreciation, you can always buy me a coffee.

Offline roudoudou

  • 6128 Plus
  • ******
  • Posts: 813
  • Country: fr
    • urban exploration
  • Liked: 1109
  • Likes Given: 675
Re: Shrinkler Z80 decrunch routine
« Reply #103 on: 09:33, 13 May 20 »
EDIT: BTW: Shrinkler 4.6 was released 2020.2.22
i did not check newer version. Hope the decruncher is still the same  ;D
the "official" decruncher is still on page 1 of this topic, maybe not the most optimised since i rewrote a little part of the initialisation to gain 1 byte  :P
use RASM, the best assembler ever made :p

I will survive

Online GUNHED

  • 6128 Plus
  • ******
  • Posts: 1.798
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
  • Liked: 791
  • Likes Given: 2044
Re: Shrinkler Z80 decrunch routine
« Reply #104 on: 09:35, 13 May 20 »
The differences between 4.5 and 4.6 seem to target files longer than 1 MB (they write). Later the day I try to compare them to see if the result of a compression is different in size.

Shrinkler is the BEST compressor, period. The counterpart is that it is terribly slow on depacking.
Also, this graph may be of interest to you if you accept a lower compression ratio, but require more speed:
https://github.com/emmanuel-marty/lzsa
(scroll down a bit)
Thanks for the graph. That's very interesting.

Now, that raises the question if it would make sense to reprogram the decompressor optimized for decompression speed.  :)
« Last Edit: 09:41, 13 May 20 by GUNHED »
http://futureos.de --> Get the revolutionary FutureOS (Recent update: 2019.08.07)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2019.08.14)

Offline roudoudou

  • 6128 Plus
  • ******
  • Posts: 813
  • Country: fr
    • urban exploration
  • Liked: 1109
  • Likes Given: 675
Re: Shrinkler Z80 decrunch routine
« Reply #105 on: 09:46, 13 May 20 »
Now, that raises the question if it would make sense to reprogram the decompressor optimized for decompression speed.  :)
won't change anything since there is one 32 bits multiplication per decrunched BIT (not byte)...
i ask Toto for an hardware and instant multiplication then speed may speed up 5 times => still approx 120 nops per decrunched bit (a 4K intro will decrunch in 4 seconds instead of 20)
use RASM, the best assembler ever made :p

I will survive

Online GUNHED

  • 6128 Plus
  • ******
  • Posts: 1.798
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
  • Liked: 791
  • Likes Given: 2044
Re: Shrinkler Z80 decrunch routine
« Reply #106 on: 09:53, 13 May 20 »
To ask Tot0 is a good idea, he can put that math stuff inside the CPC Minibooster.  :laugh:
http://futureos.de --> Get the revolutionary FutureOS (Recent update: 2019.08.07)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2019.08.14)