Repository navigation
Conversation
nuno5645
added a commit
to nuno5645/NX2Apple
that referenced
this pull request
Nov 1, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closed
4 of 6 tasks
nuno5645
force-pushed
the
south-park-profile
branch
from
November 1, 2026 01:40
8c1604e to
06fd78e
Compare
… zlib Snowdrop shader caches - shader_split: South Park stores its .mcache files as bare zlib streams (a 1 KB window, 64 KB blocks) without the 20-byte record header of the Mario + Rabbids games; snowdrop_zlib finds and decodes them (4,614 stages). - Profile for update 1.05 (v327680): Snowdrop's three-pool page allocator reserves 12 GB; the cuts keep its layout in 4 GB (1.5 GB large, 512 MB of 512 KB pages, 2 GB of 64 KB pages), sized from the pools' use measured on the Mac. - sdk_patches: SDK 8bb65519 takes the 64 MB node area and 32 MB alignment cuts. - Docs: shaders.md, memory.md, the games table and the generated patch list. Tested on the Mac: title, menus, New Game, cinematics, character creation and the prologue to the first interactive scene. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nuno5645
force-pushed
the
south-park-profile
branch
from
November 1, 2026 13:03
06fd78e to
491de9d
Compare
Contributor
|
Thanks for working on the South Park port. I've closed my overlapping PR #662 in favor of this one so there's one profile to review. I appreciate the direct Snowdrop shader-cache extraction you've added here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
South Park: The Fractured But Whole (update 1.05, v327680; Snowdrop on NVN, SDK 3.5.1) had no profile. Its build stopped twice: the shader split found no shaders, and the address region check showed a 12 GB reservation. The game note is
dm/games/01008F2005154000/README.md.dm/gfx/tools/shader_split.py). The game'scamel/shadercache/nx/*.mcachefiles are bare zlib streams (a 1 KB window, 64 KB blocks), without the 20-byte record header of the Mario + Rabbids games.snowdrop_zlibfinds them, checks the decoded0xabcd00d4head and decodes the chained blocks. A file cut short is reported in red.docs/reference/shaders.md, Shader records in Snowdrop SDF data slices, "Bare zlib cache files".dm/games/01008F2005154000/patches.py). Snowdrop's three-pool page allocator reserves 12 GB. The cuts keep the layout in 4 GB: 1.5 GB large, 512 MB of 512 KB pages, 2 GB of 64 KB pages.docs/reference/memory.md, Separate virtual ranges in Snowdrop's page allocator.dm/tools/sdk_patches.py). SDK8bb65519…takes Kingdom Battle's cuts: the node area goes from 1 GB to 64 MB, with 32 MB alignment.docs/agents/game-patches.md.The same change is carried in NX2Apple as a patch (LNPANDY/NX2Apple#379, issue LNPANDY/NX2Apple#377).
Checked
dm/gfx/tests/test_snowdrop.pypasses, with two new tests: bare zlib cache files, and a cut-short file that is reported in red. Both fail on the old code.dm/tools/tests/test_docs.pypasses.docs_patches.pyanddocs_symptoms.pychange nothing. The GPU tests (make -C dm/gfx/tests) were not run.DM_CTLinput, it played from boot through the title, the main menu, New Game, the opening cinematics, character creation and the prologue cutscenes, to the first interactive scene, where the L / R prompt reacts to input.nvnCommandBufferGetControlMemoryFreeis reported as unimplemented, with no effect seen so far. All of these are under Open in the game note.scripts/regress.py check --gameswas not run. Theshader_split.pychange only adds a path for files that hold no record header, and the Kingdom Battle tests intest_snowdrop.pystill pass.shader_split.pyis not a chain tool, sodmsh_chain.his unchanged.Docs
docs/reference/<subsystem>.mdentry, andpython3 dm/tools/docs_symptoms.pywas run (the symptom index)