RELEASE NSZ Title Compression Results

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by blawar, Oct 10, 2019.

  1. JRoad

    JRoad Developer

    pip Developer
    8
    May 18, 2018
    Spain
    In the header that's true, the body is plaintexted in the compression process, then is re-encrypted after decompression. The process works perfectly and files verify and hash fine after decompression.

    — Posts automatically merged - Please don't double post! —

    My theory is games with a color palette that has few variation will compress really well, like hollow knight for example that uses colors to differentiate the different parts of Hallownest.
     
    lordelan likes this.
  2. masagrator

    masagrator The developper

    Member
    11
    Oct 14, 2018
    Poland
    More repetetive data = more compression. Games that are already compressed (Telltale games or UE4 games) have very weak compression ratio. Unity games may vary, because some devs are using compression for all assets, some only for part of assets, some none at all. Darkest Dungeon have good compression, because many data are uncompressed.

    And here is table on GDrive to look online
    https://docs.google.com/spreadsheet...kvx6w0_PNE7jU-6URjEjUXYcE/edit#gid=1033668554
     
    Last edited by masagrator, Oct 10, 2019
    gizmomelb, satel and lordelan like this.
  3. morvoran

    morvoran Trump supporter

    Member
    7
    Dec 19, 2010
    United States
    Drinking leftist tears...Yummy!
    There are some very impressive results in that csv file. I see good things coming due to this new container file format. I can't wait for it to become the norm of all switch "backup" methods.
     
    linuxares likes this.
  4. JoeBloggs777

    JoeBloggs777 GBAtemp Advanced Fan

    Member
    6
    May 30, 2018
    United Kingdom
    :O user praising Blawar's work, maybe he'll get more than 0 points at next years bounties :unsure:
    respect to those who have but normally wouldn't :)
    Thanks again Blawar :yay:
     
    gizmomelb likes this.
  5. duckbill007

    duckbill007 Advanced Member

    Newcomer
    5
    May 5, 2011
    Russia
    OK. Is there libzstd compiled for DKP?
     
  6. MYFW

    MYFW GBAtemp Regular

    Member
    5
    Apr 1, 2014
    Awesome :bow:
     
  7. lordelan

    lordelan GBAtemp Psycho!

    Member
    12
    Jan 4, 2015
    Germany
    If wonder if this would already work with Tinson and Tinfoil.
     
  8. blawar
    OP

    blawar Developer

    pip Developer
    11
    Nov 21, 2016
    United States
    I can send you the .a and header file for you to copy to dkp if you want.
     
  9. blawar
    OP

    blawar Developer

    pip Developer
    11
    Nov 21, 2016
    United States
    OFW no way, however I am thinking about adding installing NSZ support to my atmosphere fork. My only hesitation is the support nightmare of people switching CFW's (either intentionally or not) and their games no longer working.

    NSZ files are already installable with Tinfoil 5.00+

    I am adding support to OG Tinfoil eventually.
     
  10. linuxares

    linuxares I'm not a generous god!

    Moderator
    17
    Aug 5, 2007
    Sweden
    Is it possible to do a module that you can load in to Atmosphere?
     
    one-piece likes this.
  11. blawar
    OP

    blawar Developer

    pip Developer
    11
    Nov 21, 2016
    United States
    It should be, however one thing that is abundantly clear: users cannot reliably copy files from a zip file, and HOS does not give specific error messages about it when it is not correct. It needs to be as simple as "update to the latest atmosphere, reinx, or SX". ReiNX and SX would be amenable to such standardization given source code was provided, however I am not hopeful that I could get the code into Atmosphere's master given reswitch's stance on NSP's.
     
  12. linuxares

    linuxares I'm not a generous god!

    Moderator
    17
    Aug 5, 2007
    Sweden
    If the module can be downloaded from example Github or such. I see no problem at all with it. I rather appreciate it since it would open a lot of saved space. I don't know if you used Wii? But using trimmed ISO files save a TON of space. So I'm all for if a module is possible to be created that works on Rei, Atmo and SX.

    EDIT: I mean, people already need to get sigpatches for Atmo from external sources today. so it's no biggie I would say.
     
    one-piece likes this.
  13. lordelan

    lordelan GBAtemp Psycho!

    Member
    12
    Jan 4, 2015
    Germany
    I only use Tinson with HBG shop so if they work there I'm happy.
     
  14. blawar
    OP

    blawar Developer

    pip Developer
    11
    Nov 21, 2016
    United States
    They already work there now :switch:
     
    lordelan likes this.
  15. duckbill007

    duckbill007 Advanced Member

    Newcomer
    5
    May 5, 2011
    Russia
    Yes, please.
     
  16. blawar
    OP

    blawar Developer

    pip Developer
    11
    Nov 21, 2016
    United States
    /opt/devkitpro/portlibs/switch/lib/libzstd.a
    /opt/devkitpro/portlibs/switch/include/zstd.h
     

    Attached Files:

    8BitWonder likes this.
  17. darkxex

    darkxex Advanced Member

    Newcomer
    3
    Jun 13, 2016
    Chile
    Santiago
    Make atmosphere great again. My Trump, I love you with your wall for vanilla atmosphere.
     
  18. satel

    satel Luigi's Big Brother

    Member
    8
    Nov 3, 2004
    Laos
    compression level 17 = 9.26GB !! how did you manage 2.2GB ??
     
  19. masagrator

    masagrator The developper

    Member
    11
    Oct 14, 2018
    Poland
    Huh?

    Screenshot_20191010_192853.
     
  20. blawar
    OP

    blawar Developer

    pip Developer
    11
    Nov 21, 2016
    United States
    it says -2.22 GB as in it shaved 2.2GB off of the file size.
     
    satel likes this.
Quick Reply
Draft saved Draft deleted
Loading...