Skip to content

docs/bvh.md: core_bvh4.rpf is a container of nested *_bvh.rpf packs - #4563

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
chadatouille:docs/bvh4-nested-packs
Nov 23, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
chadatouille:docs/bvh4-nested-packs

Conversation

@chadatouille

@chadatouille chadatouille commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Depends on: #4265, #4506.

New item, proposed as a finding in the coordination thread and offered for review by @Krashgamer. Separate from ASSET-351 (#4506), which supersedes the entity counts this started from.

core_bvh4.rpf is a container of nested files, not one pack. Its last streams hold a changeset registering 1,276 names. A nested file starts with a 16-byte entry header whose first four bytes are 9FPR, then a TOC of u32@+4 bytes, then its streams. The container's own header is at 0, outside the data area; the first nested entry is at 0x10000, on a 64 KiB boundary.

Counts: 1,282 9FPR tags in the data area, 1,281 16-byte aligned, 1,260 starting a 4 KiB page. A plausible-TOC filter accepts 1,191; that is narrower than a tag search, so it counts template matches, not packs.

Not reconciled, and said so: 1,276 names against 1,282 tags, 85 names without an entry, 6 tags without a name. The names stay encrypted and the TOCs are not decrypted, so a file is attached by position.

The section is placed after 4a, and the per-stream sentence moves from the section 6 checklist into it. 4a and 7 are untouched.

Tested: tests/test_docs_cli_flags.py, test_docs_design_rows.py, test_docs_links.py, test_docs_list_items.py, test_docs_python_deps.py, test_docs_repo_paths.py, test_docs_table_rows.py, and scripts/check_no_game_data.py, all pass. Windows 11, RTX 3080 Ti, no GPU involved.

AI-assisted (Kilo Code, DeepSeek V4.1).

@Kam471 Kam471 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran this at 8f412bbd on Windows 11: test_docs_links.py 6 OK, test_docs_design_rows.py 2 OK; git diff --check clean.

The doc describes core_bvh4.rpf as a container of nested *_bvh.rpf packs and keeps to counts/offsets framing. I did not re-verify the entry framing against the package. No blocking issue.

@Krashgamer

Copy link
Copy Markdown
Contributor

Compared with ASSET-351 (#4506), as the coordinator asked. Read only; I didn't run the branch.

Otherwise no overlap: the container layout, the changeset/name reconciliation and the per-tile reading are new and don't touch ASSET-351.

@kapitche

Copy link
Copy Markdown
Contributor

Tested 8f412bb merged with main 98fa503 on WSL2 Ubuntu, Python 3.12.16: concern (docs only, Linux only).

  • All 10 tests/test_docs_*.py pass (cli_flags, design_rows, env_vars, links, list_items, pr_template, python_deps, repo_paths, table_ids, table_rows).
  • Counts re-measured on my own 1.0.2.1 copy of core_bvh4.rpf (counts only, nothing quoted): data-start u32@4 is 0xFE00, so the first nested entry at 0x10000 is 0x200 after it as stated. From the data-start there are 1,282 9FPR tags, 1,281 of them 16-byte aligned and 1,260 on a 4 KiB boundary: all match the new section 3.5. Not checked: the 1,191 TOC-filter count, and the 1,276 changeset names (encrypted, not decrypted).
  • Concern, docs/bvh.md:331-334: "its other entities' streams lie in 31 other packs (§4a)" cites §4a, but §4a on this branch has no such statement (grep "other packs" finds only this line); that text exists only in docs/bvh.md: where the BLAS of the §4a interior's other entities are (ASSET-351) #4506, which is still open. Either cite docs/bvh.md: where the BLAS of the §4a interior's other entities are (ASSET-351) #4506 / add Depends on: #4506, or drop the clause. The same bullet's "one interior file is one cell and holds only the entities that have their own acceleration structure" is not shown by the doc's own evidence (the first file holds 10 BLAS, other entities' BLAS are elsewhere), which is Krashgamer's earlier point and is still in the text.

@memorypressure

Copy link
Copy Markdown

Merged cleanly into main 3faac55; all six docs guard suites pass at the merged tree and no other open PR touches docs/bvh.md. The new sections count what the rest of the doc relies on and are honest about what does not reconcile (1,276 names versus 1,282 tags). The branch reports no CI checks — worth triggering the docs guards before merge. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants