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

Open
HQasper wants to merge 1 commit from upstream-pr/3071 into main
HQasper commented 2026-11-29 19:52:56 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by HQasper on 2026-11-29T19:52:56Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5554485987 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3071). Originally posted by [HQasper](https://github.com/HQasper) on 2026-11-29T19:52:56Z. --- ## 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)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3071:upstream-pr/3071'
git switch 'upstream-pr/3071'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3071'
git switch 'upstream-pr/3071'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3071'
git switch 'upstream-pr/3071'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3071'
git switch 'main'
git merge --squash 'upstream-pr/3071'
git switch 'main'
git merge --ff-only 'upstream-pr/3071'
git switch 'main'
git merge 'upstream-pr/3071'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

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