Repository navigation
Conversation
dmuiX
marked this pull request as draft
October 28, 2026 19:10
dmuiX
marked this pull request as ready for review
October 28, 2026 20:16
dmuiX
force-pushed
the
feat/lets-go-pikachu-mac-profile
branch
2 times, most recently
from
October 28, 2026 21:42
6cdc7a2 to
8dff446
Compare
3 tasks done
dmuiX
force-pushed
the
feat/lets-go-pikachu-mac-profile
branch
2 times, most recently
from
October 29, 2026 00:11
bcc4ab8 to
b260355
Compare
Allow 1.0.2 to start without Horizon Bluetooth services using offline BLE hooks. Add the game profile, shader metadata, focused hook tests, Mac routes, validation record and documented limitations. Validated with all five CI jobs locally, Metal graphics tests, shader/interface checks, full startup comparisons and saved-game benchmarks. iOS gameplay remains unverified; GO pairing is unsupported.
dmuiX
force-pushed
the
feat/lets-go-pikachu-mac-profile
branch
from
October 29, 2026 00:14
b260355 to
cbba764
Compare
2 of 3 tasks
This was referenced Nov 3, 2026
Owner
|
Thanks, @dmuiX, for tracing the BLE startup crash and testing the Mac port. Main now has the same Let’s Go, Pikachu! 1.0.2 build and handles offline BLE initialization. I checked the registered build and host hooks. The main game note records reaching the playable bedroom and writing a save on Mac, plus building the unsigned IPA. Save reload, iPhone gameplay and Pokémon GO connectivity are still open. I’m closing this duplicate profile in favor of the main profile. |
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
Add Pokémon: Let's Go, Pikachu! 1.0.2 (
010003F003A34000, SDK 5.4.151), tested on Mac only.Startup aborts while initializing BLE through the unimplemented Horizon service
bt(main+0x1139d4 -> sdk+0x250230 -> svcBreak). The hooks allow initialization with no peripherals; they do not implement Bluetooth pairing, GO transfers or broad IPC-success stubs. Handheld mode is required with the current host controller implementation and is confined to this profile. The tested setup works in handheld mode; docked play with a single Joy-Con is not implemented in nxnative. No controller mapping or shader-chain changes.Credits: @futurist-raghav's #36 supplied the same-build profile and BLE approach; @s7ymwkptc4-a11y's #224 supplied additional iPhone findings. The audio/movie/time fixes from #36 are already upstream in e61b142 and are not duplicated. Related to #224, not a claim to resolve it. No runtime shader binaries, alternate-key fallback or global handheld override is imported.
Game notes record the requirements, routes, prior work and open items. The BLE mechanism is documented in
docs/reference/services.mdwith an updated symptom index.Checked
After removing the optional no-input menu benchmark (the upstream route test requires nonempty inputs), all five CI jobs were rerun locally and passed: host/CPU gfx, sanitizers (ASan/UBSan/TSan), tool tests (82 files), build checks (three Mac hosts, every gfx target, iOS source compilation), and the synthetic unsigned iOS app build. Commands follow
.github/workflows/tests.yml; local Python is 3.15.2 versus CI's 3.14, with Xcode 27.1 on both. Upstream tests are unchanged. This is local evidence; GitHub CI must rerun on this push.Apple M1 Pro, macOS 27.2, Xcode 27.1. User gameplay, audio and paired Joy-Con input tested before the rebase. Automated startup and a saved-game idle scene tested after the rebase onto upstream
beea17cfdbd8.python3 -m unittest discover -s dm/tools/tests: 572 tests, OK (16 skipped, 2 expected failures).make -C dm/host/tests GAME=010003F003A34000 run: passed, including the new BLE hook test. It checks ten unique real SDK registrations, five event bindings and empty lists that leave caller buffers untouched. It does not emulate the complete BLE IPC protocol.make -C dm/gfx/tests GAME=010003F003A34000 run: passed on Metal. The first invocation timed out during compilation; a subsequent complete run exited 0.python3 dm/tools/tests/test_docs.py: 11 tests passed after the final documentation changes.Shader/interface check: 11,160/11,160 shaders on both revisions, no newly failing shaders, no changed MSL and no new/known interface errors. The translation chain is unchanged.
A separate full
regress.py baseline --rev worktree --recordvalidates the repository profile, not a derived profile: two 90-second runs, both frame 2685, 30 fps, 1334 MB peak footprint, no red lines;validated.tsvis generated by the harness.git diff --checkpassed. The first 4.8 GB Mac app was packaged before the rebase. It has since been rebuilt locally from upstreambeea17cplus this profile/BLE change and the separate cursor change in fix(mac): hide cursor during keyboard and controller gameplay #584, with matching shader chainfda42ce035db; its signature was verified and the app save checksum was unchanged. This combined app run is additional evidence, not an isolated test of this PR alone.Follow-up windowed Mac app log on the rebuilt app: 15,600 frames reached, no
[RED],CRASHorBreak#lines. Latest two 300-frame windows: frame p50 33.55/33.58 ms, p95 38.09/36.75 ms, GPU p50 4.71/6.21 ms. These are live-log samples, not another fixed-route benchmark. The game explicitly sets present interval 1 → 2 on a 60 Hz tick (native 30 fps); this profile adds no FPS cap and no 60-fps mod.The five CI-equivalent jobs were also rerun locally on the independent cursor-only branch for fix(mac): hide cursor during keyboard and controller gameplay #584: all passed after rerunning the unchanged host audio test with the game closed; tool tests include its new cursor test (83 files). Those cursor-branch results do not replace the 82-file/profile-branch results above or establish iOS gameplay.
Full regression report
regress.py check --baseline origin/main --games 010003F003A34000 --runs 2on upstreambeea17cfdbd8versus the candidate worktree, with pipeline prebuild:[RED]line kind removed. Both upstream runs exit 42 before the first frame on the unsupported Bluetooth service; both candidate runs succeed (frames 2683/2685, first frame 0.5 s). This demonstrates the startup fix, not a performance improvement over a running baseline.NEW-FAILorREGRESSIONstatus.regress.py impact origin/main..HEADreports four existing manifest-covered games unaffected, none positively affected, and 95 profiles unknown due to absent usage manifests. Other games are unvalidated; this is not a cross-game compatibility claim.Benchmarks
scripts/bench.py, two runs each, 30 fps target, fixed warmup/measurement windows and save copies:saved-game-idle, local save on outdoor pathThe gameplay window has two frames over 50 ms per run (maximum 66.2/73.63 ms). The player's save is not included: the second route is documented as dependent on a local scene, not a universally reproducible fixture.
Execution detail: runs were serialized, windowless and silent. Both harnesses force
DM_WINDOW=1and have no option to unset it, so local shell launchers outside the repository invoke the generated, unmodified hosts via/usr/bin/env -u DM_WINDOW;bench.pyuses its supportedhost=variant. This intentionally differs from the default windowed run: these are offscreen frame measurements, not display/input-latency measurements. Raw benchmark screenshots and logs remain local. The gallery image is a separate user-supplied screenshot from the Mac app showing the trainer and Pikachu, resized without cropping. An initial benchmark used a stale c1 table; its results were discarded and both reported runs were repeated with the matching generated profile tables.Still unverified / open
Docs
docs/reference/services.md;docs_symptoms.pyrun.docs_gallery.pyrun. IPA-size note left empty because no IPA was measured.docs_patches.pyregenerated the profile index.Most of the diff is generated shader metadata; no additional platform or front end is added. Please review the narrow offline-BLE scope and remaining peripheral limitations.