HLE: VICTORY_BVH_LOG=1 notes what the title's BVH builder is asked #3071

Open
github-bot wants to merge 1 commit from github-bot/gh-3071 into main AGit
Owner

@⁠HQasper on GitHub · 2026-11-29 19:52 UTC · original
HQasper:pr/bvh-log → main · +373 −0 · 3 files · 1 commits · open

What it changes

With the switch on, the title's imports of XboxBvhBuilder.dll's batched build and rehydration go through functions that log what the title asks for:

  • every five seconds, a line summing the top and bottom levels built and refit, geometries, triangles, boxes, build flags, and vertex and index formats
  • the first bottom-level builds, written out in full

These functions then call the title's own functions unchanged. Without the switch nothing is bound differently. It's for anyone looking into whether the host's own ray-tracing structures could be built from the same inputs: the batched description starts with the standard D3D12 build description.

What is in it: crates/victory-hle/src/modules/bvhlog.rs (new), modules/mod.rs, apps/victory/src/run.rs.

How it was tested

  • GPU and profile: RTX 5090, Series X, ray tracing on; the log lines were read in the opening.
  • What it found: one finding on base d4b5d51 was that index format 53 is a packed title format, about 87 % of the geometry.
  • cargo test (cargo test --workspace --locked --no-fail-fast -- --test-threads=4, 2026-11-29): 2,168 passed, 4 failed, 78 ignored. The 4 failures are upstream's (below). Upstream main 55d06914 itself gives 2,165 passed, 4 failed, 78 ignored. Its 4 failures are three bcpack::tests::oracle_parity_* tests and xtask's repository_passes_policy, which flags upstream's own victory-loader/src/heap_sites/frame_users.rs.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: none.

Written with Claude Code (Claude Opus 5.5); reviewed by me.

🤖 Generated with Claude Code

**@⁠HQasper** on GitHub · 2026-11-29 19:52 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3071) `HQasper:pr/bvh-log` → `main` · +373 −0 · 3 files · 1 commits · open ## What it changes With the switch on, the title's imports of `XboxBvhBuilder.dll`'s batched build and rehydration go through functions that log what the title asks for: - every five seconds, a line summing the top and bottom levels built and refit, geometries, triangles, boxes, build flags, and vertex and index formats - the first bottom-level builds, written out in full These functions then call the title's own functions unchanged. Without the switch nothing is bound differently. It's for anyone looking into whether the host's own ray-tracing structures could be built from the same inputs: the batched description starts with the standard D3D12 build description. **What is in it:** `crates/victory-hle/src/modules/bvhlog.rs` (new), `modules/mod.rs`, `apps/victory/src/run.rs`. ## How it was tested - **GPU and profile:** RTX 5090, Series X, ray tracing on; the log lines were read in the opening. - **What it found:** one finding on base d4b5d51 was that index format 53 is a packed title format, about 87 % of the geometry. - **`cargo test`** (`cargo test --workspace --locked --no-fail-fast -- --test-threads=4`, 2026-11-29): 2,168 passed, 4 failed, 78 ignored. The 4 failures are upstream's (below). Upstream main 55d06914 itself gives 2,165 passed, 4 failed, 78 ignored. Its 4 failures are three `bcpack::tests::oracle_parity_*` tests and `xtask`'s `repository_passes_policy`, which flags upstream's own `victory-loader/src/heap_sites/frame_users.rs`. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: none. --- Written with Claude Code (Claude Opus 5.5); reviewed by me. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
With the switch, the title's imports of XboxBvhBuilder.dll's batched build
and rehydration go through functions that sum what the title asks (top and
bottom levels built and refit, geometries, triangles, boxes, build flags,
vertex and index formats) into a line every five seconds, write the first
bottom-level builds out in full, and call the title's own functions
unchanged. Without it nothing is bound differently.

What for: whether the host's own ray-tracing structures could be built from
the same inputs; the batched description starts with the standard D3D12
build description.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 19:59:45 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3071/head:github-bot/gh-3071'
git switch 'github-bot/gh-3071'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3071'
git switch 'github-bot/gh-3071'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3071'
git switch 'github-bot/gh-3071'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3071'
git switch 'main'
git merge --squash 'github-bot/gh-3071'
git switch 'main'
git merge --ff-only 'github-bot/gh-3071'
git switch 'main'
git merge 'github-bot/gh-3071'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3071
No description provided.