Skip to content

SHIN MEGAMI TENSEI V (010063B012DC6000, 1.0.0): game profile, version 8 Unreal paks, UE 4.23's FMalloc layout and engine region, 60 fps and an iOS Screen setting - #173

Open
Xanawer wants to merge 1 commit into
seedds:mainfrom
Xanawer:smtv-port

Conversation

@Xanawer

@Xanawer Xanawer commented Oct 25, 2026 •

Copy link
Copy Markdown

Summary

SHIN MEGAMI TENSEI V (010063B012DC6000, 1.0.0, Unreal Engine 4.23 on SDK 9.3.1): a game profile, plus the general changes it needed.

Rebased onto bfc7088. Main's SDK-wide address-space rules (#635) now reach this game's SDK build, and its engine-wide Unreal allocator rule finds this game's FMallocBinned3, so this PR drops its own SDK row and allocator cut and gives that rule the Unreal Engine 4.23 slot layout instead. Main's new console-variable rule (ue_cvar.py) finds this game's t.MaxFPS and rhi.SyncInterval by name, at the objects this PR's two hle_fpslock.c rows had, so those rows are gone too. Main's new engine-region rule (ue_region.py, 2006d5e) found no reservation in this game's nninitStartup, a red line: its size variable is a global of its own, not the word after the base variable. So this PR extends that rule with a second pass, run only when the first finds nothing, and drops the profile's game_args -SwitchVirtualAddressSpaceSize=4064 and its patches.py. The boot below is the first of main's region gate on any game. Main's new key finder (uepak.py code_keys, 8c0b808, for DRAGON QUEST III HD-2D Remake) finds this game's pak key too, so this PR's own finder for the same form (callback_keys) is gone. code_keys gets the lower bound callback_keys had: a literal on the page before the image gave an empty candidate, and find_key's decrypt failed before the real key. The PR keeps pak_key, which takes each pak's key from the main of its own version. With main's TV scene (#367) the Screen setting is the phone's only: a TV shows the picture fitted 16:9, as main has it. Main had already added the NVN pieces this game needed: virtual pools of one texture each (OCTOPATH TRAVELER), the sparse tile layout queries, sparse textures with their tile's block height, and image atomics as Metal texture atomics. So this PR no longer touches hle_nvn.c or nvn_tex.c, drops its virtual_pools profile key, and no longer needs #263. With main's atomics the two compute shaders that were open here build too: 0 red lines now, 7 before.

Related: #93 (games filling the iPhone screen). The Screen setting is the generic fill weighed there, and like the issue it keeps Zoom and Stretch out of the default: Fit stays the default, and the other two are opt-in from the launcher. Per-game native widescreen is not part of this PR.

 dm/
 ├── games/
+│   ├── 010063B012DC6000/        # profile, game note; fps_target 60, depth_mode zero; no patches.py, no game_args
 │   └── settings.tsv             # + Screen: DM_ASPECT fit | zoom | stretch (iOS launcher)
 ├── gfx/
 │   ├── tools/uepak.py           # + pak version 8, deletion records, each pak's key from its version's main (pak_key); code_keys: no literal before the image
 │   ├── tools/shader_split.py    # legacy pak jobs carry their main (for the key); a patch pak's deletions drop the base copy
 │   └── nvn/nvn_mtl.m            # texraw at the sampled level; the scissor-leak comment names this game
 ├── host/
 │   └── hle_uemalloc.c           # + FMalloc layout UE4_23 (name getter at slot 17, 18 slots, no TryMalloc)
 ├── ios/Sources/
 │   ├── front_ios.m              # dm_game_rect: a 16:9 game view, letterboxed, zoomed or stretched; a TV stays fitted
 │   └── DmGamepad.m              # touches mapped on the same rect
 └── tools/
     ├── ue_malloc.py             # + slot 17: Unreal Engine 4.23, for main's engine-wide allocator rule
     ├── ue_cvar.py               # docstring only: this game's registrations (UE 4.23) follow the same sequence
     ├── ue_region.py             # + a second pass: a size variable apart from the base, the one the default path tested (UE 4.23)
     ├── sdk_patches.py           # comments only: the SDK-wide rules name this game's SDK 9.3.1 build
     ├── tests/test_ue_region.py  # + the 4.23 form, the first pass winning, stores the second pass must not take
     ├── tests/test_uepak_key.py  # + literals before the image are no key
+    └── tests/test_uepak_legacy.py   # a synthetic version 8 pak, and a patch pak's deletion

Tests: a t_tex case (this game's 1024×1024 DXT5 lightmap: 8 GOBs, 3 tiled levels of 256×256 texels, against main's tile rule); test_launcher_settings counts Screen among the iPhone-only rows; test_ue_malloc finds the 4.23 layout; test_ue_region finds this game's form of the region's reservation, keeps a store beside the base ahead of it, takes the tested variable rather than a later store of the same constant to the stack or another object, and is red when the base register moved, something is stored through it after the size, the test loads the base itself, or the value differs; test_uepak_key checks that literals on the page before the image give no key and the real one is still found; test_uepak_legacy reads a synthetic version 8 pak (footer, index, a stored and a Zlib file, a deletion record) and checks that a patch pak's deletion takes the base pak's copy out of the split's view.

Docs: the game note, the games table (with depth_mode zero: the game sets near = 0; and in fps_target's list), the games gallery (docs/images/gallery.tsv, written out by docs_gallery.py), docs/playing.md's DM_FPS_TARGET line, DM_ASPECT in docs/env_switches.tsv, docs/settings.md (Screen, and that a TV shows the picture fitted), this game in the "Found on" lines of main's docs/reference entries it relies on, the symptom index and the game patch index (docs_patches.py).

Evidence

Mac, a new game through the opening and the naming to the classroom (the gallery picture this PR adds):

Jouin High School 2F at 60 fps

  • Before (on main before its pool changes): [RED] MapVirtual: non-contiguous mapping (true sparse) not implemented a few hundred times, then Unreal's out-of-memory abort at boot (a 0xffe00000-byte pool request sized from the tile-layout stub).
    After (on cdc6cef): no crash and no red line from boot to the classroom. No MapVirtual line; 1,189 first texture uploads (1,187 in the previous run of this PR), frame time p50 16.7 ms and p95 17.9 ms after frame 20,000.
  • Before (this PR on 4639c51): 7 red lines; Unreal's two global compute shaders that use the value their atomics return (4f731ba19a5f2877, c073d1efaba9ac70) were not translated, and the classroom came out a little darker (mean luma 57.3 at frame 29,000).
    After: both build with main's atomics and run. 0 red lines, and the classroom at mean luma 58.3 to 58.6 (two runs), as with their old translations put back (58.8).
  • Before: 30 fps, frame time p50 33.3 ms.
    After: 60 fps. The naming keyboard comes up at about the same wall time at either rate (243.7 s at 30, 246.6 s at 60), because Unreal steps by real time.
    [dm] main: Unreal t.MaxFPS (game thread) 30 → 60 fps (game profile fps_target)
    [dm] main: Unreal rhi.SyncInterval (game thread) 2 → 1 vsyncs (game profile fps_target)
    [dm] [nvn] timing up to frame 39900: frame time p50 16.65 / p95 17.18 / max 25.85 ms (300 frames)
    
  • Screen (iOS launcher), Fit / Zoom / Stretch on the iPhone's 19.5:9 screen. These are previews made from Mac frames with the same rectangles; Core Animation scales after present, so in-game shots don't show the setting.
    Fit, Zoom, Stretch
  • iPhone 18 Pro Max (user, with a build from before Guard Metal image atomics and validate backing bounds #178): it plays the opening, the naming and Jouin High School. The IPA is about 14.5 GB. With fps_target 60 (then through this PR's own frame-limit rows, at the objects main's rule now finds), the launcher logged DM_FPS_TARGET=60 and DM_ASPECT=fit, the rhi.SyncInterval 2 → 1 writes, and front end: screen fit, picture 782x440 at 86,0 on the 956x440 screen. That session ran its first 900 frames at frame time p50 16.7 ms.

On bfc7088 plus this PR, on an Apple M5 Mac (<id>: Wonder 010015100B514000 and SMT V 010063B012DC6000):

python -m unittest dm/tools/tests/test_*.py dm/ios/tests/test_*.py dm/gfx/tests/test_*.py   957 tests OK (Python 3.14)
python dm/tools/lint_python.py --against origin/main                                         0 new findings
python dm/tools/lint_c.py compdb; lint_c.py tidy --against origin/main  (clang-tidy 23.1.4)  0 above the baseline, 0 below
make -C dm/host/tests GAME=<id> run                                                           OK, both
make -C dm/host/tests GAME=010015100B514000 tsan memory-tsan asan tsan-threads                OK
dm/gfx/tex/tests: t_tex, make asan                                                           OK
make -C dm/gfx/tests check_t_thermal thermal-tsan; t_perf_order --cpu; perf-order-tsan        OK
the CPU-only gfx tests CI runs; make -C dm/gfx/tests gl-imports                               OK
make -C dm/host GAME=<Wonder | Hades | Digimon | SMT V> dmhost; every gfx test built         OK
python3 dm/ios/tools/compile_check.py                                                         OK, both
python3 dm/ios/tools/build_smoke.py --output <dir>                                            OK
make -C dm/gfx/tests GAME=<id> run   (85 tests, 2 Python checks)                              OK, both

Main's rewriter gives all three modules byte for byte as on 2006d5e (its cheats change adds only the record of the ranges it changed, *.changed.tsv): sdk takes the SDK-wide rules' five cuts, the node area's two and the alignment's three (regions of 4 MB and more to 2 MB, where this PR's old row gave 1 GB and more 32 MB). main has main's region gate OBS_UE_REGION on the str x8 at main+0x1885afc, from the new second pass, in place of this PR's old two nninitStartup cuts; it keeps the engine-wide allocator cut at main+0x1713920 with the vtable (main+0x57e6238) and slot 17 in its fixups, and the console variables main's rule found: t.MaxFPS at 0x761ed40 and rhi.SyncInterval at 0x7520648, the objects of this PR's old rows, and r.Streaming.PoolSize at 0x761d1b0, which nothing writes here because the profile sets no ue_texture_pool. No red line. The shader split, with main's key finder (code_keys) and its splitter changes, opens the encrypted pak and gives the profile's three shader tables' rows byte for byte as before: 18,558 shaders, no red line.

Main's new shader chain (d1043b780a74) builds all 18,558 of this profile's shaders. Then the same route, on that chain, as above, from a new game through the naming to the classroom:

  • no crash and no red line;
  • Unreal's allocator on the host malloc zone (0.75 GB in use by the classroom);
  • main's region gate, its first boot on any game: Unreal's engine region: 62.00 GB asked, 4.06 GB of address space, what the alias region has room for, the region at alias region +64 MB (4,064 MB from game_args before);
  • the host writing t.MaxFPS 30 → 60 and rhi.SyncInterval 2 → 1, both threads' copies, at the objects main's rule found;
  • 1,189 first texture uploads;
  • frame time p50 16.7 ms and p95 17.0 ms after frame 20,000 (17.7 and 17.1 in the two previous rounds' boots);
  • the classroom at frame 29,000 at mean luma 58.7 (58.3 to 58.7 in earlier runs).

Review: GPT (codex gpt-6-astra) read the region change. In its first second pass it found two holes: a later store of x1's constant, to the stack or another object, would have been gated instead of the size variable, and a store at the base+8 displacement to another base vetoed the pass. Both are fixed, with tests: the pass now takes the variable the default path tested. A second round on that fix confirmed both closed and the first pass unchanged (234 mutated forms gave main's results), and found three narrower gaps, also fixed with tests: a later writeback store through the base, a write of wsp the base tracking missed, and a test that loads the base itself or xzr. A GPT round on this rebase found the key-finder swap and the merges in uepak.py, shader_split.py and ue_region.py correct, and one gap in main's code_keys, the missing lower bound, fixed here with a test. Earlier rounds read this commit as rebased onto d3f7433 and found nothing in the TV merge, the 4.23 allocator layout or the profile against main's rules; in the pak reader they found the patch-pak deletions (fixed here, with test_uepak_legacy) and the plain-index case below.

Not checked:

  • This commit on the iPhone (the phone ran a build from before Guard Metal image atomics and validate backing bounds #178), and the iOS project for these chains.
  • On the phone, gameplay at 60 fps (only the first 900 frames were logged) and loading a save (one was made on the phone, so the title offers LOAD GAME).
  • Anything past Jouin High School.
  • Any other game's version 8 pak, and DRAGON QUEST XI S's split with the deletion change.
  • The region rule's second pass on other mains: main checked its rule on 123 mains on the game drives, which are not on this machine. By construction it cannot change a main the first pass finds.
  • The Screen setting with main's TV scene, on a device.
  • A pak whose index is plain but whose files are encrypted is still not read: the key is known by the index it decrypts (GPT's review; no game here has one).

Known issues:

  • There is no prewarm list yet, so new scenes build their pipelines on first use and hitch.
  • One SIGBUS at main+0x3617108 came up once during bring-up and hasn't happened again.

Dropped in this update: the sparse-texture lifetime fix (vpool_tex, t_sparse_life) went with this PR's pool code. Main's pool code reads a texture's sparse pages through the pool object the texture was created with, and this game finalizes its per-texture pools all the time, so a texture that outlives its pool may read zeros, or another pool's pages once the game reuses the pool object. That comes from reading the code; it did not show in the run above. It can come back as a small PR on main's pool code if you want it.

Merge Danger

Door: two-way

There is one commit, with no save, cache or file-format changes, so a revert takes everything back out.

Blast Radius: moderate

  • iOS, every game: the game view's frame and touch mapping now go through dm_game_rect. Fit is the default and gives the same 16:9 letterbox as before. The Screen row shows for every game on the iPhone; it is marked platform:ios, so the Mac app's settings window leaves it out. With a TV connected, the TV's view controller (main's DmTVVC) now resets the game view's transform before it sets the frame, because Stretch leaves a scale transform on the view; on the TV the picture is fitted as before.
  • Unreal paks: uepak.LEGACY now includes version 8, so other UE 4.22–4.24 games' version 8 paks are now read; before, the reader raised "only 4 and 11 are read". A legacy pak's deletion records (flag 2) are no longer files: main kept them as files flagged encrypted, which no read could open. Now a patch pak's deletion takes the base pak's copy out of the view the split scans. DRAGON QUEST XI S's update pak is the one legacy patch pak in the profiles; its files are not here, so whether it lists any deletions is unchecked. Main's code_keys now skips a pair whose literal lies before the image, a candidate that could only make the search fail.
  • Host: texraw is a debugging command.
  • Unreal engine region (ue_region.py): the second pass runs only when main's first finds no reservation in nninitStartup, so the nine builds main's rule finds keep their gate, and a main where neither finds one stays a [RED] line. A main that was red there and has this form now gets the gate. Checked on this game only.
  • Unreal Engine 4.23 allocator: main's engine-wide rule now also cuts any Unreal main whose Binned3 name getter is at vtable slot 17, and the host gives it the UE4_23 layout. Before, such a main was a [RED] line in the rewrite and kept its own allocator. Checked on this game only.

If you'd rather take them apart, the general changes can land without the profile, as #89–#91 did for Super Smash Bros. Ultimate. They split into the Screen setting (iOS), the pak reader (uepak.py / shader_split.py), the FMalloc layout (hle_uemalloc.c, ue_malloc.py) and the region rule's second pass (ue_region.py).

🤖 Generated with Claude Code

@Xanawer Xanawer changed the title SHIN MEGAMI TENSEI V (010063B012DC6000, 1.0.0): game profile, version 8 Unreal paks, sparse virtual pools, 60 fps and an iOS Screen setting SHIN MEGAMI TENSEI V (010063B012DC6000, 1.0.0): game profile, version 8 Unreal paks, UE 4.23's FMalloc layout, 60 fps and an iOS Screen setting Oct 27, 2026
@Xanawer
Xanawer force-pushed the smtv-port branch 4 times, most recently from bde33ed to 60ac818 Compare October 30, 2026 18:10
@Xanawer Xanawer changed the title SHIN MEGAMI TENSEI V (010063B012DC6000, 1.0.0): game profile, version 8 Unreal paks, UE 4.23's FMalloc layout, 60 fps and an iOS Screen setting SHIN MEGAMI TENSEI V (010063B012DC6000, 1.0.0): game profile, version 8 Unreal paks, UE 4.23's FMalloc layout and engine region, 60 fps and an iOS Screen setting Oct 30, 2026
…SDK 9.3.1): game profile plus version 8 Unreal paks, UE 4.23's FMalloc layout and engine region, and on iOS 60 fps and a Screen setting

Plays on the iPhone 18 Pro Max (user, with a build from before main's image-atomic changes): the opening, the character naming and Jouin High School. With fps_target 60 (then through this PR's own frame-limit rows, at the objects main's rule now finds) the phone's launcher offers Frame rate 30 / 60; its last logged session (60, Screen fit) ran its first 900 frames at frame time p50 16.7 ms. On the Mac a new game runs through the opening and the naming to the classroom at 60 fps (frame time p50 16.7 ms; 33.3 at 30) with no red line, at the game's own speed: the naming keyboard comes at the same wall time at either rate.

- uepak.py / shader_split.py: legacy pak version 8 (UE 4.22 to 4.24: version 11's footer, five compression method names, Zlib here, read by Pak.read), deleted entries (flag 2: a patch pak's record of a file it removes) taken out of the view the splitter scans, the base pak's copy with them (main kept them as files flagged encrypted), and each pak's AES key from the main of its own version (pak_key, once per main; ue_legacy_jobs carries the main's path, never the key). Main's code_keys finds this game's key: its key callback (main+0x14180c0) returns it from two 16-byte literals 0x1460 bytes apart, one of 12 candidate pairs in main; this PR's own finder for that form (callback_keys) is gone, and code_keys gets the lower bound callback_keys had: a literal on the page before the image gave an empty candidate, and find_key's decrypt failed before the real key (GPT's review; test_uepak_key checks it). The key stays in memory, never printed. The footer is told by its layout (version 4's short one; 8 and 11 share the long one) and a version 8 entry's method by the footer's names, so main's checks of a damaged pak hold for version 8 too. test_uepak_legacy checks a synthetic version 8 pak's footer, index and reads, and a patch pak's deletion. A pak whose index is plain but whose files are encrypted is still not read (the key is known by the index it decrypts; no game here has one). 18,558 shaders split.
- hle_uemalloc.c / ue_malloc.py: UE 4.23's FMallocBinned3 (74 pools of 512 MB, 37 GB of the engine's region) goes to the host allocator through main's engine-wide rule: its name getter is slot 17, so ue_malloc.py's LAYOUTS and the host's layouts get UE4_23 (18 vtable slots, no TryMalloc / TryRealloc yet; 0 for the missing slots, as main's UE3 layout has them). The rule finds this main's constructor call (main+0x1713920) and vtable (main+0x57e6238), where this PR's own cut was, and gates the call. test_ue_malloc checks the 4.23 layout.
- ue_region.py: main's engine-region rule found no reservation in this nninitStartup (a red line). Like Pikmin 4's, it reserves the region only while its size variable is 0, but that variable is a global of its own ([x24, #0x650]), not the word after the base variable. A second pass, run only when the first finds nothing, so no main the first pass holds for changes, takes the variable the default path tested (ldr xT, [xB, #d]; cbnz xT right before it) and the last str to [xB, #d] before the call, xB unchanged since and nothing stored through it after, with the first pass's checks of x1: here str x8 at main+0x1885afc, where the gate goes. The host then gives the region what the alias region has room for, 4.06 GB at alias +64 MB. The profile's game_args -SwitchVirtualAddressSpaceSize=4064 and its patches.py (two nninitStartup cuts that let the option's path allocate, and their BINDING) are gone. test_ue_region checks this form, that a store beside the base still wins, that later stores of x1's constant to the stack or another object are not taken, and that a moved base register (wsp included), a later store through the base, a test that loads the base itself, or another value is red.
- sdk_patches.py: no row of its own. Main's SDK-wide rules now reach every sdk build, and on this SDK 9.3.1 build (ad3fdfbd62a5) they give the node area cut (Advance Wars 1+2's implementation) and regions of 4 MB and more aligned to 2 MB (DRAGON QUEST XI S's), where this PR's row gave 32 MB to regions of 1 GB and more. The rules' comments name the build. In Engage's 5 GB block the region starts 64 MB into the alias region.
- Frame rate: no hle_fpslock.c rows of its own. Main's console-variable rule (ue_cvar.py) finds this main's t.MaxFPS (main+0x761ed40) and rhi.SyncInterval (main+0x7520648) by name, the objects this PR's two rows had, and the host writes 60 and 1 into both copies of each. The game's code sets t.MaxFPS 30 at run time and the Switch device profile sets rhi.syncinterval=2; either alone kept it at 30. The profile's fps_target 60 adds the launcher's Frame rate 30 / 60. ue_cvar.py's docstring and docs/reference/frame-rate.md name the game.
- iOS: a launcher setting Screen (DM_ASPECT fit / zoom / stretch, default fit; a settings.tsv row marked platform:ios, so the Mac app's settings window leaves it out, as test_launcher_settings now checks; a row in docs/env_switches.tsv). front_ios.m keeps the game view 16:9 (its drawable follows its bounds, and present letterboxes any other ratio): zoom makes it larger than the screen, stretch widens it with a transform. Touches are mapped on the same rectangle (dm_game_rect, DmGamepad.m). With main's TV scene the setting is the phone's only: on a TV the view is fitted 16:9 as main has it (DmTVVC resets the stretch transform before it lays the view out, and the phone's layout sets it again when the view comes back), and docs/settings.md says so.
- nvn_mtl.m: texraw reads a packaged texture at the level it is sampled from. The pipeline-miss lookahead's scissor comment names this game too (the naming cutscene came out green, then white, before main's fix for OCTOPATH TRAVELER II).

Main's own changes cover what this game needed from NVN: every virtual pool gets an address range of its own and its first mapping decides (OCTOPATH TRAVELER), the sparse tile layout queries, sparse textures with their 64 KB tile's block height (8 GOBs for the classroom's DXT5 lightmaps; a t_tex case checks that texture), and returning image atomics as Metal texture atomics, so Unreal's two global compute shaders that use the value their atomics return (4f731ba19a5f2877, c073d1efaba9ac70) now build and run.

Profile: tex_flush_upload and tex_dirty_upload on (the colour grading LUT is written from the CPU; without them the picture is black), pad_layout full, depth_mode zero (the game sets near = 0), shader groups global / engine / game. Docs: the game note, the games table (version 8 paks, depth_mode, fps_target's list), the games gallery (docs/images/gallery.tsv, a Mac picture of the classroom), docs/playing.md's DM_FPS_TARGET list, docs/reference memory / nvn-objects / rendering / shaders / frame-rate, docs/settings.md, the symptom index and the game patch index (docs_patches.py).

Checked on bfc7088:
- CI's steps: the host tests for Wonder's profile and this one, tsan / memory-tsan, ASan and UBSan over the host tests and t_tex, tsan-threads, the thermal checks, t_perf_order and its tsan build, t_tex, the CPU-only gfx tests, the GL import check, the Python tests (957: dm/tools, dm/ios and dm/gfx tests), the Python lint against main's baseline (0 new findings), the C lint against main's baseline (clang-tidy 23.1.4: none above it, none below), the Mac host for Wonder, Hades, Digimon Story Cyber Sleuth and this profile, every gfx test compiled, the iOS compile check for both profiles and the unsigned iOS app;
- the gfx run list (make run: 85 tests and 2 Python checks) passes under Wonder's profile and this one;
- main's rewriter gives all three modules byte for byte as on 2006d5e (its cheats change adds only the record of the ranges it changed, *.changed.tsv): main has the region gate in place of this PR's old two nninitStartup cuts, on the store at 0x1885afc (x8); the allocator cut and gate (main+0x1713920) and the console variables t.MaxFPS (0x761ed40), rhi.SyncInterval (0x7520648) and r.Streaming.PoolSize (0x761d1b0, unused) as before; no red line;
- the shader split, with main's key finder (code_keys) and its splitter changes, opens the encrypted pak and gives this profile's shader_map / shader_facts / shader_pairs rows byte for byte as before: 18,558 shaders, no red line;
- main's new shader chain (d1043b780a74) builds all 18,558 of this profile's shaders (main's commits since leave the chain and the rewriter as they were; f5cc73d's NVN buffer offsets and bfc7088's Metal 4 function constants are in the boot below). A Mac boot on it from a new game through the naming to the classroom at 60 fps, the first boot of main's region gate on any game: no red line, "Unreal's engine region: 62.00 GB asked, 4.06 GB of address space", the region at alias +64 MB, the host writes t.MaxFPS 30 → 60 and rhi.SyncInterval 2 → 1 (both threads' copies), Unreal's allocator on the host malloc zone (0.75 GB in use), frame time p50 16.7 ms and p95 17.0 ms after frame 20,000 (17.7 and 17.1 in the two previous rounds' boots), 1,189 first texture uploads; the classroom at frame 29,000 at mean luma 58.7 (58.3 to 58.7 in earlier runs);
- not on this commit: the iOS project (it was built on cbbb600), and so the Screen setting with main's TV scene;
- reviews: GPT (codex gpt-6-astra) on the region change found two holes in its first second pass (a later store of x1's constant, to the stack or another object, would have been gated instead of the size variable; a store at the base+8 displacement to another base vetoed it), fixed with tests; its second round on the fix confirmed both closed and the first pass unchanged (234 mutated forms gave main's results) and found three narrower gaps (a later writeback store through the base, a write of wsp the base tracking missed, a test that loads the base itself or xzr), also fixed with tests. A GPT round on this rebase onto 2aae9f8 found the key-finder swap and the merges in uepak.py, shader_split.py and ue_region.py correct, and the missing lower bound in main's code_keys, fixed here. Earlier GPT rounds read this commit as rebased onto d3f7433 (the TV merge, the 4.23 allocator layout, the pak reader, the profile against main's rules: the patch deletions fixed here and the plain-index case named above), the Screen setting and the merge with cbbb600.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added host The Horizon host: SVCs, services, threads, memory (dm/host) nvn NVN on Metal and its tests (dm/gfx/nvn, dm/gfx/tests) textures Texture layouts and formats (dm/gfx/tex) rewriter The NSO rewriter and per-build patches packing Building an IPA or a Mac app: the NSP script, extraction, the shader split, the packers ios The iPhone and iPad app (dm/ios) tools Tools and scripts (dm/tools, scripts) docs Documentation game: 010063B012DC6000 A game profile new game Adds a game profile that main does not have yet labels Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation game: 010063B012DC6000 A game profile host The Horizon host: SVCs, services, threads, memory (dm/host) ios The iPhone and iPad app (dm/ios) new game Adds a game profile that main does not have yet nvn NVN on Metal and its tests (dm/gfx/nvn, dm/gfx/tests) packing Building an IPA or a Mac app: the NSP script, extraction, the shader split, the packers rewriter The NSO rewriter and per-build patches textures Texture layouts and formats (dm/gfx/tex) tools Tools and scripts (dm/tools, scripts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants