upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/models.md
diff options
context:
space:
mode:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 07:38:11 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 07:38:11 -0500
commit5987ffb0a3d83e67eeda6c4f99fd16bd0000e2f0 (patch)
tree95bb3f5d3af1d58d32ea2ddd167383d8d13d55d7 /docs/models.md
parentc6045cff5aee98cc781e8ca132028bb18bf2f50e (diff)
parentb94ff2643ae0bde8f148c134111f34ae9c15b4f7 (diff)
Merge pull request #1558 from Kam471
# Conflicts: # docs/README.md # docs/design.md # docs/models.md
Diffstat (limited to 'docs/models.md')
-rw-r--r--docs/models.md69
1 files changed, 56 insertions, 13 deletions
diff --git a/docs/models.md b/docs/models.md
index f40c0d17e..061cf213a 100644
--- a/docs/models.md
+++ b/docs/models.md
@@ -4,6 +4,10 @@ Measured state of `tools/rpf9dump models` on the Xbox Series 1.0.2.1 package, an
4upstream `rpf9-explorer` fixes that close it. The fixes are merged upstream and the submodule is 4upstream `rpf9-explorer` fixes that close it. The fixes are merged upstream and the submodule is
5pinned at `e293917`, where a full ten-archive re-count recovers **382,781 models** (**2.64 billion 5pinned at `e293917`, where a full ten-archive re-count recovers **382,781 models** (**2.64 billion
6triangles**, **0 decode failures**), up from 350,248 at `917e9b9` and 190,792 at `c3708fb`. 6triangles**, **0 decode failures**), up from 350,248 at `917e9b9` and 190,792 at `c3708fb`.
7upstream `rpf9-explorer` fix that closes it. The fix is merged upstream and the submodule is
8pinned at `e293917` (the 350,251-model counts below were measured at `917e9b9`, before
9upstream `v1.2` PRs #8-#12 landed; the non-`levels.rpf` archives were then re-counted at
10`e293917`).
7 11
8Before the fix, the exporter did not reject any vertex or index layout in the tested archives. It 12Before the fix, the exporter did not reject any vertex or index layout in the tested archives. It
9dropped valid models in three validation paths, all in `third_party/rpf9-explorer` at commit 13dropped valid models in three validation paths, all in `third_party/rpf9-explorer` at commit
@@ -23,6 +27,9 @@ decoding (PR #7). A full ten-archive re-count at `e293917` recovers **382,781 mo
23over `917e9b9`'s 350,248) and **2,636,248,990 triangles** with **0 decode failures**; the earlier 27over `917e9b9`'s 350,248) and **2,636,248,990 triangles** with **0 decode failures**; the earlier
24`917e9b9`, `c3708fb`, and `48557ea` measurements are kept below as controls. This page records the 28`917e9b9`, `c3708fb`, and `48557ea` measurements are kept below as controls. This page records the
25measured state; it is not a competing patch. 29measured state; it is not a competing patch.
30decoding (PR #7). The 350,251-model counts below were measured at `917e9b9` and are kept as the
31control; the `e293917` re-count for the non-`levels.rpf` archives is in the table below. This page
32records both, and is not a competing patch.
26 33
27PR #1 reports 190,792 of 190,792 recognized candidates across the ten archives configured in 34PR #1 reports 190,792 of 190,792 recognized candidates across the ten archives configured in
28Leonida, including 169 previously rejected candidates (also verified after archive readback). A 35Leonida, including 169 previously rejected candidates (also verified after archive readback). A
@@ -36,12 +43,14 @@ drawable/LOD variant. The two sets are different scopes, not contradictory.
36### `packs.rpf` after the pin bump 43### `packs.rpf` after the pin bump
37 44
38`packs.rpf`'s `.#dr` pages are drawable-dictionary roots, not drawables, so the old candidate 45`packs.rpf`'s `.#dr` pages are drawable-dictionary roots, not drawables, so the old candidate
39scan never saw them. At the new pin the dictionary walk recovers **24,034 models** from that 46scan never saw them. The dictionary walk recovers **23,720 dictionary children** from that
40archive (23,720 dictionary children plus the 314 fragments), against 314 before. A full 47archive at both `917e9b9` and `e293917`; the fragment count grew from **314** to **2,865** when
41`rpf9dump models` export of the archive reports **`ok=24,034 fail=0 skip=0` in 263 s** (0 48upstream `v1.2` began recovering zero-radius fragments. The archive total is therefore
42embedded textures); the OBJs and manifest are local. The 314 `48557ea`/`c3708fb` entries in the 49**24,034 models at `917e9b9`** (23,720 children + 314 fragments) and **26,585 at `e293917`**
43table below are therefore the pre-pin control, not the current `packs.rpf` result. The other 50(23,720 + 2,865), against 314 at `c3708fb`. A full `rpf9dump models` export at `917e9b9`
44model-bearing archives were re-counted at the new pin; the results are below. 51reported **`ok=24,034 fail=0 skip=0` in 263 s** (0 embedded textures); the OBJs and manifest are
52local. The 314 `48557ea`/`c3708fb` entries in the table below are the pre-pin control, not the
53current `packs.rpf` result.
45 54
46### Full-archive re-count at `e293917` 55### Full-archive re-count at `e293917`
47 56
@@ -109,17 +118,45 @@ entries are dictionary children.
109| `data.rpf` | 2,402 | **2,581** | 268 | 2,313 | 118| `data.rpf` | 2,402 | **2,581** | 268 | 2,313 |
110| `pack/shared_minigame000/...` | 1,070 | **1,288** | 317 | 971 | 119| `pack/shared_minigame000/...` | 1,070 | **1,288** | 317 | 971 |
111| `pack/core_restofworld/...` | 1,024 | **885** | 797 | 88 | 120| `pack/core_restofworld/...` | 1,024 | **885** | 797 | 88 |
112| `pack/story000/story000.rpf` | 4,195 | **7,460** | 4,156 | 3,304 | 121| `pack/story000/story000.rpf` | 4,195 | **7,460** | 4,156 | 3,305 |
113| `packs.rpf` | 23,838 | **24,034** | 23,720 | 314 | 122| `packs.rpf` | 23,838 | **24,034** | 23,720 | 314 |
114| `levels.rpf` | 206,981 | **314,000** | 130,225 | 183,801 | 123| `levels.rpf` | 206,981 | **314,000** | 130,225 | 183,801 |
115| `common`, `textures`, `story000_restofworld`, `core_restofworld001` | 0 | 0 | 0 | 0 | 124| `story000_restofworld` | 1 | **3** | 3 | 0 |
116| **Total** | **239,510** | **350,248** | **159,483** | **190,792** | 125| `common`, `textures`, `story000_script`, `core_restofworld001` | 0 | 0 | 0 | 0 |
126| **Total** | **239,511** | **350,251** | **159,486** | **190,792** |
127
128### Re-count at `e293917`
129
130A full `rpf9dump models` re-run over the same archives at the current pin (the manifests are
131local; `levels.rpf` has a recovery count but no full OBJ export):
132
133| Archive | Rows | Non-fragment | Fragments | Delta vs `917e9b9` |
134|---|---:|---:|---:|---:|
135| `packs.rpf` | **26,585** | 23,720 | 2,865 | +2,551 |
136| `data.rpf` | **3,175** | 1,417 | 1,758 | +594 |
137| `pack/shared_minigame000/...` | **1,294** | 1,284 | 10 | +6 |
138| `pack/core_restofworld/...` | **936** | 883 | 53 | +51 |
139| `pack/story000/story000.rpf` | **7,461** | 7,461 | 0 | +1 |
140| `story000_restofworld` | **3** | 3 | 0 | 0 |
141| `common`, `textures`, `story000_script`, `core_restofworld001` | 0 | 0 | 0 | 0 |
142| **Total, excluding `levels.rpf`** | **39,454** | **34,768** | **4,686** | **+3,203** |
143| `levels.rpf` | recovery count only, see below | - | - | +29,327 |
144
145The gain outside `levels.rpf` is fragments: upstream `v1.2` PRs #8-#12 recover zero-radius
146fragments that the earlier export skipped (2,551 in `packs.rpf`, 594 in `data.rpf`), plus one
147drawable in `story000`. `story000_restofworld` has the same 3 models at both pins, so its delta
148is 0.
149
150`levels.rpf` was re-counted at `e293917` (10 shards over 235,330 candidates): **343,327 models**
151(130,239 dictionary children + 213,088 standalone), against 314,000 at `917e9b9` (206,981
152candidates; 130,225 children + 183,801). The +29,327 is a recovery count, not a row-for-row delta,
153and no full OBJ export was run. Triangle totals were not re-run either.
117 154
118The last column is the `c3708fb` recovery for comparison. `story000`'s standalone count is 155The last column is the `c3708fb` recovery for comparison. `story000`'s standalone count is
1193,304 vs 3,305; the full new-pin standalone total is 190,765, 27 below the `c3708fb` 190,792. 1563,304 vs 3,305; the full new-pin standalone total is 190,765, 27 below the `c3708fb` 190,792.
120Those 27 are not merged duplicates: they are the 27 models with more than 256 geometries that the 157Those 27 are not merged duplicates: they are the 27 models with more than 256 geometries that the
121probe rejects at `917e9b9` (26 in `levels.rpf`, 1 in `story000`; see 158probe rejects at `917e9b9` (26 in `levels.rpf`, 1 in `story000`; see
122[rejected candidates](#rejected-candidates-at-917e9b9)). The new entries are **159,483 159[rejected candidates](#rejected-candidates-at-917e9b9)). The new entries are **159,486
123drawable-dictionary children**: one model per embedded drawable in a dictionary root, not new 160drawable-dictionary children**: one model per embedded drawable in a dictionary root, not new
124pages. `core_restofworld` recovers 873 of its 1,024 candidates (885 models); the 151 rejects are 161pages. `core_restofworld` recovers 873 of its 1,024 candidates (885 models); the 151 rejects are
125140 texture dictionaries and 11 drawable dictionaries whose drawable has radius 0. 162140 texture dictionaries and 11 drawable dictionaries whose drawable has radius 0.
@@ -208,9 +245,10 @@ reproduced the ten-archive total. The `48557ea` column is the pre-fix control:
208| **Total** | **190,792** | **155,598** | **190,792** | 245| **Total** | **190,792** | **155,598** | **190,792** |
209 246
210The `packs.rpf` row is the pre-dictionary-root control: at `917e9b9` that archive recovers 247The `packs.rpf` row is the pre-dictionary-root control: at `917e9b9` that archive recovers
21124,034 models, and the other archives' new-pin counts are in the table above. The rows here are 24824,034 models (26,585 at `e293917`), and the other archives' new-pin counts are in the table above.
212the `c3708fb` measurements (190,792 models); the new-pin re-count is 350,248. Triangle totals 249The rows here are the `c3708fb` measurements (190,792 models); the `917e9b9` re-count is 350,251,
213have not been re-run at the new pin. 250and the `e293917` re-count outside `levels.rpf` is 39,454. Triangle totals have not been re-run at
251either new pin.
214 252
215At `c3708fb`, every candidate is recovered, read back and decoded: 0 decode failures, 0 readback 253At `c3708fb`, every candidate is recovered, read back and decoded: 0 decode failures, 0 readback
216failures, no duplicate model names, and 2.22 billion triangles (1.95 billion before). The 254failures, no duplicate model names, and 2.22 billion triangles (1.95 billion before). The
@@ -467,3 +505,8 @@ own light bones).
4674. Investigate the 71 remaining unrecovered fragment candidates in `levels.rpf` (and the 1 5054. Investigate the 71 remaining unrecovered fragment candidates in `levels.rpf` (and the 1
468 texture-dictionary candidate in `textures.rpf`) if further upstream recovery is wanted. 506 texture-dictionary candidate in `textures.rpf`) if further upstream recovery is wanted.
4695. Keep issue #29 in sync with the `e293917` counts. 5075. Keep issue #29 in sync with the `e293917` counts.
5083. **Done:** `tools/rpf9dump models` was re-run over the model-bearing archives at `e293917`;
509 the six non-`levels.rpf` archives total 39,454 rows (+3,203, almost all recovered fragments).
510 `levels.rpf` has a recovery count (343,327 models, +29,327) but no full OBJ export; triangle
511 totals were not re-run.
5124. Keep the README and issue #29 in sync with the new counts.