mirror of
https://github.com/seedds/nxnative.git
synced 2026-11-23 11:39:42 -10:00
game/0400A3A01EE4C000: add 5 Pokopia Pokedex and world shaders to shader_seen.tsv (PR #3171)
Add five shaders seen in Pokemon Pokopia first-area playtests and Pokedex 3D previews (36b7f49db42c771b, a09599043ae63349, a3305c931b85d38a, b639e7c91c3eacfe, cc679c7b4d3e703c) to dm/games/0400A3A01EE4C000/shader_seen.tsv, update the seen-shader count in the game note and docs/development.md, and remove the stale cc679c7b4d3e703c missing-shader note. Co-authored-by: LNP <[email protected]>
This commit is contained in:
1 parent
85b222bb8d
commit
4066c4021c
3 files changed
+9
-3
No files matched your search
@@ -15,7 +15,7 @@ A Switch 2 game: update v655360 (the title screen says Ver. 2.0.1), SDK 20.5.25
|
||||
|
||||
- A dump folder whose `updates/<version>/` holds the whole RomFS; [`pack_dump.py`](../../../scripts/pack_dump.py) packs it without a base RomFS. RomFS: the newer RDB (as ROMANCE OF THE THREE KINGDOMS 8 REMAKE's) under `motor_asset_re/KIDS_PLATFORM_OUNCE`, and a `LD_C0_R.BIN` / `LI_C0_R.IDX` LINKDATA pair.
|
||||
- DLC: the NUP lists none. The separate package `0400A3A01EE4D001` (index 1) has one empty `placeholder.txt` in its RomFS. Extract it with `nx_extract <prod.keys> --aoc <DLC NSP> <DLC folder>/1.img 0400a3a01ee4d001 --romfs-image`, then pass `--aoc-dir <DLC folder>` when building from the NUP. On the reporter's Apple silicon MacBook Air (macOS 27, v655360), the host reported one add-on and the game unlocked the content already in the update's RomFS. [PR #2905](https://github.com/seedds/nxnative/pull/2905)
|
||||
- Shaders: 131,426 in [`shader_map.tsv`](shader_map.tsv) ([KTGL on NVN2](../../../docs/reference/shaders.md#ktgl-on-nvn2-switch-2-glslc-outputs-and-ld_--li_-linkdata)). The Mac playtest's library held only the 8,157 that its runs asked for (with their pixel shaders), listed in [`shader_seen.tsv`](shader_seen.tsv); the NSP script's `--seen-shaders` builds those alone ([Building selected Mac shaders](../../../docs/development.md#building-selected-mac-shaders)). Such a library has no stamp and no `c1_full.tsv`, and each start logs that in red. On chain `20b9b1c2e4e4` an M4 Pro with other jobs running took 18 minutes for the 8,158 shaders of the list and the last logs (Metal's compile cache held nearly all of its libraries: 113 compiled), or 16 minutes with all of them cached, then about 5 minutes for the 7.9 GB Mac app. That app boots to walking at about 16.7 ms a frame with no GPU error and no shader reported missing, and later areas are untested on it. The NSP script builds all 131,426: an estimated 2.5 hours on an M4 Pro (from 1,001 shaders; no full build has run) since [the builder stopped keeping the 4.4 GB of packages in memory](../../../docs/reference/shaders.md#a-shader-build-that-keeps-its-packages-in-memory-runs-one-worker-at-a-time) and [its compiles stopped instantiating Metal's texture classes again](../../../docs/reference/shaders.md#each-metal-compile-instantiates-metals-texture-classes-again) and [its Python stopped limiting it](../../../docs/reference/shaders.md#rewrites-that-try-every-character-of-a-large-source) (before all of these, players saw about one shader a second and ETAs of 20 to 200 hours: GitHub issue #1036). The map's 105,534 pixel shaders each have `_ba` and `_bl` libraries, 57% of its compiles before those whose MSL matches another's, while the runs on the 8,157-shader library opened none of them (file access times; 7,985 of its 8,157 `_b` libraries were opened). Those runs only reached the first area (open).
|
||||
- Shaders: 131,426 in [`shader_map.tsv`](shader_map.tsv) ([KTGL on NVN2](../../../docs/reference/shaders.md#ktgl-on-nvn2-switch-2-glslc-outputs-and-ld_--li_-linkdata)). The Mac playtest's library held only the 8,157 that its runs asked for (with their pixel shaders); [`shader_seen.tsv`](shader_seen.tsv) now lists 8,162 (adding 5 first-area world and Pokedex shaders from [PR #3171](https://github.com/seedds/nxnative/pull/3171)); the NSP script's `--seen-shaders` builds those alone ([Building selected Mac shaders](../../../docs/development.md#building-selected-mac-shaders)). Such a library has no stamp and no `c1_full.tsv`, and each start logs that in red. On chain `20b9b1c2e4e4` an M4 Pro with other jobs running took 18 minutes for the 8,158 shaders of the list and the last logs (Metal's compile cache held nearly all of its libraries: 113 compiled), or 16 minutes with all of them cached, then about 5 minutes for the 7.9 GB Mac app. That app boots to walking at about 16.7 ms a frame with no GPU error and no shader reported missing, and later areas are untested on it. The NSP script builds all 131,426: an estimated 2.5 hours on an M4 Pro (from 1,001 shaders; no full build has run) since [the builder stopped keeping the 4.4 GB of packages in memory](../../../docs/reference/shaders.md#a-shader-build-that-keeps-its-packages-in-memory-runs-one-worker-at-a-time) and [its compiles stopped instantiating Metal's texture classes again](../../../docs/reference/shaders.md#each-metal-compile-instantiates-metals-texture-classes-again) and [its Python stopped limiting it](../../../docs/reference/shaders.md#rewrites-that-try-every-character-of-a-large-source) (before all of these, players saw about one shader a second and ETAs of 20 to 200 hours: GitHub issue #1036). The map's 105,534 pixel shaders each have `_ba` and `_bl` libraries, 57% of its compiles before those whose MSL matches another's, while the runs on the 8,157-shader library opened none of them (file access times; 7,985 of its 8,157 `_b` libraries were opened). Those runs only reached the first area (open).
|
||||
- No `pso_manifest.tsv` yet, so each start also logs a red line for the missing seed list. In the runs here no draw waited on it. The iOS packager now accepts the missing list, as the host does. A complete IPA build and the reported repeated shader compilation remain unverified.
|
||||
|
||||
## Shaders
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# The shader keys (column 4 of shader_map.tsv) in the library of the Mac playtest (chain 38df94307792, 2026-11-03): the shaders its runs from the language screen to walking asked for, with their pixel shaders.
|
||||
# Plus 5 first-area world and Pokedex shaders from PR #3171.
|
||||
# A partial build of these alone: docs/development.md, Building selected Mac shaders. Rows: key<TAB>stage.
|
||||
key stage
|
||||
000274aec30d28fb pixel
|
||||
@@ -1714,6 +1715,7 @@ key stage
|
||||
36a5adcd00d84a8e pixel
|
||||
36a8fbe2e8ba5b5c vertex
|
||||
36a9463562c50117 pixel
|
||||
36b7f49db42c771b vertex
|
||||
36b8a28918c3058c pixel
|
||||
36ba772ee931c551 compute
|
||||
36bfb5faf11d6d15 pixel
|
||||
@@ -5144,6 +5146,7 @@ a075361e12f447c0 pixel
|
||||
a079a46d8c8fa20b pixel
|
||||
a085d12928c9c593 pixel
|
||||
a0952cb3210b7af0 pixel
|
||||
a09599043ae63349 pixel
|
||||
a09a1623db5d80ae vertex
|
||||
a09ad0ebe781afd3 pixel
|
||||
a09eee848d5f0408 pixel
|
||||
@@ -5237,6 +5240,7 @@ a3258a4c99c0ae7f pixel
|
||||
a3288156a0aead33 pixel
|
||||
a32b9ecde6faa5c1 pixel
|
||||
a32c4f9aef477db6 pixel
|
||||
a3305c931b85d38a pixel
|
||||
a334be3b98fadbf8 pixel
|
||||
a3356d523af0a768 pixel
|
||||
a338256083e85d4c vertex
|
||||
@@ -5812,6 +5816,7 @@ b612a25e1808c296 pixel
|
||||
b614c99ba6a595f1 pixel
|
||||
b616846e4fa1afc1 vertex
|
||||
b622ddf72ee65b9c compute
|
||||
b639e7c91c3eacfe vertex
|
||||
b63af6815304ad53 pixel
|
||||
b63b659e3ed9a712 pixel
|
||||
b640798d081b4432 pixel
|
||||
@@ -6532,6 +6537,7 @@ cc5294d7ec5fb26a pixel
|
||||
cc58e3dd79e150c8 compute
|
||||
cc62264849751f55 pixel
|
||||
cc64ad2cac978ebe pixel
|
||||
cc679c7b4d3e703c vertex
|
||||
cc6c17b9f8f3675c vertex
|
||||
cc6d398b9ef66a44 pixel
|
||||
cc7411bf9684215a compute
|
||||
|
||||
|
+2
-2
@@ -741,7 +741,7 @@ Notes on these steps:
|
||||
|
||||
### Building selected Mac shaders
|
||||
|
||||
A full shader build of a large map takes hours (Pokopia: 131,426 shaders, an estimated 2.5 hours on an M4 Pro), while play reaches far fewer. `--seen-shaders` (`SEEN_SHADERS = True`) with `--platform mac` or `mac-app` builds only the shaders a game's playtests used, for an NVN game whose profile lists them in `shader_seen.tsv` (Pokopia: 8,157 of them; Hyrule Warriors: Age of Imprisonment: 15,449). Anything else stops with a message, and without the option the build stays the whole map, which then mentions the option for a game with a list.
|
||||
A full shader build of a large map takes hours (Pokopia: 131,426 shaders, an estimated 2.5 hours on an M4 Pro), while play reaches far fewer. `--seen-shaders` (`SEEN_SHADERS = True`) with `--platform mac` or `mac-app` builds only the shaders a game's playtests used, for an NVN game whose profile lists them in `shader_seen.tsv` (Pokopia: 8,162 of them; Hyrule Warriors: Age of Imprisonment: 15,449). Anything else stops with a message, and without the option the build stays the whole map, which then mentions the option for a game with a list.
|
||||
|
||||
```sh
|
||||
python3 scripts/build_ipa_from_nsp.py "<NSP or dump folder>" --platform mac-app --seen-shaders
|
||||
@@ -749,7 +749,7 @@ python3 scripts/build_ipa_from_nsp.py "<NSP or dump folder>" --platform mac-app
|
||||
|
||||
**The limit:** the rest of the map does not draw. The build says how many shaders it covers. An area the list does not cover logs `[RED] shader <key> (<stage>) failed to load` (or `failed to load shader <key>_b: cannot open`) and draws without that shader. Run the same command again to add those keys, or without `--seen-shaders` for the whole map.
|
||||
|
||||
- **The keys** are the profile's list, the keys of the last partial build (`shader/partial-keys.txt`) and the keys the logs report missing: `~/Library/Logs/nxnative/<title ID>.log` and `.prev.log` for the app, `run/host.log` for `--platform mac`, whose printed run command keeps it. The file keeps what earlier runs added, since a shader that now loads no longer shows in a log, and a key outside the packed version's shader map is dropped. A key that still fails did not translate, and the build's summary (`logs/dmsh_build.log`) names it. Pokopia logs one at every start, vertex shader `cc679c7b4d3e703c` (never drawn: [Pokopia's note](../dm/games/0400A3A01EE4C000/README.md#shaders)).
|
||||
- **The keys** are the profile's list, the keys of the last partial build (`shader/partial-keys.txt`) and the keys the logs report missing: `~/Library/Logs/nxnative/<title ID>.log` and `.prev.log` for the app, `run/host.log` for `--platform mac`, whose printed run command keeps it. The file keeps what earlier runs added, since a shader that now loads no longer shows in a log, and a key outside the packed version's shader map is dropped. A key that still fails did not translate, and the build's summary (`logs/dmsh_build.log`) names it.
|
||||
- **The library** is `shader/partial/b-<chain>`, emptied first, with its own reuse key that includes the list. It shares the full build's cache (`DMSH_CAS`), so a stopped full build's work is reused here and this work by a later full build, which removes `shader/partial` when it finishes. A partial build leaves the full library, its key and the cache as they are: no pruning, no regression check against the last build.
|
||||
- **No stamp:** a partial library has no `inputs.tsv`, and none of the build's own `c1_full.tsv` or `cb_extent.tsv`. `c1_full.tsv` lists the shaders not proven safe, so beside a stamp a shader the partial build never saw would pass as proven. The host logs a red line for the missing stamp at each start and the game runs without the tables: every c1 gets its own 64 KiB ([as slices of a bank](reference/frame-rate.md#dedicated-c1-constants-as-slices-of-a-bank)).
|
||||
- **Pipelines:** `pso_offline.py` leaves out the pairs with no library (Pokopia: 1,091 bases of 17,952 pairs). The host's probe of 16 pairs spread over the whole list skips those without a library, so it accepts this archive on what remains (Pokopia: `holds the bases of every shader pair (3 of 3 probed bases found …)`, though the archive holds only those of the listed shaders). A first start with no prewarm list runs no prebuild, so no probe. If none of the 16 had its libraries, the probe would prove nothing and log that this system does not take the bases: from the code, the host then walks the pairs once, finds what the archive holds and leaves the rest to the draws. `--platform mac` keeps these bases in `run/pso_archive_partial`, as the prebuild's stamp does not name the library.
|
||||
|
||||
Reference in new issue
Block a user