Skip to content

Shader prefetch: a launcher setting, and a profile key that turns it off (Persona 5 Royal) - #1209

Closed
ZhaowTao wants to merge 1 commit into
seedds:mainfrom
ZhaowTao:shader-prefetch-setting
Closed

ZhaowTao wants to merge 1 commit into
seedds:mainfrom
ZhaowTao:shader-prefetch-setting

Conversation

@ZhaowTao

@ZhaowTao ZhaowTao commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

What and why

mtl_prog_prefetch loads a program's shader libraries in the background as soon as the game makes the program (nvnProgramSetShaders), whether or not a draw uses them. It had a switch (DM_NVN_PREFETCH=0) but no way for a player to reach it: dm/ios/Sources/player_env.h filters the DM_NVN_ prefix as a diagnostic, so it cannot be saved from Documents/env.txt either.

On iOS a loaded library is a mapping the process keeps for good: NvShader holds the MTLFunction, the function holds the library, the shader table keeps the shader by key. A game with a very large shader tree fills the process's mapping limit that way and is ended with vnode-limit. Persona 5 Royal is 24,826 pipelines, 88,792 metallib and 30,646 json (119,439 files, 1.3 GB); on an iPhone 17 Pro it was ended after 60-100 s in every configuration tried, while Breath of the Wild (4,829 pipelines) and Rhythm Heaven Groove (100 metallib) run for hours on the same device and build (reported with the jetsam tables in LNPANDY/NX2Apple#665 and #666).

Off, one run held 30 fps for 34 minutes: 61,200 presents, p50 33.34 ms, 1,773 MiB, 410,000 audio callbacks with no underrun, no crash. With it on, the same build aborted in a prefetch worker at 5 min 33 s.

  • settings.tsv gains the row for every NVN game, in Performance, with the iOS default from the profile and the Mac default on -- the shape DM_PSO_MTL4 already has.
  • player_env.h carries the exception DM_NVN_ENC_THREAD already has, so a player build keeps the launcher's value.
  • game.py takes the profile key nvn_prefetch (on / off) and writes DM_GAME_NVN_PREFETCH, which settings.py resolves as the iOS default.
  • Persona 5 Royal's profile sets it off, so a player never has to find the row.
  • The test covers the row's graphics API, both platforms' defaults and the Mac.

What was checked

  • python3 dm/tools/tests/test_launcher_settings.py -- 17 tests, OK, the new one included. It fails without the change (PERFORMANCE_NVN no longer matches, and Persona 5 Royal has no such row).
  • python3 dm/games/game.py header -- DM_GAME_NVN_PREFETCH 0 for Persona 5 Royal, 1 for Breath of the Wild.
  • Built settings: Persona 5 Royal ios default 0 / mac 1; Breath of the Wild 1 / 1; no row for a vulkan or gl game.
  • On device: iPhone 17 Pro (A19 Pro, iOS 27.0), NX2Apple v1.1.0, the game's g18p archive in place, one launch with DM_NVN_PREFETCH=0 -- 34 minutes, 61,200 presents, no crash, no jetsam event.
  • Not checked: no Mac run of the row (its Mac default is 1, today's behaviour); no run of a second game with the row off.

Notes

@github-actions github-actions Bot added ios The iPhone and iPad app (dm/ios) tools Tools and scripts (dm/tools, scripts) docs Documentation game: 01005CA01580E000 Persona 5 Royal labels Nov 4, 2026
ZhaowTao added a commit to ZhaowTao/NX2Apple that referenced this pull request Nov 5, 2026
Persona 5 Royal is ended by the system with vnode-limit after 60-100 s on an iPhone
17 Pro in every configuration tried (LNPANDY#665), and its prefetch worker aborts on an
argument buffer assertion after about 5.5 minutes (LNPANDY#666). Both come from the same
place: mtl_prog_prefetch maps every library of every program the game creates, and
on iOS a mapped library is held for the life of the process.

The engine already had the switch (DM_NVN_PREFETCH=0) but no front end could offer
it: player_env.h filters the DM_NVN_ prefix as a diagnostic, so it cannot be saved
from Documents/env.txt either. Off, one run held 30 fps for 34 minutes (61,200
presents, 1,773 MiB, no crash) against 5 min 33 s with it on.

The patch adds the settings row for every NVN game, the profile key nvn_prefetch and
Persona 5 Royal shipping it off; the Mac keeps the prefetch (its default is on).

Upstream-Status: forwarded seedds/nxnative#1209
Reason: Persona 5 Royal fills the iOS mapping limit and is ended after 60-100 s; the prefetch switch existed but no front end could reach it, and the game ships it off in its profile
Issue: LNPANDY#665
ZhaowTao added a commit to ZhaowTao/NX2Apple that referenced this pull request Nov 5, 2026
Persona 5 Royal is ended by the system with vnode-limit after 60-100 s on an iPhone
17 Pro in every configuration tried (LNPANDY#665), and its prefetch worker aborts on an
argument buffer assertion after about 5.5 minutes (LNPANDY#666). Both come from the same
place: mtl_prog_prefetch maps every library of every program the game creates, and
on iOS a mapped library is held for the life of the process.

The engine already had the switch (DM_NVN_PREFETCH=0) but no front end could offer
it: player_env.h filters the DM_NVN_ prefix as a diagnostic, so it cannot be saved
from Documents/env.txt either. Off, one run held 30 fps for 34 minutes (61,200
presents, 1,773 MiB, no crash) against 5 min 33 s with it on.

The patch adds the settings row for every NVN game, the profile key nvn_prefetch and
Persona 5 Royal shipping it off; the Mac keeps the prefetch (its default is on).

Upstream-Status: forwarded seedds/nxnative#1209
Reason: Persona 5 Royal fills the iOS mapping limit and is ended after 60-100 s; the prefetch switch existed but no front end could reach it, and the game ships it off in its profile
Issue: LNPANDY#665
ZhaowTao added a commit to ZhaowTao/NX2Apple that referenced this pull request Nov 5, 2026
Persona 5 Royal is ended by the system with vnode-limit after 60-100 s on an iPhone
17 Pro in every configuration tried (LNPANDY#665), and its prefetch worker aborts on an
argument buffer assertion after about 5.5 minutes (LNPANDY#666). Both come from the same
place: mtl_prog_prefetch maps every library of every program the game creates, and
on iOS a mapped library is held for the life of the process.

The engine already had the switch (DM_NVN_PREFETCH=0) but no front end could offer
it: player_env.h filters the DM_NVN_ prefix as a diagnostic, so it cannot be saved
from Documents/env.txt either. Off, one run held 30 fps for 34 minutes (61,200
presents, 1,773 MiB, no crash) against 5 min 33 s with it on.

The patch adds the settings row for every NVN game, the profile key nvn_prefetch and
Persona 5 Royal shipping it off; the Mac keeps the prefetch (its default is on).

Upstream-Status: forwarded seedds/nxnative#1209
Reason: Persona 5 Royal fills the iOS mapping limit and is ended after 60-100 s; the prefetch switch existed but no front end could reach it, and the game ships it off in its profile
Issue: LNPANDY#665
ZhaowTao added a commit to ZhaowTao/NX2Apple that referenced this pull request Nov 5, 2026
Persona 5 Royal is ended by the system with vnode-limit after 60-100 s on an iPhone
17 Pro in every configuration tried (LNPANDY#665), and its prefetch worker aborts on an
argument buffer assertion after about 5.5 minutes (LNPANDY#666). Both come from the same
place: mtl_prog_prefetch maps every library of every program the game creates, and
on iOS a mapped library is held for the life of the process.

The engine already had the switch (DM_NVN_PREFETCH=0) but no front end could offer
it: player_env.h filters the DM_NVN_ prefix as a diagnostic, so it cannot be saved
from Documents/env.txt either. Off, one run held 30 fps for 34 minutes (61,200
presents, 1,773 MiB, no crash) against 5 min 33 s with it on.

The patch adds the settings row for every NVN game, the profile key nvn_prefetch and
Persona 5 Royal shipping it off; the Mac keeps the prefetch (its default is on).

Upstream-Status: forwarded seedds/nxnative#1209
Reason: Persona 5 Royal fills the iOS mapping limit and is ended after 60-100 s; the prefetch switch existed but no front end could reach it, and the game ships it off in its profile
Issue: LNPANDY#665
ZhaowTao added a commit to ZhaowTao/NX2Apple that referenced this pull request Nov 5, 2026
Persona 5 Royal is ended by the system with vnode-limit after 60-100 s on an iPhone
17 Pro in every configuration tried (LNPANDY#665), and its prefetch worker aborts on an
argument buffer assertion after about 5.5 minutes (LNPANDY#666). Both come from the same
place: mtl_prog_prefetch maps every library of every program the game creates, and
on iOS a mapped library is held for the life of the process.

The engine already had the switch (DM_NVN_PREFETCH=0) but no front end could offer
it: player_env.h filters the DM_NVN_ prefix as a diagnostic, so it cannot be saved
from Documents/env.txt either. Off, one run held 30 fps for 34 minutes (61,200
presents, 1,773 MiB, no crash) against 5 min 33 s with it on.

The patch adds the settings row for every NVN game, the profile key nvn_prefetch and
Persona 5 Royal shipping it off; the Mac keeps the prefetch (its default is on).

Upstream-Status: forwarded seedds/nxnative#1209
Reason: Persona 5 Royal fills the iOS mapping limit and is ended after 60-100 s; the prefetch switch existed but no front end could reach it, and the game ships it off in its profile
Issue: LNPANDY#665
ZhaowTao added a commit to ZhaowTao/NX2Apple that referenced this pull request Nov 5, 2026
…off (Persona 5 Royal)

A program's shader libraries are loaded in the background as soon as the game makes the
program (nvn_mtl.m mtl_prog_prefetch, from nvnProgramSetShaders), whether or not a draw
uses them. It had a switch, DM_NVN_PREFETCH=0, but no front end could offer it:
dm/ios/Sources/player_env.h filters the DM_NVN_ prefix as a diagnostic, so it cannot be
saved from Documents/env.txt either.

On iOS a loaded library is a mapping the process keeps for good: NvShader holds the
MTLFunction, the function holds the library, and the shader table keeps the shader by
key. A game with a very large shader tree fills the process's mapping limit that way and
is ended with vnode-limit. Persona 5 Royal is 24,826 pipelines, 88,792 metallib and
30,646 json (119,439 files, 1.3 GB) and was ended after 60-100 s in every configuration
tried on an iPhone 17 Pro, while Breath of the Wild (4,829 pipelines) and Rhythm Heaven
Groove (100 metallib) run for hours on the same device and build
(LNPANDY#665, LNPANDY#666).

Off, one run held 30 fps for 99,600 frames (about 55 minutes) with the switch in
Documents/env.txt, the path a player takes: no jetsam, no vnode-limit, no argument buffer
abort. 34 minutes / 61,200 presents was the same switch set as a launch environment; with
it on the same build aborted in a prefetch worker at 5 min 33 s.

- settings.tsv gains the row for every NVN game, in Performance, with the iOS default
  from the profile and the Mac default on (the shape DM_PSO_MTL4 has).
- player_env.h carries the exception DM_NVN_ENC_THREAD already has, so a player build
  keeps the launcher's value.
- game.py takes the profile key nvn_prefetch (on / off) and writes DM_GAME_NVN_PREFETCH,
  which settings.py resolves as the iOS default.
- Persona 5 Royal's profile sets it off, so a player never has to find the row.
- docs_patches.py classifies the new key (`game` to `host`, memory), or it exits on a
  switch it cannot classify and `tools/engine.py sync` fails once the patches apply. The
  generated docs/agents/game-patches.md is left alone: on this pin the generator's own
  profile-switch table is down to one row (game.py's header_one split left `switches()`
  reading the four lines of header()), so a hand-edit would fight the next regeneration.
- The test covers the row's graphics API, both platforms' defaults and the Mac.

The tests pass (17 in test_launcher_settings.py). Off bounds nothing by itself: the
mappings still grow, from what is drawn instead of what is in the program, and a long
session still ends somewhere.

Upstream-Status: forwarded seedds/nxnative#1209
Reason: Persona 5 Royal fills the iOS mapping limit and is ended after 60-100 s; the prefetch switch existed but no front end could reach it, and the game ships it off in its profile
Issue: LNPANDY#665
ZhaowTao added a commit to ZhaowTao/NX2Apple that referenced this pull request Nov 5, 2026
…off (Persona 5 Royal)

A program's shader libraries are loaded in the background as soon as the game makes the
program (nvn_mtl.m mtl_prog_prefetch, from nvnProgramSetShaders), whether or not a draw
uses them. It had a switch, DM_NVN_PREFETCH=0, but no front end could offer it:
dm/ios/Sources/player_env.h filters the DM_NVN_ prefix as a diagnostic, so it cannot be
saved from Documents/env.txt either.

On iOS a loaded library is a mapping the process keeps for good: NvShader holds the
MTLFunction, the function holds the library, and the shader table keeps the shader by
key. A game with a very large shader tree fills the process's mapping limit that way and
is ended with vnode-limit. Persona 5 Royal is 24,826 pipelines, 88,792 metallib and
30,646 json (119,439 files, 1.3 GB) and was ended after 60-100 s in every configuration
tried on an iPhone 17 Pro, while Breath of the Wild (4,829 pipelines) and Rhythm Heaven
Groove (100 metallib) run for hours on the same device and build
(LNPANDY#665, LNPANDY#666).

Off, one run held 30 fps for 99,600 frames (about 55 minutes) with the switch in
Documents/env.txt, the path a player takes: no jetsam, no vnode-limit, no argument buffer
abort. 34 minutes / 61,200 presents was the same switch set as a launch environment; with
it on the same build aborted in a prefetch worker at 5 min 33 s.

- settings.tsv gains the row for every NVN game, in Performance, with the iOS default
  from the profile and the Mac default on (the shape DM_PSO_MTL4 has).
- player_env.h carries the exception DM_NVN_ENC_THREAD already has, so a player build
  keeps the launcher's value.
- game.py takes the profile key nvn_prefetch (on / off) and writes DM_GAME_NVN_PREFETCH,
  which settings.py resolves as the iOS default.
- Persona 5 Royal's profile sets it off, so a player never has to find the row.
- docs_patches.py classifies the new key (`game` to `host`, memory), or it exits on a
  switch it cannot classify and `tools/engine.py sync` fails once the patches apply. The
  generated docs/agents/game-patches.md is left alone: on this pin the generator's own
  profile-switch table is down to one row (game.py's header_one split left `switches()`
  reading the four lines of header()), so a hand-edit would fight the next regeneration.
- The test covers the row's graphics API, both platforms' defaults and the Mac.

The tests pass (17 in test_launcher_settings.py). Off bounds nothing by itself: the
mappings still grow, from what is drawn instead of what is in the program, and a long
session still ends somewhere.

Upstream-Status: forwarded seedds/nxnative#1209
Reason: Persona 5 Royal fills the iOS mapping limit and is ended after 60-100 s; the prefetch switch existed but no front end could reach it, and the game ships it off in its profile
Issue: LNPANDY#665
ZhaowTao added a commit to ZhaowTao/NX2Apple that referenced this pull request Nov 6, 2026
…off (Persona 5 Royal)

A program's shader libraries are loaded in the background as soon as the game makes the
program (nvn_mtl.m mtl_prog_prefetch, from nvnProgramSetShaders), whether or not a draw
uses them. It had a switch, DM_NVN_PREFETCH=0, but no front end could offer it:
dm/ios/Sources/player_env.h filters the DM_NVN_ prefix as a diagnostic, so it cannot be
saved from Documents/env.txt either.

On iOS a loaded library is a mapping the process keeps for good: NvShader holds the
MTLFunction, the function holds the library, and the shader table keeps the shader by
key. A game with a very large shader tree fills the process's mapping limit that way and
is ended with vnode-limit. Persona 5 Royal is 24,826 pipelines, 88,792 metallib and
30,646 json (119,439 files, 1.3 GB) and was ended after 60-100 s in every configuration
tried on an iPhone 17 Pro, while Breath of the Wild (4,829 pipelines) and Rhythm Heaven
Groove (100 metallib) run for hours on the same device and build
(LNPANDY#665, LNPANDY#666).

Off, one run held 30 fps for 99,600 frames (about 55 minutes) with the switch in
Documents/env.txt, the path a player takes: no jetsam, no vnode-limit, no argument buffer
abort. 34 minutes / 61,200 presents was the same switch set as a launch environment; with
it on the same build aborted in a prefetch worker at 5 min 33 s.

- settings.tsv gains the row for every NVN game, in Performance, with the iOS default
  from the profile and the Mac default on (the shape DM_PSO_MTL4 has).
- player_env.h carries the exception DM_NVN_ENC_THREAD already has, so a player build
  keeps the launcher's value.
- game.py takes the profile key nvn_prefetch (on / off) and writes DM_GAME_NVN_PREFETCH,
  which settings.py resolves as the iOS default.
- Persona 5 Royal's profile sets it off, so a player never has to find the row.
- docs_patches.py classifies the new key (`game` to `host`, memory), or it exits on a
  switch it cannot classify and `tools/engine.py sync` fails once the patches apply. The
  generated docs/agents/game-patches.md is left alone: on this pin the generator's own
  profile-switch table is down to one row (game.py's header_one split left `switches()`
  reading the four lines of header()), so a hand-edit would fight the next regeneration.
- The test covers the row's graphics API, both platforms' defaults and the Mac.

The tests pass (17 in test_launcher_settings.py). Off bounds nothing by itself: the
mappings still grow, from what is drawn instead of what is in the program, and a long
session still ends somewhere.

Upstream-Status: forwarded seedds/nxnative#1209
Reason: Persona 5 Royal fills the iOS mapping limit and is ended after 60-100 s; the prefetch switch existed but no front end could reach it, and the game ships it off in its profile
Issue: LNPANDY#665
ZhaowTao added a commit to ZhaowTao/NX2Apple that referenced this pull request Nov 7, 2026
…off (Persona 5 Royal)

A program's shader libraries are loaded in the background as soon as the game makes the
program (nvn_mtl.m mtl_prog_prefetch, from nvnProgramSetShaders), whether or not a draw
uses them. It had a switch, DM_NVN_PREFETCH=0, but no front end could offer it:
dm/ios/Sources/player_env.h filters the DM_NVN_ prefix as a diagnostic, so it cannot be
saved from Documents/env.txt either.

On iOS a loaded library is a mapping the process keeps for good: NvShader holds the
MTLFunction, the function holds the library, and the shader table keeps the shader by
key. A game with a very large shader tree fills the process's mapping limit that way and
is ended with vnode-limit. Persona 5 Royal is 24,826 pipelines, 88,792 metallib and
30,646 json (119,439 files, 1.3 GB) and was ended after 60-100 s in every configuration
tried on an iPhone 17 Pro, while Breath of the Wild (4,829 pipelines) and Rhythm Heaven
Groove (100 metallib) run for hours on the same device and build
(LNPANDY#665, LNPANDY#666).

Off, one run held 30 fps for 99,600 frames (about 55 minutes) with the switch in
Documents/env.txt, the path a player takes: no jetsam, no vnode-limit, no argument buffer
abort. 34 minutes / 61,200 presents was the same switch set as a launch environment; with
it on the same build aborted in a prefetch worker at 5 min 33 s.

- settings.tsv gains the row for every NVN game, in Performance, with the iOS default
  from the profile and the Mac default on (the shape DM_PSO_MTL4 has).
- player_env.h carries the exception DM_NVN_ENC_THREAD already has, so a player build
  keeps the launcher's value.
- game.py takes the profile key nvn_prefetch (on / off) and writes DM_GAME_NVN_PREFETCH,
  which settings.py resolves as the iOS default.
- Persona 5 Royal's profile sets it off, so a player never has to find the row.
- docs_patches.py classifies the new key (`game` to `host`, memory), or it exits on a
  switch it cannot classify and `tools/engine.py sync` fails once the patches apply. The
  generated docs/agents/game-patches.md is left alone: on this pin the generator's own
  profile-switch table is down to one row (game.py's header_one split left `switches()`
  reading the four lines of header()), so a hand-edit would fight the next regeneration.
- The test covers the row's graphics API, both platforms' defaults and the Mac.

The tests pass (17 in test_launcher_settings.py). Off bounds nothing by itself: the
mappings still grow, from what is drawn instead of what is in the program, and a long
session still ends somewhere.

Upstream-Status: forwarded seedds/nxnative#1209
Reason: Persona 5 Royal fills the iOS mapping limit and is ended after 60-100 s; the prefetch switch existed but no front end could reach it, and the game ships it off in its profile
Issue: LNPANDY#665
…off (Persona 5 Royal)

A program's shader libraries are loaded in the background as soon as the game makes
the program (nvn_mtl.m mtl_prog_prefetch, from nvnProgramSetShaders), whether or not a
draw uses them. It had a switch, DM_NVN_PREFETCH=0, but no front end could offer it:
dm/ios/Sources/player_env.h filters the DM_NVN_ prefix as a diagnostic, so it cannot be
saved from Documents/env.txt either.

On iOS a loaded library is a mapping the process keeps for good: NvShader holds the
MTLFunction, the function holds the library, and the shader table keeps the shader by
key. A game with a very large shader tree fills the process's mapping limit that way and
is ended with vnode-limit. Persona 5 Royal is 24,826 pipelines, 88,792 metallib and
30,646 json (119,439 files, 1.3 GB) and was ended after 60-100 s in every configuration
tried on an iPhone 17 Pro, while Breath of the Wild (4,829 pipelines) and Rhythm Heaven
Groove (100 metallib) run for hours on the same device and build
(LNPANDY/NX2Apple#665, seedds#666).

Off, one run held 30 fps for 34 minutes: 61,200 presents, p50 33.34 ms, 1,773 MiB, 410,000
audio callbacks with no underrun, no crash; with it on the same build aborted in a
prefetch worker at 5 min 33 s.

- settings.tsv gains the row for every NVN game, in Performance, with the iOS default
  from the profile and the Mac default on (the shape DM_PSO_MTL4 has).
- player_env.h carries the exception DM_NVN_ENC_THREAD already has, so a player build
  keeps the launcher's value.
- game.py takes the profile key nvn_prefetch (on / off) and writes DM_GAME_NVN_PREFETCH,
  which settings.py resolves as the iOS default.
- Persona 5 Royal's profile sets it off, so a player never has to find the row.
- The test covers the row's graphics API, both platforms' defaults and the Mac.

Off bounds nothing by itself: the mappings still grow, from what is drawn instead of what
is in the program, and a long session still ends somewhere. The prefetch staying unbounded
is seedds#665's subject.
@ZhaowTao
ZhaowTao force-pushed the shader-prefetch-setting branch from f1c1915 to 82d4d5c Compare November 7, 2026 10:28
lucaszhongsj pushed a commit to lucaszhongsj/nxnative that referenced this pull request Nov 19, 2026
…off (Persona 5 Royal)

A program's shader libraries are loaded in the background as soon as the game makes the
program (nvn_mtl.m mtl_prog_prefetch, from nvnProgramSetShaders), whether or not a draw
uses them. It had a switch, DM_NVN_PREFETCH=0, but no front end could offer it:
dm/ios/Sources/player_env.h filters the DM_NVN_ prefix as a diagnostic, so it cannot be
saved from Documents/env.txt either.

On iOS a loaded library is a mapping the process keeps for good: NvShader holds the
MTLFunction, the function holds the library, and the shader table keeps the shader by
key. A game with a very large shader tree fills the process's mapping limit that way and
is ended with vnode-limit. Persona 5 Royal is 24,826 pipelines, 88,792 metallib and
30,646 json (119,439 files, 1.3 GB) and was ended after 60-100 s in every configuration
tried on an iPhone 17 Pro, while Breath of the Wild (4,829 pipelines) and Rhythm Heaven
Groove (100 metallib) run for hours on the same device and build
(LNPANDY/NX2Apple#665, seedds#666).

Off, one run held 30 fps for 99,600 frames (about 55 minutes) with the switch in
Documents/env.txt, the path a player takes: no jetsam, no vnode-limit, no argument buffer
abort. 34 minutes / 61,200 presents was the same switch set as a launch environment; with
it on the same build aborted in a prefetch worker at 5 min 33 s.

- settings.tsv gains the row for every NVN game, in Performance, with the iOS default
  from the profile and the Mac default on (the shape DM_PSO_MTL4 has).
- player_env.h carries the exception DM_NVN_ENC_THREAD already has, so a player build
  keeps the launcher's value.
- game.py takes the profile key nvn_prefetch (on / off) and writes DM_GAME_NVN_PREFETCH,
  which settings.py resolves as the iOS default.
- Persona 5 Royal's profile sets it off, so a player never has to find the row.
- docs_patches.py classifies the new key (`game` to `host`, memory), or it exits on a
  switch it cannot classify and `tools/engine.py sync` fails once the patches apply. The
  generated docs/agents/game-patches.md is left alone: on this pin the generator's own
  profile-switch table is down to one row (game.py's header_one split left `switches()`
  reading the four lines of header()), so a hand-edit would fight the next regeneration.
- The test covers the row's graphics API, both platforms' defaults and the Mac.

The tests pass (17 in test_launcher_settings.py). Off bounds nothing by itself: the
mappings still grow, from what is drawn instead of what is in the program, and a long
session still ends somewhere.

Upstream-Status: forwarded seedds#1209
Reason: Persona 5 Royal fills the iOS mapping limit and is ended after 60-100 s; the prefetch switch existed but no front end could reach it, and the game ships it off in its profile
Issue: LNPANDY/NX2Apple#665
@seedds

seedds commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Thanks @ZhaowTao for the Persona 5 Royal logs and the 34-minute comparison with prefetch off. Main now loads shader libraries from a single image (cb34473), removing the loose-file mappings that exhausted the vnode limit in that build. The image path addresses both prefetch and on-demand loads, so I'm closing the launcher opt-out proposed for that limit. The separate prefetch assertion from the fork remains a separate symptom if it reproduces with a current build.

@seedds seedds closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation game: 01005CA01580E000 Persona 5 Royal ios The iPhone and iPad app (dm/ios) tools Tools and scripts (dm/tools, scripts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants