gpu: builder compacted sizes reach the title's copies behind the list (VICTORY_BVH_SIZE_COPY=1, off by default) #1161

Closed
github-bot wants to merge 1 commit from github-bot/gh-1161 into main AGit
Owner

@⁠CowboyBingus on GitHub · 2026-11-28 14:34 UTC · original
CowboyBingus:fix/bvh-size-copy → main · +54 −4 · 2 files · 1 commits · closed without merging

Summary

The title copies 8-byte compacted sizes out of the builder's size slots into its own memory with CopyBufferRegion (SC2: 4,704 such copies). VN did that copy at submission, from title memory. With VICTORY_BVH_SIZE_COPY=1, a copy into memory with a host copy takes its bytes on the card out of the source's host copy when that copy has by-address stores kept (and is not in place), instead of out of title memory as it is at submission. A copy of at most 64 bytes into memory without a host copy (or with one in place), out of the builder's size pages (source without a host copy) or out of a host copy the shaders own, is done after the list has landed. Off by default.

Fixes: no issue. Related: #689, #718.

Checked for overlap: open PR #718 addresses the same stale-size report (#689) by answering the size at the builder call; the two were measured as separate arms (see Relation).

Rebased onto main 77df871e (no conflicts). Two commits: the change (with tests for owned() and Written::From), and a split of late_size_copy's decision into a pure late(), with tests for it and for the size pages.

How it was tested

  • GPU: NVIDIA GeForce RTX 5070 Ti, driver 621.24.0, 32 wave lanes (from the log of every run below); ray-tracing structure builder on (VICTORY_BVH_BUILDER=1).
  • Profile (from the log of every A/B run under Measurements, both mains): Xbox Series X, display 2560x1440 SDR, DLSS on at the quality scale (scene 1706x960), frame generation off.
  • Wave sizes: not a shader change.
  • Before / after on a build of 32ecacfa (newer main), switch off / on, 3 runs each: pooled world-frame median 95.5 ms before, 59.8 ms after; p90 160.2 ms before, 103.7 ms after.
  • Before / after on 63b902fe (older main), 4 runs each: pooled world-frame median 84.2 ms before, 50.8 ms after; p90 153.1 ms before, 98.6 ms after.
  • Trace runs: before the size-page lookup, 4,704 of 4,704 size-slot copies at submission; with it, 5,649 of 5,649 behind the list.
  • Unit tests and clippy on this branch: see Tests.

What it changes

  • New switch VICTORY_BVH_SIZE_COPY; only the value 1 turns it on.
  • list.rs buffer_copy: a copy that cannot be placed is checked by place::late_size_copy. If it qualifies, it is recorded as defer_write(to, Written::From(from), len) instead of defer_copy.
  • late_size_copy looks up the host copies and passes them to a pure late(), which qualifies a copy when: the switch is on; len <= 64 bytes (LATE_MOST); the destination has no host copy (or one in place); and the source either has no host copy and lies in 4 KiB pages the builder's size programs store into (memory::in_size_pages), or has a host copy matching owned(written, in_place, stores_kept, true).
  • memory.rs: with the switch on, ready() records written[0]'s 4 KiB page for builds that ask a size (asks_size).
  • queue.rs: new Written::From(u64). On write it copies bytes bytes from that title address (copy_mapped on Windows, ptr::copy elsewhere).
  • place.rs shaders_own: with the switch on, a source whose host copy has by-address stores kept (Shadow::stores_kept) also counts as shader-owned.
  • host.rs: mod place becomes pub(crate). shadow.rs: new Shadow::stores_kept() (reads changes_only).
  • 6 files, 162 insertions, 5 deletions (both commits).

Why (measured)

Two trace runs (VICTORY_BVH_TRACE=1, VICTORY_BVH_SIZES_WAIT=1, VICTORY_BVH_SIZE_COPY=1) on diagnostic builds of the branch this commit was ported from, in an early indoor scene, with VICTORY_BVH_BUILDER=1:

  • SC2, exe md5 01b548a7, without the size-page lookup: 4,704 size-slot copies, all 4,704 "copy at submission ... not behind: source has no host copy", 0 behind the list.
  • SC3, exe md5 334d3f77, with it: 5,649 size-slot copies, all 5,649 "copy behind the list", 0 at submission.

Measurements

Window in both sets: host meter lines with more than 1000 draws/frame, from 90 s after start to run end; "world" = the line's ms/frame. Release builds, swapped one at a time into the same exe path; VICTORY_BVH_BUILDER=1 and VICTORY_NO_ACTIVATE=1 in all runs. VICTORY_NO_ACTIVATE comes from 2 local commits (window activation only), not part of this PR.

Newer main: 32ecacfa

Build: 32ecacfa + this PR's two commits (same patches as on this branch) + the 2 window-activation commits; exe md5 bcb5e0c5. 32ecacfa is an ancestor of 77df871e, 189 commits behind it; these runs were not repeated on 77df871e.

With this build (exe bcb5e0c5) the builder stays off on this card without VICTORY_LDS_WRITE_ONLY_OK=1: in 8 runs, three builder programs refused, missing=3 of=53 (#1475). So every run here also has VICTORY_LDS_WRITE_ONLY_OK=1. Arm A: no VICTORY_BVH_SIZE_COPY. Arm B: VICTORY_BVH_SIZE_COPY=1. 6 runs, pair order A1/B1, B2/A2, A3/B3. All 6 logged "the ray-tracing structure builder runs ... pipelines=53", logged no device removal, and were stopped at the 140 s time cap (140.1-140.5 s).

Run Lines World median ms World p90 ms
A1 9 135.5 198.2
B1 10 60.8 73.1
B2 10 66.6 103.7
A2 10 76.9 114.3
A3 10 80.5 98.6
B3 10 55.2 69.3
arm A (pooled) 29 95.5 160.2
arm B (pooled) 30 59.8 103.7

Per pair, B median minus A median: -74.7 (B1-A1), -10.3 (B2-A2), -25.3 (B3-A3) ms.

Older main: 63b902fe

14 runs, interleaved; 13 used (U_A1 excluded, below). One more launch of a different exe was stopped at 17.5 s for taking the foreground and is not counted.

  • base = 63b902fe + the 2 window-activation commits; exe md5 969421f9
  • m718 = base + #718 (801070ae), VICTORY_BVH_SIZE_ANSWER unset (on by default); md5 1215aba4
  • this PR = base + 123e8ee7 (same patch as this PR's first commit 655611b6, by git patch-id), VICTORY_BVH_SIZE_COPY=1; md5 a9396168
Arm Runs Lines World median ms World p90 ms
base 4 37 84.2 153.1
m718 5 47 68.6 149.4
this PR 4 35 50.8 98.6

Per-run world median / p90 ms:

  • base: 83.4/107.3, 64.1/86.4, 106.0/153.1, 100.4/304.5
  • m718: 68.6/146.7, 105.5/151.2, 52.4/77.8, 63.7/122.9, 80.2/127.6
  • this PR: 60.9/71.8, 48.9/52.3, 49.1/73.5, 50.7/101.3

The first base run (U_A1, first of the chain) is excluded: world median 330.3 ms. Run ends differ: 9 runs stopped at the 140 s cap, 4 at a bright-screen stop (120.3-137.8 s), so window lengths differ. From 100 s instead of 90 s the pooled medians are 84.8 / 72.7 / 50.8 ms.

Relation to #689 and #718

#689 reports the compacted size being read back before the builder writes it, so copies use a stale size. #718 answers compacted sizes at the builder call with the maximum size the builder reported for the input shape (VICTORY_BVH_SIZE_ANSWER). This PR instead delays the title's own size copy until the list has landed. In the older-main runs, m718 and this PR were measured as separate arms; the two together were not run.

Limits

  • The late copy reads title memory when the landing makes the submission's bottom-of-pipe writes. By then the card's bytes of every list in that submission, and of every submission landed in the same batch, have been copied back. A slot the builder writes again later in those lists gives the later size, not the size at the copy's place.
  • With the switch on, every source with by-address stores kept counts as shader-written, not only the size slots.
  • #718's commit 801070ae says the builder's later store into an answered slot is kept out of title memory. This PR and #718 together were not run.
  • The newer-main A/B was run with VICTORY_LDS_WRITE_ONLY_OK=1 in both arms (#1475); it was not run on 77df871e.

Not established

  • Header losses on flags-0x7 structures remain with the copies behind the list (SC3: 127 of 198 lost; SC2, 0 behind: 131 of 176). What overwrites them is not known.

Tests

On this branch (77df871e + 2 commits, tip 204db2b7):

  • cargo test -p victory-gpu --lib -j 4: 554 passed, 0 failed, 43 ignored; with --features diagnostics: 608 passed, 0 failed, 43 ignored.
  • New tests: late() conditions and owned() truth table (place.rs), size pages recorded and found by page (memory.rs), Written::From copy (queue.rs).
  • cargo clippy -p victory-gpu --all-targets -- -D warnings (with and without diagnostics) stops in victory-shader at emit/lower.rs:2213 (manual_checked_ops) and emit/lower.rs:13896 (unused variable). Without -D warnings, the remaining warnings are in victory-gpu host.rs (10800, 10843, 10903), host/send.rs, pool.rs, residency.rs, resource.rs, streamline.rs, streamline/fsr.rs. git blame puts every one of these lines on a commit in main; this branch does not change any of them.

🤖 Generated with Claude Code

**@⁠CowboyBingus** on GitHub · 2026-11-28 14:34 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1161) `CowboyBingus:fix/bvh-size-copy` → `main` · +54 −4 · 2 files · 1 commits · closed without merging ## Summary The title copies 8-byte compacted sizes out of the builder's size slots into its own memory with CopyBufferRegion (SC2: 4,704 such copies). VN did that copy at submission, from title memory. With `VICTORY_BVH_SIZE_COPY=1`, a copy into memory with a host copy takes its bytes on the card out of the source's host copy when that copy has by-address stores kept (and is not in place), instead of out of title memory as it is at submission. A copy of at most 64 bytes into memory without a host copy (or with one in place), out of the builder's size pages (source without a host copy) or out of a host copy the shaders own, is done after the list has landed. Off by default. Fixes: no issue. Related: [#689](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/issues/689), [#718](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/718). Checked for overlap: open PR [#718](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/718) addresses the same stale-size report ([#689](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/issues/689)) by answering the size at the builder call; the two were measured as separate arms (see Relation). Rebased onto main 77df871e (no conflicts). Two commits: the change (with tests for `owned()` and `Written::From`), and a split of `late_size_copy`'s decision into a pure `late()`, with tests for it and for the size pages. ## How it was tested - GPU: NVIDIA GeForce RTX 5070 Ti, driver 621.24.0, 32 wave lanes (from the log of every run below); ray-tracing structure builder on (`VICTORY_BVH_BUILDER=1`). - Profile (from the log of every A/B run under Measurements, both mains): Xbox Series X, display 2560x1440 SDR, DLSS on at the quality scale (scene 1706x960), frame generation off. - Wave sizes: not a shader change. - Before / after on a build of 32ecacfa (newer main), switch off / on, 3 runs each: pooled world-frame median 95.5 ms before, 59.8 ms after; p90 160.2 ms before, 103.7 ms after. - Before / after on 63b902fe (older main), 4 runs each: pooled world-frame median 84.2 ms before, 50.8 ms after; p90 153.1 ms before, 98.6 ms after. - Trace runs: before the size-page lookup, 4,704 of 4,704 size-slot copies at submission; with it, 5,649 of 5,649 behind the list. - Unit tests and clippy on this branch: see Tests. ## What it changes - New switch `VICTORY_BVH_SIZE_COPY`; only the value `1` turns it on. - `list.rs` buffer_copy: a copy that cannot be placed is checked by `place::late_size_copy`. If it qualifies, it is recorded as `defer_write(to, Written::From(from), len)` instead of `defer_copy`. - `late_size_copy` looks up the host copies and passes them to a pure `late()`, which qualifies a copy when: the switch is on; len <= 64 bytes (`LATE_MOST`); the destination has no host copy (or one in place); and the source either has no host copy and lies in 4 KiB pages the builder's size programs store into (`memory::in_size_pages`), or has a host copy matching `owned(written, in_place, stores_kept, true)`. - `memory.rs`: with the switch on, `ready()` records `written[0]`'s 4 KiB page for builds that ask a size (`asks_size`). - `queue.rs`: new `Written::From(u64)`. On write it copies `bytes` bytes from that title address (`copy_mapped` on Windows, `ptr::copy` elsewhere). - `place.rs` `shaders_own`: with the switch on, a source whose host copy has by-address stores kept (`Shadow::stores_kept`) also counts as shader-owned. - `host.rs`: `mod place` becomes `pub(crate)`. `shadow.rs`: new `Shadow::stores_kept()` (reads `changes_only`). - 6 files, 162 insertions, 5 deletions (both commits). ## Why (measured) Two trace runs (`VICTORY_BVH_TRACE=1`, `VICTORY_BVH_SIZES_WAIT=1`, `VICTORY_BVH_SIZE_COPY=1`) on diagnostic builds of the branch this commit was ported from, in an early indoor scene, with `VICTORY_BVH_BUILDER=1`: - SC2, exe md5 01b548a7, without the size-page lookup: 4,704 size-slot copies, all 4,704 "copy at submission ... not behind: source has no host copy", 0 behind the list. - SC3, exe md5 334d3f77, with it: 5,649 size-slot copies, all 5,649 "copy behind the list", 0 at submission. ## Measurements Window in both sets: host meter lines with more than 1000 draws/frame, from 90 s after start to run end; "world" = the line's ms/frame. Release builds, swapped one at a time into the same exe path; `VICTORY_BVH_BUILDER=1` and `VICTORY_NO_ACTIVATE=1` in all runs. `VICTORY_NO_ACTIVATE` comes from 2 local commits (window activation only), not part of this PR. ### Newer main: 32ecacfa Build: 32ecacfa + this PR's two commits (same patches as on this branch) + the 2 window-activation commits; exe md5 bcb5e0c5. 32ecacfa is an ancestor of 77df871e, 189 commits behind it; these runs were not repeated on 77df871e. With this build (exe bcb5e0c5) the builder stays off on this card without `VICTORY_LDS_WRITE_ONLY_OK=1`: in 8 runs, three builder programs refused, missing=3 of=53 ([#1475](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/issues/1475)). So every run here also has `VICTORY_LDS_WRITE_ONLY_OK=1`. Arm A: no `VICTORY_BVH_SIZE_COPY`. Arm B: `VICTORY_BVH_SIZE_COPY=1`. 6 runs, pair order A1/B1, B2/A2, A3/B3. All 6 logged "the ray-tracing structure builder runs ... pipelines=53", logged no device removal, and were stopped at the 140 s time cap (140.1-140.5 s). | Run | Lines | World median ms | World p90 ms | |---|---|---|---| | A1 | 9 | 135.5 | 198.2 | | B1 | 10 | 60.8 | 73.1 | | B2 | 10 | 66.6 | 103.7 | | A2 | 10 | 76.9 | 114.3 | | A3 | 10 | 80.5 | 98.6 | | B3 | 10 | 55.2 | 69.3 | | arm A (pooled) | 29 | 95.5 | 160.2 | | arm B (pooled) | 30 | 59.8 | 103.7 | Per pair, B median minus A median: -74.7 (B1-A1), -10.3 (B2-A2), -25.3 (B3-A3) ms. ### Older main: 63b902fe 14 runs, interleaved; 13 used (U_A1 excluded, below). One more launch of a different exe was stopped at 17.5 s for taking the foreground and is not counted. - base = 63b902fe + the 2 window-activation commits; exe md5 969421f9 - m718 = base + [#718](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/718) (801070ae), `VICTORY_BVH_SIZE_ANSWER` unset (on by default); md5 1215aba4 - this PR = base + 123e8ee7 (same patch as this PR's first commit 655611b6, by `git patch-id`), `VICTORY_BVH_SIZE_COPY=1`; md5 a9396168 | Arm | Runs | Lines | World median ms | World p90 ms | |---|---|---|---|---| | base | 4 | 37 | 84.2 | 153.1 | | m718 | 5 | 47 | 68.6 | 149.4 | | this PR | 4 | 35 | 50.8 | 98.6 | Per-run world median / p90 ms: - base: 83.4/107.3, 64.1/86.4, 106.0/153.1, 100.4/304.5 - m718: 68.6/146.7, 105.5/151.2, 52.4/77.8, 63.7/122.9, 80.2/127.6 - this PR: 60.9/71.8, 48.9/52.3, 49.1/73.5, 50.7/101.3 The first base run (U_A1, first of the chain) is excluded: world median 330.3 ms. Run ends differ: 9 runs stopped at the 140 s cap, 4 at a bright-screen stop (120.3-137.8 s), so window lengths differ. From 100 s instead of 90 s the pooled medians are 84.8 / 72.7 / 50.8 ms. ## Relation to [#689](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/issues/689) and [#718](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/718) [#689](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/issues/689) reports the compacted size being read back before the builder writes it, so copies use a stale size. [#718](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/718) answers compacted sizes at the builder call with the maximum size the builder reported for the input shape (`VICTORY_BVH_SIZE_ANSWER`). This PR instead delays the title's own size copy until the list has landed. In the older-main runs, m718 and this PR were measured as separate arms; the two together were not run. ## Limits - The late copy reads title memory when the landing makes the submission's bottom-of-pipe writes. By then the card's bytes of every list in that submission, and of every submission landed in the same batch, have been copied back. A slot the builder writes again later in those lists gives the later size, not the size at the copy's place. - With the switch on, every source with by-address stores kept counts as shader-written, not only the size slots. - [#718](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/718)'s commit 801070ae says the builder's later store into an answered slot is kept out of title memory. This PR and [#718](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/718) together were not run. - The newer-main A/B was run with `VICTORY_LDS_WRITE_ONLY_OK=1` in both arms ([#1475](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/issues/1475)); it was not run on 77df871e. ## Not established - Header losses on flags-0x7 structures remain with the copies behind the list (SC3: 127 of 198 lost; SC2, 0 behind: 131 of 176). What overwrites them is not known. ## Tests On this branch (77df871e + 2 commits, tip 204db2b7): - `cargo test -p victory-gpu --lib -j 4`: 554 passed, 0 failed, 43 ignored; with `--features diagnostics`: 608 passed, 0 failed, 43 ignored. - New tests: `late()` conditions and `owned()` truth table (place.rs), size pages recorded and found by page (memory.rs), `Written::From` copy (queue.rs). - `cargo clippy -p victory-gpu --all-targets -- -D warnings` (with and without `diagnostics`) stops in `victory-shader` at `emit/lower.rs:2213` (`manual_checked_ops`) and `emit/lower.rs:13896` (unused variable). Without `-D warnings`, the remaining warnings are in victory-gpu `host.rs` (10800, 10843, 10903), `host/send.rs`, `pool.rs`, `residency.rs`, `resource.rs`, `streamline.rs`, `streamline/fsr.rs`. `git blame` puts every one of these lines on a commit in main; this branch does not change any of them. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
With VICTORY_BVH_SIZE_COPY=1:
- a title buffer copy of at most 64 bytes out of a page the ray-tracing
  builder's size programs store in, or out of a host copy shaders store in,
  into memory without a host copy (or one in place), is done when its list
  has run (a bottom-of-pipe write from title memory, queue::Written::From),
  after the landing has copied the card's bytes back;
- a copy source whose host copy shaders store in by address
  (Shadow::keep_stores) counts as shader-written, so a copy into memory with
  a host copy is placed on the card at its place in the list.
Off, copies are done as before.

Measured (diagnostics builds of the branch this was ported from, trace on):
- before, the title's 8-byte copies out of the builder's size slots went at
  submission (run SC2: 4,704 at submission, 0 behind the list, earlier build);
- with this logic they go behind the list (run SC3: 5,649 behind).
Release: base (63b902fe + local test switch) 84.2 ms, base+#718 68.6 ms,
base+this 50.8 ms (pooled world-frame median from 90 s, 4/5/4 runs).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 14:44:10 +00:00
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-28 15:51 UTC · original

Three at-once memory dumps, read offline with a BVH walker over the dumped memory.

Setup: one diagnostics exe (md5 334d3f77) that has the VICTORY_BVH_SIZE_COPY switch, VICTORY_BVH_BUILDER=1, VICTORY_BVH_CALLS, at-once dump triggered about 105 s after launch. The only setting that differs is VICTORY_BVH_SIZE_COPY: D0 off, D1 and D2 on.

D0 (off) D1 (on) D2 (on)
dump frame 25007 25410 26830
title-buffer pages taken / left out of the dump 4096 / 2591 3828 / 0 3836 / 0

TLAS 1 (0xdb51a0000)

D0 (off) D1 (on) D2 (on)
instances 4568 5458 5469
bottom levels named by enabled instances, without a version-6 header: bases (instances) 139 (563) 0 (0) 0 (0)
root header bounds ±3.4028235e38 on all six finite (-2290.97 .. 3079.03 on x) finite (-2291.02 .. 3078.98 on x)
bottom levels walked alone (first 200 by address): tried / with a hit 200 / 178 200 / 179 200 / 167
ray set 1 (256 rays): hits / misses / stopped on a page not in the dump 0 / 0 / 256 31 / 225 / 0 31 / 225 / 0

TLAS 2 (0xdb6119c00)

D0 (off) D1 (on) D2 (on)
instances 1586 1590 1589
bottom levels named by enabled instances, without a version-6 header: bases (instances) 61 (239) 0 (0) 0 (0)
root header bounds ±3.4028235e38 on all six finite (-4902.82 .. 3542.15 on x) finite (-4902.88 .. 3542.10 on x)
bottom levels walked alone (first 200 by address): tried / with a hit 199 / 100 200 / 187 200 / 187
ray set 1 (256 rays): hits / misses / stopped on a page not in the dump 0 / 0 / 256 105 / 151 / 0 112 / 144 / 0

Ray set 1 starts at the middle of the top level's header bounds, so its start point differs between runs: D0's ±3.4028235e38 bounds put it at the origin (0, 0, 0); D1's and D2's start at the middle of their finite bounds. The ray-set numbers are therefore not like-for-like between D0 and D1/D2.

D0 left 2,591 title-buffer pages out of the dump; D1 and D2 left none.

Not established

  • No on-screen picture comparison is claimed from these dumps.
  • The dumps are at different frames (25007 / 25410 / 26830).
  • The exe is one diagnostics build, not a build of this PR's commit.

🤖 Generated with Claude Code

**@⁠CowboyBingus** on GitHub · 2026-11-28 15:51 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1161#issuecomment-7241789220) Three at-once memory dumps, read offline with a BVH walker over the dumped memory. Setup: one diagnostics exe (md5 334d3f77) that has the `VICTORY_BVH_SIZE_COPY` switch, `VICTORY_BVH_BUILDER=1`, `VICTORY_BVH_CALLS`, at-once dump triggered about 105 s after launch. The only setting that differs is `VICTORY_BVH_SIZE_COPY`: D0 off, D1 and D2 on. | | D0 (off) | D1 (on) | D2 (on) | |---|---|---|---| | dump frame | 25007 | 25410 | 26830 | | title-buffer pages taken / left out of the dump | 4096 / 2591 | 3828 / 0 | 3836 / 0 | **TLAS 1** (0xdb51a0000) | | D0 (off) | D1 (on) | D2 (on) | |---|---|---|---| | instances | 4568 | 5458 | 5469 | | bottom levels named by enabled instances, without a version-6 header: bases (instances) | 139 (563) | 0 (0) | 0 (0) | | root header bounds | ±3.4028235e38 on all six | finite (-2290.97 .. 3079.03 on x) | finite (-2291.02 .. 3078.98 on x) | | bottom levels walked alone (first 200 by address): tried / with a hit | 200 / 178 | 200 / 179 | 200 / 167 | | ray set 1 (256 rays): hits / misses / stopped on a page not in the dump | 0 / 0 / 256 | 31 / 225 / 0 | 31 / 225 / 0 | **TLAS 2** (0xdb6119c00) | | D0 (off) | D1 (on) | D2 (on) | |---|---|---|---| | instances | 1586 | 1590 | 1589 | | bottom levels named by enabled instances, without a version-6 header: bases (instances) | 61 (239) | 0 (0) | 0 (0) | | root header bounds | ±3.4028235e38 on all six | finite (-4902.82 .. 3542.15 on x) | finite (-4902.88 .. 3542.10 on x) | | bottom levels walked alone (first 200 by address): tried / with a hit | 199 / 100 | 200 / 187 | 200 / 187 | | ray set 1 (256 rays): hits / misses / stopped on a page not in the dump | 0 / 0 / 256 | 105 / 151 / 0 | 112 / 144 / 0 | Ray set 1 starts at the middle of the top level's header bounds, so its start point differs between runs: D0's ±3.4028235e38 bounds put it at the origin (0, 0, 0); D1's and D2's start at the middle of their finite bounds. The ray-set numbers are therefore not like-for-like between D0 and D1/D2. D0 left 2,591 title-buffer pages out of the dump; D1 and D2 left none. **Not established** - No on-screen picture comparison is claimed from these dumps. - The dumps are at different frames (25007 / 25410 / 26830). - The exe is one diagnostics build, not a build of this PR's commit. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot changed title from gpu: builder compacted sizes reach the title's copies behind the list (VICTORY_BVH_SIZE_COPY=1, off by default) to [pr-fix][pr-performance][memory][NVIDIA][RAYTRACING] gpu: builder compacted sizes reach the title's copies behind the list (VICTORY_BVH_SIZE_COPY=1, off by default) 2026-11-28 21:25:10 +00:00
github-bot force-pushed github-bot/gh-1161 from 1788f1117c to 204db2b7ca 2026-11-28 21:25:11 +00:00 Compare
github-bot changed title from [pr-fix][pr-performance][memory][NVIDIA][RAYTRACING] gpu: builder compacted sizes reach the title's copies behind the list (VICTORY_BVH_SIZE_COPY=1, off by default) to gpu: builder compacted sizes reach the title's copies behind the list (VICTORY_BVH_SIZE_COPY=1, off by default) 2026-11-28 21:37:43 +00:00
github-bot referenced this pull request from a commit 2026-11-29 00:27:22 +00:00
github-bot force-pushed github-bot/gh-1161 from 204db2b7ca to 73e9794941 2026-11-29 02:39:24 +00:00 Compare
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-29 02:37 UTC · original

State of this PR:

Merge or close it as you prefer.

🤖 Generated with Claude Code

**@⁠CowboyBingus** on GitHub · 2026-11-29 02:37 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1161#issuecomment-7249539707) State of this PR: - The fix is on main: merge commit https://github.com/trustno1-coder/VIctory-NVIDIA/commit/62896483 has https://github.com/trustno1-coder/VIctory-NVIDIA/commit/1788f111 as its second parent. - The branch is rebased onto current main (https://github.com/trustno1-coder/VIctory-NVIDIA/commit/568c5e5d). Git dropped the fix commit as already applied, so the PR now holds one commit, https://github.com/trustno1-coder/VIctory-NVIDIA/commit/73e97949: two tests in `crates/victory-gpu/src/memory.rs` and `crates/victory-gpu/src/host/place.rs`, with `late_size_copy`'s decision split into a pure `late()` for them. GitHub reports it as mergeable. - `cargo test --release -p victory-gpu --lib -- size` on that tree: 16 passed, 0 failed. Merge or close it as you prefer. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot closed this pull request 2026-11-29 02:44:33 +00:00

Pull request closed

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!1161
No description provided.