Skip to content

Add FINAL FANTASY CRYSTAL CHRONICLES Remastered Edition (1.0.3) - #285

Merged
seedds merged 2 commits into
seedds:mainfrom
Amost-:pr/ffcc-profile
Oct 27, 2026
Merged

seedds merged 2 commits into
seedds:mainfrom
Amost-:pr/ffcc-profile

Conversation

@Amost-

@Amost- Amost- commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

FINAL FANTASY CRYSTAL CHRONICLES Remastered Edition (1.0.3; Unity 2018.4.2f1 IL2CPP with FMOD, on NVN) plays on the Mac: boot, intro movies and in-engine cutscenes, the title, the village, field and dungeon play with Mog carrying the chalice, at 30 fps.

Rebased on main (1402ded): #238's commit is gone from the branch now that it is on main as 1c857ca, and the shader tables are main's split, 31,525 shaders: the 1,207 the game keeps in a TextAsset (1c857ca) and the 16 compute kernels of its three Unity 2018.4 ComputeShader objects (ecbeae1's 2019.4 layout) included.

  • Profile (dm/games/0100CE4010AAC000/): the provisional profile's keys, unchanged (they boot and play), its shader tables, and 8 rewriter cuts in patches.py for 1.0.3's main (e1d8b399…).
  • The cuts. Unity 2018.4's ThreadedStreamBuffer wakes a sleeping reader or writer with a Dekker handshake: each side stores its flag or position with a store-release and then reads the other side's with a plain ldr. AArch64 lets that load complete before the store is visible, so both sides can read the old value and sleep. On the Mac the boot deadlocked in 3 of 5 runs (the main thread waiting on UnityGfxDeviceWorker, the worker asleep with the command in its buffer). Each of those 8 loads becomes an ldar: 14 of 14 runs boot. Entry: docs/reference/threads.md, "Unity's stream buffer handshake loses a wake-up on Apple cores".
  • Game note: the bring-up, the cuts' 1.0.0 sites, the shader facts, the frame rate (the logic counts frames, so 60 fps doubles the game's speed), what is open.
  • Games table and README gallery: the screenshot fills the existing empty gallery cell. The Mac app size is recorded only in the game note; the IPA has not been built and its size remains unmeasured. AGENTS.md follows current main unchanged.

The cuts are per build, and only 1.0.3 is registered. The game note lists the 1.0.0 sites; 1.0.0–1.0.2 and function-matched cuts remain open.

Checked

  • This branch on main (1402ded): the host unit tests; every test in dm/tools/tests, dm/ios/tests and dm/gfx/tests; dmhost for Super Mario Bros. Wonder, Hades and Digimon Story Cyber Sleuth; the iOS compile check.
  • scripts/build_ipa_from_nsp.py --platform mac from this branch on the game's files: patch_nso.py rewrites 1.0.3's main, subsdk0 and sdk byte for byte as the build the game was played on (main: 8 cuts, 27 gates, patch 784,940 bytes); the split gives 31,525 shaders and its tables pass the check against this profile's; the Mac shaders and host build.
  • That build, windowless: 3,300 frames in 2 minutes at a steady 30 fps (frame time p50 33.35 ms), no deadlock, no shader key missing from the map, no red line. Windowed, with scripted input from a save into field play: 8,700 frames in 5 minutes, 0 shader-map misses, no red line, a clean exit.
  • Gameplay by hand (the village, field and dungeon, at 30 fps) on the local build this profile comes from. The gallery picture is a frame of it; that build renders at 2× (a local feature, not in this PR).

Not checked

  • The iPhone: no IPA was built or run.
  • 1.0.0–1.0.2 with this profile: only 1.0.3 is registered (1.0.0 was brought up with the same cuts at its own sites).
  • Gameplay by hand with this exact branch: its runs are the windowless boot and the scripted 5 minutes above.

🤖 Generated with Claude Code

Merge validation

  • Merged current main and kept its AGENTS rules unchanged. Removed the misleading Mac-app size from the IPA gallery caption and corrected the note/comment about the supported cut build.
  • Complete local Python tool suite: 371 tests, 9 skipped, no failures. Profile headers and docs checks pass; symptom index regenerated.
  • All 31,525 shader-map keys are unique; every shader-pair endpoint and all 16 compute facts resolve with the expected stages. Disassembly verifies all eight cuts change only ldr to ldar, preserving their registers/address operands; the registry restricts them to the profile's registered 1.0.3 main build.
  • Final diff reviewed: only the new profile, its metadata, screenshot and documentation. No shared host, shader-chain or tool implementation changes; no cross-game runtime regression run is needed for this scope.
  • Game files are not available on this integration machine, so gameplay and the full shader build were not rerun here. The original author's checks and remaining iPhone/older-build limits above still apply.

The profile of the 1.0.3 update (v196608): the provisional profile's
keys, unchanged, its shader tables, and 8 rewriter cuts for Unity
2018.4's ThreadedStreamBuffer. Its sleep handshake loads with a plain
ldr after a store-release, which an Apple core may complete before the
store is visible; both sides then sleep and the boot deadlocks (3 of
5 Mac runs). Each of those loads becomes an ldar (14 of 14 runs
boot). Entry: docs/reference/threads.md, "Unity's stream buffer
handshake loses a wake-up on Apple cores".

The shader tables are main's split (31,525 shaders): the TextAsset
shaders the game needs (1c857ca) and the 16 compute kernels of its
three Unity 2018.4 ComputeShader objects (ecbeae1's 2019.4 layout).
The game note records the bring-up, the 1.0.0 sites of the cuts, the
shaders, and what is open. The game joins the games table and the
README gallery (a Mac frame; the size shown is the Mac app's, as no
IPA was built), and AGENTS.md's count goes to seventy-two.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Keep the current AGENTS rules, add the gallery screenshot in its open cell,
and remove the Mac app size from the IPA gallery caption. Document that
only 1.0.3 has registered memory-order cuts and that the IPA size is open.
The eight build-gated cuts and all shader metadata remain unchanged.

Co-authored-by: Amost <[email protected]>
@seedds
seedds merged commit ee24534 into seedds:main Oct 27, 2026
5 checks passed
Know-It-All-Brother pushed a commit to Know-It-All-Brother/nxnative that referenced this pull request Nov 9, 2026
Keep the current AGENTS rules, add the gallery screenshot in its open cell,
and remove the Mac app size from the IPA gallery caption. Document that
only 1.0.3 has registered memory-order cuts and that the IPA size is open.
The eight build-gated cuts and all shader metadata remain unchanged.

Co-authored-by: Amost <[email protected]>
Know-It-All-Brother pushed a commit to Know-It-All-Brother/nxnative that referenced this pull request Nov 9, 2026
Add the FINAL FANTASY CRYSTAL CHRONICLES Remastered Edition 1.0.3 profile.

Resolve the AGENTS conflict using current main. Remove the Mac app size
from the IPA gallery caption and document the remaining IPA-size check.
Keep all eight build-gated memory-order cuts and shader metadata unchanged.
Local tool suite: 371 tests, 9 skipped, no failures.
Profile headers, docs, shader metadata and patch operand checks pass.
Gameplay and the shader build retain the original author's validation.

Co-authored-by: Amost <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants