Repository navigation
Conversation
…AA2000), with the patch that fixes its start hang The game is Unity 2018.3.12f1 IL2CPP with FMOD, SDK 7.4.0, built 64-bit. The profile is provisional: packed from our own .nup (v0 dump, SDK 7.4.0), 9,817 shaders, matching the count in seedds/nxnative PR #1868 (closed, not merged); our tables were generated on this dump, not copied from that PR. The game's own build carries the start-hang race that FINAL FANTASY CRYSTAL CHRONICLES Remastered Edition showed: Unity 2018's ThreadedStreamBuffer wakes a sleeping side with a Dekker handshake, and each side's second access is a plain ldr that AArch64 may complete before the earlier store-release is visible, so neither side wakes the other. On an AYN Thor this stopped 4 of 6 starts, 3 of 3 with DM_WATCH=30: the main thread and UnityGfxDeviceWorker waited on their own semaphores one wake-up apart, no frame, no sound, no crash. This build inlines the two checks into 91 writers and 38 readers, so patches.py carries 131 cuts (not FFCC's 8), each gated by the main.nso build ID ca19d0695861144b8a0fd0c438264a76: every site was found by shape in the decompressed main (stlr of one field, then a plain ldr of the partner field from the same base), and the rewriter checks each cut's original word before applying. Every site becomes a load-acquire (ldar). Checked 2026-11-23: test_game_profile 22 tests OK (DM_GAME=01003D200BAA2000), test_patches 16 OK, check-profiles.sh 172 titles OK, check-runtime-profile.sh 172 profiles OK, upstream-update.sh --check main passes the hunk-marker check, check-publish.sh clean, test_docs shows the 40 known broken links and none new. On the phone (AYN Thor, Adreno 740, Android 13, 14.9 GiB): the first launch on Turnip prepared 5,141 shader programs in 2.2 s and showed the game's own language-select screen at 30 FPS, GPU 2.3 ms, no crash; two trial starts and a play-test on the patched pack ran 29.9 fps with zero watchdog events, the play-test past 634 frames with 0 dropped frames. The old hang window is gone. Not checked: 20 consecutive starts (planned, not run); play beyond the language-select screen (deliberate: it writes the only save); in-game scenes beyond the intro. Known open issue, documented in the game note: on the launcher's system (Qualcomm) driver the game renders with missing texture content (the intro's Pelippers, in-game foliage draws solid green); Turnip renders both scenes correctly. The cause is in the host's Adreno-740 path, not this profile. The chain headers and dmsh_chain.lock are untouched, by design: a PR adds a game's profile tables, and the maintainer regenerates the chain; test_version_header_current is not affected by this change.
…ate 1.0.2 (v131072) The start-hang fix of the profile covered only the base game 1.0.0, whose main build ID is ca19d069.... Update 1.0.2 has a new main (3ab632de...), so its starts could hang with no fix. game.tsv now has a build row for it, and patches.py a second key with the same 131 ldr to ldar cuts. They are the same sites as in 1.0.0, found again by shape in the update's main: every one is 0x40 higher than in 1.0.0. The rewriter checks each cut's original word before applying it. subsdk0 and sdk are the same build IDs. Splitting 1.0.0 and 1.0.2 together with shader_split.py gives the same 9,817 programs with the same keys as 1.0.0 alone (only the main#GLSLC@ offsets in the source column of the 180 programs in main differ when 1.0.2 is split alone), so the shader tables are unchanged and shader_versions lists v0 v131072. package says v131072. The game note keeps the wording of the maintainer's edit to the igawa6#502 note (the 0.1.8 list, no em dashes) and adds 1.0.2 on top. The game note, the row in dm/games/README.md, UPSTREAM-EDITS.md and the Found-on entry in docs/reference/threads.md name both builds; game-patches.md is regenerated. The threads.md line now carries a PEANUTS marker, which upstream-update.sh --check main asks for. Checked on an AYN Thor (Adreno 740, Android 13), 2026-11-24: pack from a .nup of the base .nsp and the update, cuts 131, 9,913 shader modules valid for spirv-val. On Turnip 27.0.0-R2, PN_BUILD_ID 3AB632DE..., 1.0.2 was played as far as the entrance of Thunderwave Cave, with fights and a save, in two sessions (logs 01003D200BAA2000-20261124-083926.log and -090219.log): 29.9 fps median in both, no watchdog line, no crash. test_game_profile 22 OK, test_patches 16 OK, check-profiles.sh 172 titles OK, check-runtime-profile.sh 172 profiles OK, upstream-update.sh --check main passes, docs_patches.py current. The game note's Status line now describes both versions as played the same way.
Contributor
Author
|
Closing this: the 1.0.2 change goes into #502 instead. |
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.
Summary
This PR makes Pokémon Mystery Dungeon: Rescue Team DX update 1.0.2 (
v131072) a build of the existing profile, with its own start-hang cuts. The profile in #502 covers the base game 1.0.0 only, and 1.0.2 has a differentmain, so its starts had no fix. The review of #502 asked for this.Stacked on #502. The branch is #502's commit (
dfd5a8c7, unchanged) and one commit on top,b9853c1f. Review that commit. The game note keeps the wording of the maintainer's edit to #502's note (the 0.1.8 list, no em dashes) and adds 1.0.2 on top, so it merges with either order.Why the same 131 cuts. 1.0.2's
main(build ID3ab632dee82d59448599b2291f30994a) has the same 91 writer and 38 reader sites of theThreadedStreamBufferhandshake as 1.0.0, found again by shape. Every site is exactly 0x40 higher than in 1.0.0.patches.pygets a second key with the 131ldrtoldarcuts, and the rewriter checks each cut's original word as before.No new shader tables. Splitting 1.0.0 and 1.0.2 together with
shader_split.pygives the same 9,817 programs and the same keys as 1.0.0 alone. Only themain#GLSLC@offsets in the source column of the 180 programs inmaindiffer when 1.0.2 is split alone.game.tsvlistsshader_versions v0 v131072;subsdk0andsdkare the same build IDs.No shader-chain change. The chain headers and
dmsh_chain.lockare untouched.Checked
test_game_profile22 OK andtest_patches16 OK (both withDM_GAME=01003D200BAA2000),check-profiles.sh172 titles OK,check-runtime-profile.sh172 profiles OK,upstream-update.sh --check mainpasses,check-publish.shclean,docs_patches.py --checkcurrent..nupof the base.nspand the update:cuts 131in the rewrite log, 9,913 shader modules valid forspirv-val.main.patched.binmd5c1d1c1b04e57bfb9b10132ba0ace25f6.PN_BUILD_ID=3AB632DEE82D5944..., started from the library with noenv.txt. 1.0.2 was played as far as the entrance of Thunderwave Cave, with fights and a save, in two sessions: logs01003D200BAA2000-20261124-083926.log(7,692 frames) and01003D200BAA2000-20261124-090219.log. Both show a 29.9 fps median (p95 34.0 and 35.2 ms, worst long frame about 1,094 ms in the first scene), nowatchdogline and noCRASH.threads.mdline for this game now carries aPEANUTSmarker, whichupstream-update.sh --check mainasks for and Add a profile for Pokémon Mystery Dungeon: Rescue Team DX (01003D200BAA2000), with the patch that fixes its start hang on 1.0.0 and 1.0.2 #502's line lacked.Docs
dm/games/README.md,peanuts/UPSTREAM-EDITS.mdand the Found-on entry indocs/reference/threads.mdname both builds.docs/agents/game-patches.mdis regenerated.test_version_header_currentfails by design.Device test
dev.nxnative.android.peanutstest.python3 scripts/pack_android.py <nup> --version 131072 --shader-pkg <split>,peanuts/scripts/push-pack.py <pack> --game <nup> --dest "/sdcard/ROMs/switch/<name>",./gradlew apk -PnxApp=peanuts -PnxAppId=peanutstest -PnxLabel="Peanuts test" -PnxGames=<ids> -PnxPackEngine=fake(JDK 21),adb install -r <apk>, then a library launch.