Repository navigation
Conversation
5 of 12 tasks
…dm_profile() accessor) docs/runtime-profile.md: the problem (one host per game), what NX2Apple's experiment did and proved, which values can be read at run time and which stay compile-time for now, the migration in steps, the risks. Step 1 is code: dm_profile() returns the compiled constants in one struct, with a test; no call site changes.
v0lumehi
force-pushed
the
runtime-profile
branch
from
October 28, 2026 01:58
52f6c97 to
27e9596
Compare
v0lumehi
added a commit
to LNPANDY/NX2Apple
that referenced
this pull request
Oct 30, 2026
The loader's settable image header is forwarded as seedds/nxnative#729. The game framework, its build, tests and env switch row are fork-only until the runtime profile (seedds/nxnative#492) is upstream, because the framework carries profile.tsv and main.m sets DM_PROFILE.
This was referenced Oct 30, 2026
v0lumehi
added a commit
to LNPANDY/NX2Apple
that referenced
this pull request
Oct 30, 2026
The loader's settable image header is forwarded as seedds/nxnative#729. The game framework, its build, tests and env switch row are fork-only until the runtime profile (seedds/nxnative#492) is upstream, because the framework carries profile.tsv and main.m sets DM_PROFILE.
This was referenced Oct 30, 2026
v0lumehi
added a commit
to LNPANDY/NX2Apple
that referenced
this pull request
Oct 31, 2026
The loader's settable image header is forwarded as seedds/nxnative#729. The game framework, its build, tests and env switch row are fork-only until the runtime profile (seedds/nxnative#492) is upstream, because the framework carries profile.tsv and main.m sets DM_PROFILE.
v0lumehi
added a commit
to LNPANDY/NX2Apple
that referenced
this pull request
Oct 31, 2026
The loader's settable image header is forwarded as seedds/nxnative#729. The game framework, its build, tests and env switch row are fork-only until the runtime profile (seedds/nxnative#492) is upstream, because the framework carries profile.tsv and main.m sets DM_PROFILE.
v0lumehi
added a commit
to LNPANDY/NX2Apple
that referenced
this pull request
Oct 31, 2026
The loader's settable image header is forwarded as seedds/nxnative#729. The game framework, its build, tests and env switch row are fork-only until the runtime profile (seedds/nxnative#492) is upstream, because the framework carries profile.tsv and main.m sets DM_PROFILE.
v0lumehi
added a commit
to LNPANDY/NX2Apple
that referenced
this pull request
Oct 31, 2026
The loader's settable image header is forwarded as seedds/nxnative#729. The game framework, its build, tests and env switch row are fork-only until the runtime profile (seedds/nxnative#492) is upstream, because the framework carries profile.tsv and main.m sets DM_PROFILE.
Owner
|
Thanks for writing this up so carefully. I'm keeping the profile compile-time, so I'm closing this.
I'd look at this again with a measured gain for this project, or a need that shape can't meet. I know this leaves NX2Apple carrying its patch. |
2 of 4 tasks
Fbenhaddou
pushed a commit
to Fbenhaddou/NX2Apple
that referenced
this pull request
Nov 2, 2026
Drop 0045 and 0052 (landed upstream as seedds/nxnative#729 and LNPANDY#742), refresh 0053 and the route C patches for the setter now declared in front.h, mark the runtime profile patches as declined in seedds/nxnative#492, regenerate the gallery.
5 of 6 tasks
lucaszhongsj
pushed a commit
to lucaszhongsj/nxnative
that referenced
this pull request
Nov 19, 2026
Upstream-Status: fork-only (declined seedds#492) Reason: One host binary runs multiple games in the iPhone shell, so profile constants are read at run time Issue: LNPANDY/NX2Apple#226
lucaszhongsj
pushed a commit
to lucaszhongsj/nxnative
that referenced
this pull request
Nov 19, 2026
Upstream-Status: fork-only (declined seedds#492) Reason: Build self-contained DmGame frameworks so the shared iOS shell can dlopen multiple games Issue: LNPANDY/NX2Apple#392
5 of 6 tasks
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
A proposal for the largest patch NX2Apple carries (#388, "Fewer patches for forks"): the game profile read by the host at run time, so one host binary can serve any game, instead of 37
DM_GAME_*macros compiled in fromgame_profile.h. The design isdocs/runtime-profile.md: the problem, what the fork's experiment (73a89fb0) did and did not prove, which values could be read at run time (identity, guest memory, switches, Metal setup) and which stay compile-time until measured (tex_flush_upload,tex_dirty_upload,render_cond, on graphics call paths), a five-step migration, the risks.Code is included: step 1 only.
dm/host/hle_profile.{c,h}givesdm_profile(), which returns the compiled constants in one struct;t_profile.cchecks every field against its macro. No call site changes and no behaviour change; the host links it by the existinghle_*.cwildcard.Decision for @seedds
Refs #388.
Checked
make -C dm/host/tests GAME=010015100B514000 run(includest_profile;t_profilealso run for three other profiles);make -C dm/host GAME=010015100B514000builds;python3 -m unittest dm/tools/tests/test_docs.py;lint_python.py: 0 new.Docs
docs/runtime-profile.md, linked fromdocs/development.md; no reference entry, so no symptom index change