diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 07:38:11 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 07:38:11 -0500 |
| commit | 5987ffb0a3d83e67eeda6c4f99fd16bd0000e2f0 (patch) | |
| tree | 95bb3f5d3af1d58d32ea2ddd167383d8d13d55d7 /docs/models.md | |
| parent | c6045cff5aee98cc781e8ca132028bb18bf2f50e (diff) | |
| parent | b94ff2643ae0bde8f148c134111f34ae9c15b4f7 (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.md | 69 |
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 | |||
| 4 | upstream `rpf9-explorer` fixes that close it. The fixes are merged upstream and the submodule is | 4 | upstream `rpf9-explorer` fixes that close it. The fixes are merged upstream and the submodule is |
| 5 | pinned at `e293917`, where a full ten-archive re-count recovers **382,781 models** (**2.64 billion | 5 | pinned at `e293917`, where a full ten-archive re-count recovers **382,781 models** (**2.64 billion |
| 6 | triangles**, **0 decode failures**), up from 350,248 at `917e9b9` and 190,792 at `c3708fb`. | 6 | triangles**, **0 decode failures**), up from 350,248 at `917e9b9` and 190,792 at `c3708fb`. |
| 7 | upstream `rpf9-explorer` fix that closes it. The fix is merged upstream and the submodule is | ||
| 8 | pinned at `e293917` (the 350,251-model counts below were measured at `917e9b9`, before | ||
| 9 | upstream `v1.2` PRs #8-#12 landed; the non-`levels.rpf` archives were then re-counted at | ||
| 10 | `e293917`). | ||
| 7 | 11 | ||
| 8 | Before the fix, the exporter did not reject any vertex or index layout in the tested archives. It | 12 | Before the fix, the exporter did not reject any vertex or index layout in the tested archives. It |
| 9 | dropped valid models in three validation paths, all in `third_party/rpf9-explorer` at commit | 13 | dropped 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 | |||
| 23 | over `917e9b9`'s 350,248) and **2,636,248,990 triangles** with **0 decode failures**; the earlier | 27 | over `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 |
| 25 | measured state; it is not a competing patch. | 29 | measured state; it is not a competing patch. |
| 30 | decoding (PR #7). The 350,251-model counts below were measured at `917e9b9` and are kept as the | ||
| 31 | control; the `e293917` re-count for the non-`levels.rpf` archives is in the table below. This page | ||
| 32 | records both, and is not a competing patch. | ||
| 26 | 33 | ||
| 27 | PR #1 reports 190,792 of 190,792 recognized candidates across the ten archives configured in | 34 | PR #1 reports 190,792 of 190,792 recognized candidates across the ten archives configured in |
| 28 | Leonida, including 169 previously rejected candidates (also verified after archive readback). A | 35 | Leonida, 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 |
| 39 | scan never saw them. At the new pin the dictionary walk recovers **24,034 models** from that | 46 | scan never saw them. The dictionary walk recovers **23,720 dictionary children** from that |
| 40 | archive (23,720 dictionary children plus the 314 fragments), against 314 before. A full | 47 | archive 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 | 48 | upstream `v1.2` began recovering zero-radius fragments. The archive total is therefore |
| 42 | embedded 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`** |
| 43 | table 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` |
| 44 | model-bearing archives were re-counted at the new pin; the results are below. | 51 | reported **`ok=24,034 fail=0 skip=0` in 263 s** (0 embedded textures); the OBJs and manifest are |
| 52 | local. The 314 `48557ea`/`c3708fb` entries in the table below are the pre-pin control, not the | ||
| 53 | current `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 | |||
| 130 | A full `rpf9dump models` re-run over the same archives at the current pin (the manifests are | ||
| 131 | local; `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 | |||
| 145 | The gain outside `levels.rpf` is fragments: upstream `v1.2` PRs #8-#12 recover zero-radius | ||
| 146 | fragments that the earlier export skipped (2,551 in `packs.rpf`, 594 in `data.rpf`), plus one | ||
| 147 | drawable in `story000`. `story000_restofworld` has the same 3 models at both pins, so its delta | ||
| 148 | is 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 | ||
| 152 | candidates; 130,225 children + 183,801). The +29,327 is a recovery count, not a row-for-row delta, | ||
| 153 | and no full OBJ export was run. Triangle totals were not re-run either. | ||
| 117 | 154 | ||
| 118 | The last column is the `c3708fb` recovery for comparison. `story000`'s standalone count is | 155 | The last column is the `c3708fb` recovery for comparison. `story000`'s standalone count is |
| 119 | 3,304 vs 3,305; the full new-pin standalone total is 190,765, 27 below the `c3708fb` 190,792. | 156 | 3,304 vs 3,305; the full new-pin standalone total is 190,765, 27 below the `c3708fb` 190,792. |
| 120 | Those 27 are not merged duplicates: they are the 27 models with more than 256 geometries that the | 157 | Those 27 are not merged duplicates: they are the 27 models with more than 256 geometries that the |
| 121 | probe rejects at `917e9b9` (26 in `levels.rpf`, 1 in `story000`; see | 158 | probe 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 |
| 123 | drawable-dictionary children**: one model per embedded drawable in a dictionary root, not new | 160 | drawable-dictionary children**: one model per embedded drawable in a dictionary root, not new |
| 124 | pages. `core_restofworld` recovers 873 of its 1,024 candidates (885 models); the 151 rejects are | 161 | pages. `core_restofworld` recovers 873 of its 1,024 candidates (885 models); the 151 rejects are |
| 125 | 140 texture dictionaries and 11 drawable dictionaries whose drawable has radius 0. | 162 | 140 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 | ||
| 210 | The `packs.rpf` row is the pre-dictionary-root control: at `917e9b9` that archive recovers | 247 | The `packs.rpf` row is the pre-dictionary-root control: at `917e9b9` that archive recovers |
| 211 | 24,034 models, and the other archives' new-pin counts are in the table above. The rows here are | 248 | 24,034 models (26,585 at `e293917`), and the other archives' new-pin counts are in the table above. |
| 212 | the `c3708fb` measurements (190,792 models); the new-pin re-count is 350,248. Triangle totals | 249 | The rows here are the `c3708fb` measurements (190,792 models); the `917e9b9` re-count is 350,251, |
| 213 | have not been re-run at the new pin. | 250 | and the `e293917` re-count outside `levels.rpf` is 39,454. Triangle totals have not been re-run at |
| 251 | either new pin. | ||
| 214 | 252 | ||
| 215 | At `c3708fb`, every candidate is recovered, read back and decoded: 0 decode failures, 0 readback | 253 | At `c3708fb`, every candidate is recovered, read back and decoded: 0 decode failures, 0 readback |
| 216 | failures, no duplicate model names, and 2.22 billion triangles (1.95 billion before). The | 254 | failures, no duplicate model names, and 2.22 billion triangles (1.95 billion before). The |
| @@ -467,3 +505,8 @@ own light bones). | |||
| 467 | 4. Investigate the 71 remaining unrecovered fragment candidates in `levels.rpf` (and the 1 | 505 | 4. 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. |
| 469 | 5. Keep issue #29 in sync with the `e293917` counts. | 507 | 5. Keep issue #29 in sync with the `e293917` counts. |
| 508 | 3. **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. | ||
| 512 | 4. Keep the README and issue #29 in sync with the new counts. | ||