Skip to content

MaxPack 1.0.2

Choose a tag to compare

@github-actions github-actions released this 24 Nov 20:58
· 200 commits to main since this release
Immutable release. Only release title and notes can be modified.

MaxPack 1.0.2 for the PC: packing is about twice as fast at level 19 and over three times at level 3, with byte-identical .p5z files, and the window learns a lot from its sister app NXPress: compare the levels on your PC, measure your PC, delete the originals once checked, name files by a template, rename by what a file holds, add several folders at once, and grow the queue while it runs.

Still being tested. Please try it with your games and tell us how it goes: report a bug or a tested game. The new Copy report button fills in most of it.

System File
Windows maxpack-windows-x64-setup.exe (installer, no administrator rights) or maxpack-windows-x64-portable.zip
macOS, Apple silicon maxpack-macos-apple-silicon.dmg (or .tar.gz)
macOS, Intel maxpack-macos-intel.dmg (or .tar.gz)
Linux x64 maxpack-linux-x64.tar.gz

Verify a download: sha256sum -c SHA256SUMS, and gh attestation verify <file> -R DeLFuS77/maxpack proves it was built by this repository's workflow from tag v1.0.2.


Added

  • Delete the originals once checked (PC window, off by default): in Settings, and as a box next to Compress for each run. Each original goes to the recycle bin (Windows, macOS and Linux), or for good with Delete them for good, not to the recycle bin, only once its new .p5z or folder is made, verified and in its place; never when decompressing or verifying, nor when anything failed. Before the queue starts, the originals that go are listed with their size when one is a folder or cannot go to the recycle bin (a network or USB drive, a game bigger than the bin holds), which are kept unless you say to delete those for good. Each game, the card at the end and maxpack.log say what was removed.
  • Low priority (PC window, Settings, off by default): maxpack-core runs below normal priority on Windows and through nice on macOS and Linux, so the PC stays usable while it works.
  • The space of the whole queue (PC window) is checked before anything starts, drive by drive, and told with the numbers when it may not fit.
  • The card at the end (PC window) shows the time the queue took, the games done and the average speed next to the space saved and what saved the most, and what became of the originals.
  • Copy report (PC window: Details, the card at the end, Settings > About): a plain text for a GitHub issue with MaxPack's and the engine's versions, the system, CPU threads, memory, the settings that matter and, for the games it is about, their kind, sizes, volumes and result, with the row for the compatibility list; never a game's name, title ID or path. Report a bug and Report a game open the forms of maxpack-ps5.
  • What goes on the internet (README): the window makes no connection of its own and the command line never goes online; Settings > Internet says so. There is no switch, as there is nothing to turn off.
  • File names by a template (PC window, Settings > File names): {title}, {id}, {version} and {region} (from the content ID: USA, EUR, JPN, ASIA, KOR), a bracket left empty dropped, three ready-made templates and one of your own, with a live preview. The default, {title} [{id}], gives the names of 1.0.1; a folder for the console keeps its TITLE_ID.
  • Rename (PC window, in Check): names .p5z files, dump folders and .exfat images by what each holds, with the template of Settings, showing the new names before anything changes. A name taken, a file in use or a game that cannot be read is skipped and said; nothing is replaced.
  • Add folder takes several folders at once (PC window): the folder dialog of Windows and of macOS takes several, and so does Linux's with zenity (one at a time without it). Several folders dropped at once were already taken; each keeps the rule of one folder.
  • Games added while a queue runs join it (PC window): in the same section they show as queued, are done with the same options and count in the progress, the time left, the space check and the card at the end; one taken out before its turn leaves the queue.
  • Compare the levels on this PC (PC window, under the level and under each game in Compress; maxpack analyze <dump> --levels [L,L,...]): a sample of the game (the one of analyze, 2 % of what is packed and at least 1 GiB) is packed at levels 3, 9, 15 and 19 with the same code and threads as pack, and the loose files are compressed as a .p5z compresses them, to tell for each level the size of the .p5z and of the folder, what it saves, and the time to pack the whole game on this PC. A card fills its table as each level is measured, and a level is chosen from it. Nothing is written; it can be cancelled. Text, --json FILE, and level lines with --progress json.
  • Measure this PC (PC window, Settings > While working; maxpack measure [<folder>]): with no game, generated data is packed with the code of pack at 25, 50, 75 and 100 % of the CPU's threads, and the fewest threads less than 5 % slower than the fastest are recommended; the disk of the destination is written and read with a temporary file that is deleted, also on a cancel. The window keeps those threads (Threads to compress) and gives them to the engine when compressing; Use them all goes back to the default. About half a minute.
  • The content ID in info --json (content_id, from param.json) for folders, .exfat images and .p5z files, made before 1.0.2 too: the {region} of the names now works for every game.

Changed

  • Packing is more than twice as fast. The engine used to read a batch of blocks and compute their SHA-256 on one thread, then start threads to compress the batch and wait for the slowest one, and then write it on one thread, so most cores sat idle most of the time. Now the three overlap: one thread reads ahead and hashes, a pool of threads that lives for the whole pack compresses, and the blocks are written in order as they are ready. The loose files of a .p5z (zstd frames of up to 32 MiB) go the same way, and one file's frames no longer wait for the previous file's.

  • SHA-256 uses the CPU's SHA instructions where there are any (64-bit x86 PCs: AMD since Zen, Intel since Ice Lake and the Atom cores since Goldmont), about five times faster than before; the other CPUs, and the console, keep the portable code. With the pipeline the hashing had become what held the packing back. It also speeds up verify, unpack and every other check.

  • Together, on a 32-thread PC, a generated 3 GB game packs to a .p5z in 15.9 s instead of 35.5 s at level 19 (the packs alone at 258 MB/s instead of 106, with the CPU 90 % busy instead of 39 %) and in 7.4 s instead of 25.7 s at level 3. The loose files of a .p5z are always compressed at level 19 in frames of up to 32 MiB, and no frame can be cut into parts without changing the bytes, so a game with large loose files gains less.

  • The output is the same, byte for byte. Same chunks in the same order, same volumes, same index and same SHA-256s as 1.0.1, with any number of threads: new tests pack the test images and a synthetic game (many small files, a few large ones, frames of exactly 32 MiB and several volumes) at 1, 2 and all the CPU's threads and compare them with hashes recorded with 1.0.1. Cancelling, progress (the same events, always increasing) and errors behave as before.

  • Memory: while the packs are written the engine now holds less (a ring of 4 blocks per thread instead of batches of 8, and the .p5z frames' compression contexts are freed before the packs start). While the loose files of a .p5z are compressed it can hold more at once than before, because frames of several files are compressed together, up to the same limit as 1.0.1 (8 frames).

  • tools/bench_pack.py generates a synthetic game and compares two builds of the engine: time, MB/s, CPU, memory and identical output.

  • Every output of the PC window is written apart, not only one that replaces another: the new .p5z or folder is written as <name>.maxpack-tmp (hidden on Windows), verified there by the engine, and only then renamed to its name, never over something that came there meanwhile. A cancel, an error or a kill takes away only what was written apart. What a crash or a power cut leaves is offered for deletion the next time MaxPack opens. A folder for the console is now verified every time, not only when it replaces another.