Skip to content

docs/bvh.md: name the header bytes behind the 1,008 key count (review on #4265) - #5762

Open
NiiRoZz wants to merge 1 commit into
ItsNotRexed:mainfrom
NiiRoZz:asset-322-key-bytes
Open

NiiRoZz wants to merge 1 commit into
ItsNotRexed:mainfrom
NiiRoZz:asset-322-key-bytes

Conversation

@NiiRoZz

@NiiRoZz NiiRoZz commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: ASSET-322 (claim). A review follow-up to #4265, whose main commit is already on main (in with #4506).

What and why

Two reviewers of #4265 recounted the descriptor-key statistics in docs/bvh.md §4a on their own package. Everything reproduced except one count: they got 1,007 (BLAS header, transform) pairs under more than one key where the doc says 1,008. The difference comes from which header bytes count as "the BLAS header":

  • header bytes 0x104-0x128 (size in 64-byte nodes, crc32, element count, sceneBounds) and the exact 48 transform bytes give 1,008. That is what my count grouped on;
  • all 64 header bytes 0x100-0x140 give 1,007.

The paragraph now names the bytes and gives both counts. No other count changes.

Tested

  • python -I tests/test_docs_*.py: all 10 files OK. python -I scripts/check_no_game_data.py: exit 0. git diff --check: clean.
  • Windows 11, Python 3.13. Docs only, no GPU involved.

AI-assisted: yes (Claude Code).

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here: counts and header offsets only.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed: not applicable.

🤖 Generated with Claude Code

… on ItsNotRexed#4265)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@memorypressure

Copy link
Copy Markdown

Verified at your head on main 561b65a: all eleven docs guards pass, and the byte-range wording is internally consistent under bvh.md's own half-open convention — 0x104-0x128 names exactly the four fields of the field table at bvh.md:84-91, 0x100-0x140 is the 64-byte header the 1,007 figure hangs on, and the wider-header-distinguishes-one-more-pair direction is coherent. The 1,007-vs-1,008 measurement itself cites #4265 reviewers and is not re-measurable on this host. Checks pending. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run).

@kapitche

Copy link
Copy Markdown
Contributor

Tested 14076c6 merged with main 561b65a on Linux (WSL2), Python 3.12.16: pass

Docs-only (docs/bvh.md, one paragraph). tests/test_docs_*.py: 11 files run, 11 OK, 0 failed.

Checked against the repo: header bytes 0x104-0x128 are totalSizeIn64BNodes, crc32, numElements and the two sceneBounds triples in the table at docs/bvh.md lines 84-90 (offsetToNodes at 0x128 is excluded, which is why the count differs from the full 0x100-0x140 header); the transform is the 3x4 at descriptor +0x50 (48 bytes). The 1,008 and 1,007 figures match what is recorded in the PR #4265 thread; I did not recompute them from game data.

Negative control: not applicable to a prose change (no tool or test touched).

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.

3 participants