perf(hwrt): cache static clamped IBs, dedup sanitize state, and cut BLAS/TLAS overhead #4144

Closed
steven-seagull27 wants to merge 1 commit from upstream-pr/4144 into main
steven-seagull27 commented 2026-11-30 16:43:24 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by steven-seagull27 on 2026-11-30T16:43:24Z.


Summary

Builds on #3706 to reduce CPU contention, VirtualQuery overhead, and redundant GPU compute dispatches / D3D12 state binds across hardware DXR (VICTORY_HW_RT=1) BLAS build/refit batches, TLAS instance remapping, and RayQuery root SRV bindings:

  1. Persistent fence-gated cache of clamped static R32_UINT index buffers (ClampedIbCache)

    • Triangle BLAS builds sanitize guest R16_UINT / R32_UINT index buffers on the GPU via clamp_ib_pso so out-of-range indices degenerate in place without shifting PrimitiveIndex or GeometryIndex. Previously, every PERFORM_UPDATE refit re-ran shadow::find, allocated a transient tris * 12 lease slice, dispatched clamp_ib_pso, and cycled UAV/SRV barriers even when the underlying index buffer was immutable (!sh.written()).
    • Adds ClampedIbCache (64 MiB / 4096-entry LRU, trimming to a 75% watermark) plus intra-batch Work::batch_ibs deduplication. Newly populated DEFAULT buffers transition once to NON_PIXEL_SHADER_RESOURCE at flush_blas_batch and become eligible for cross-list hits only after ClampedIbReady drops past the populating command list's GPU fence.
    • Entries hold a Weak<Shadow> and automatically self-evict (via Arc::ptr_eq-guarded removal) if the shadow buffer is dropped, written on the GPU, or taken over; title_memory_freed invalidates freed [at, at + len) ranges and retires GPU resources outside write locks.
    • Populates validated_ibs on initial non-written builds/rehydrates (bounded at 65,536 entries) and checks vb_shadow.left(vertex_buffer) >= exp_bytes directly before falling back to shadow::find.
  2. Sanitize compute root signature & PSO deduplication (SanitizePso)

    • Tracks the active sanitize compute pipeline (None / ClampIb / CopyVb) across an entire blas_work chunk loop so SetComputeRootSignature is issued at most once per blas_work call and SetPipelineState is issued only when switching between clamp_ib_pso and copy_vb_pso.
  3. O(1) BlasLru & Backlog hot-path operations

    • Derives Copy on OwnedGeometry and updates BlasLru::recipes in place (preserving non-update flags while stripping PERFORM_UPDATE) without heap reallocation when a refit's geometry count matches.
    • Mirrors BlasLru::wanted with a HashSet<u64> (wanted_set) so BlasLru::complete deduplicates evicted BLAS marks in O(1) instead of linear Vec::contains scans.
    • Tags Backlog queue entries with monotonic sequence numbers (key, seq) so Backlog::remove becomes O(1) (skipping stale entries lazily on take / keys and compacting order only when stale slack exceeds 2 * len + 64), replacing linear VecDeque::retain scans.
  4. Bounded CPU geometry decode memory queries

    • Pre-decodes reachable meshlet base_vi headers (meshlet_id is 11 bits) in decode_title_meshlet_ib and computes the exact maximum (base_vi + i_loc) referenced by tris before calling readable_len, avoiding an unconditional 256 KiB VirtualQuery walk past vi_addr.
    • Coalesces the 32-byte header and vertex-array title_readable checks in decode_title_quant24_vb into a single title_readable(vb_va - 0x20, vbytes + 0x20) call.
  5. Shared per-list TLAS remap uploads & lock-free root TLAS binding cache

    • Shares the active plane_upload BLAS remap hash table (acquire_blas_table) across consecutive TLAS builds recorded on the same (HostList, epoch) within a frame when as_map_version has not changed, and maintains atomic as_map_len / waiting_len / evicted_len counters so table sizing avoids locking queue, lru, and as_map on every TLAS build.
    • Adds a monotonic tlas_version counter in hwrt and caches resolved (console_va, host_gpu_va) pairs per SLOT_TLAS_BASE..=SLOT_TLAS_MAX (t230..t241) slot in draw::State (keyed by (HostList, epoch) and tlas_version, cleared on reset / clear_state / replay) so consecutive RT dispatches binding the same TLAS skip as_map.read() and duplicate list.keep clones while preserving recording-epoch resource keep-alive invariants.

Verification

  • cargo test -p victory-gpu --lib -- hwrt:: --test-threads=1 (including new synthetic unit tests for BlasLru in-place refit updates & wanted_set deduplication, Backlog lazy O(1) removal & FIFO compaction, ClampedIbCache byte/entry LRU eviction & range invalidation, SanitizePso bind suppression, and VirtualAlloc page-boundary meshlet IB decoding)
  • cargo test -p victory-gpu --lib -- draw:: --test-threads=1 (including synthetic unit tests for per-(HostList, epoch) / tlas_version root TLAS slot caching and state resets)
  • cargo check -p victory-gpu --lib --features diagnostics
  • cargo clippy -p victory-gpu --lib --tests
  • cargo run -p xtask -- policy
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5569592539 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4144). Originally posted by [steven-seagull27](https://github.com/steven-seagull27) on 2026-11-30T16:43:24Z. --- ## Summary Builds on #3706 to reduce CPU contention, `VirtualQuery` overhead, and redundant GPU compute dispatches / D3D12 state binds across hardware DXR (`VICTORY_HW_RT=1`) BLAS build/refit batches, TLAS instance remapping, and `RayQuery` root SRV bindings: 1. **Persistent fence-gated cache of clamped static `R32_UINT` index buffers (`ClampedIbCache`)** - Triangle BLAS builds sanitize guest `R16_UINT` / `R32_UINT` index buffers on the GPU via `clamp_ib_pso` so out-of-range indices degenerate in place without shifting `PrimitiveIndex` or `GeometryIndex`. Previously, every `PERFORM_UPDATE` refit re-ran `shadow::find`, allocated a transient `tris * 12` lease slice, dispatched `clamp_ib_pso`, and cycled UAV/SRV barriers even when the underlying index buffer was immutable (`!sh.written()`). - Adds `ClampedIbCache` (64 MiB / 4096-entry LRU, trimming to a 75% watermark) plus intra-batch `Work::batch_ibs` deduplication. Newly populated `DEFAULT` buffers transition once to `NON_PIXEL_SHADER_RESOURCE` at `flush_blas_batch` and become eligible for cross-list hits only after `ClampedIbReady` drops past the populating command list's GPU fence. - Entries hold a `Weak<Shadow>` and automatically self-evict (via `Arc::ptr_eq`-guarded removal) if the shadow buffer is dropped, written on the GPU, or taken over; `title_memory_freed` invalidates freed `[at, at + len)` ranges and retires GPU resources outside write locks. - Populates `validated_ibs` on initial non-written builds/rehydrates (bounded at 65,536 entries) and checks `vb_shadow.left(vertex_buffer) >= exp_bytes` directly before falling back to `shadow::find`. 2. **Sanitize compute root signature & PSO deduplication (`SanitizePso`)** - Tracks the active sanitize compute pipeline (`None` / `ClampIb` / `CopyVb`) across an entire `blas_work` chunk loop so `SetComputeRootSignature` is issued at most once per `blas_work` call and `SetPipelineState` is issued only when switching between `clamp_ib_pso` and `copy_vb_pso`. 3. **`O(1)` `BlasLru` & `Backlog` hot-path operations** - Derives `Copy` on `OwnedGeometry` and updates `BlasLru::recipes` in place (preserving non-update flags while stripping `PERFORM_UPDATE`) without heap reallocation when a refit's geometry count matches. - Mirrors `BlasLru::wanted` with a `HashSet<u64>` (`wanted_set`) so `BlasLru::complete` deduplicates evicted BLAS marks in `O(1)` instead of linear `Vec::contains` scans. - Tags `Backlog` queue entries with monotonic sequence numbers `(key, seq)` so `Backlog::remove` becomes `O(1)` (skipping stale entries lazily on `take` / `keys` and compacting `order` only when stale slack exceeds `2 * len + 64`), replacing linear `VecDeque::retain` scans. 4. **Bounded CPU geometry decode memory queries** - Pre-decodes reachable meshlet `base_vi` headers (`meshlet_id` is 11 bits) in `decode_title_meshlet_ib` and computes the exact maximum `(base_vi + i_loc)` referenced by `tris` before calling `readable_len`, avoiding an unconditional 256 KiB `VirtualQuery` walk past `vi_addr`. - Coalesces the 32-byte header and vertex-array `title_readable` checks in `decode_title_quant24_vb` into a single `title_readable(vb_va - 0x20, vbytes + 0x20)` call. 5. **Shared per-list TLAS remap uploads & lock-free root TLAS binding cache** - Shares the active `plane_upload` BLAS remap hash table (`acquire_blas_table`) across consecutive TLAS builds recorded on the same `(HostList, epoch)` within a frame when `as_map_version` has not changed, and maintains atomic `as_map_len` / `waiting_len` / `evicted_len` counters so table sizing avoids locking `queue`, `lru`, and `as_map` on every TLAS build. - Adds a monotonic `tlas_version` counter in `hwrt` and caches resolved `(console_va, host_gpu_va)` pairs per `SLOT_TLAS_BASE..=SLOT_TLAS_MAX` (`t230..t241`) slot in `draw::State` (keyed by `(HostList, epoch)` and `tlas_version`, cleared on `reset` / `clear_state` / `replay`) so consecutive RT dispatches binding the same TLAS skip `as_map.read()` and duplicate `list.keep` clones while preserving recording-epoch resource keep-alive invariants. ## Verification - `cargo test -p victory-gpu --lib -- hwrt:: --test-threads=1` (including new synthetic unit tests for `BlasLru` in-place refit updates & `wanted_set` deduplication, `Backlog` lazy `O(1)` removal & FIFO compaction, `ClampedIbCache` byte/entry LRU eviction & range invalidation, `SanitizePso` bind suppression, and `VirtualAlloc` page-boundary meshlet IB decoding) - `cargo test -p victory-gpu --lib -- draw:: --test-threads=1` (including synthetic unit tests for per-`(HostList, epoch)` / `tlas_version` root TLAS slot caching and state resets) - `cargo check -p victory-gpu --lib --features diagnostics` - `cargo clippy -p victory-gpu --lib --tests` - `cargo run -p xtask -- policy`
MrDenn commented 2026-11-30 23:30:32 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by MrDenn on 2026-11-30T23:30:32Z.


Some in-game numbers for hardware RT's CPU side, in case they help prioritise. Included is one negative result: decoding the title's quant24 and meshlet geometry on the card.

Setup: RTX 5080 16 GB (driver 621.40), Ryzen 7 9700X, 32 GB DDR5-6400, Windows 11 24H2, v2026.11.30.03 release (e1251c31, without this PR). Series X, native 1440p, DLSS Performance, no frame cap. Gameplay seconds only.

RT is CPU-bound here, as a chain rather than one thread

per frame RT off VICTORY_HW_RT=1
fps ~22 14–16
card meter, title lists 23 ms 35 ms
card busy 61 % 65 % (idle ~25 ms)
submitting thread 34 ms 45–49 ms
relay landing 12 ms 28–31 ms
BLAS prep (execute_blas_batch) – 5–8 ms

Under load the CPU runs at ~5.37 GHz effective (close to max boost), with ~60 % of logical CPU busy and no thread above ~56 %. Rendering at 1080p instead of 1440p gained ~1 fps.

BLAS budget churn while driving

In a 14-minute session with more fast driving, the BLAS budget (1,492 MB, a tenth of the card capped at 1.5 GB) stayed full:

calmer session driving session
rehydrated 17.6 k 25.3 k
BLAS evicted 7.2 k (1.2 GB) 18.2 k (2.8 GB)
BLAS prep per gameplay frame 5.5 ms 13.0 ms
VRAM peak 14.7 GB 15.05 GB

rebuilt after eviction stays small (31), so most of the churn is new geometry streaming in and old geometry being let go. The CPU cost doubles while that happens, and at the same time textures fall back to small levels for want of room. A larger budget isn't free on a 16 GB card, but cheaper rehydrates or a keep-alive for structures likely to be needed again might be worth a look.

Things that did not help with RT on (same build, same settings)

change result
VICTORY_ASYNC_SUBMIT=1 14.8 fps vs 14.7–16.0. The title waited 0 ms on the line, and our thread was busy 49 of 66 ms.
VICTORY_THIN=1 (with async) +0.7 fps, but frames over 100 ms went from 37 to 72 a minute
VICTORY_SUBMIT_SPLIT=1 submitting thread 39 → 33 ms, fps not up
decoding quant24 VBs and rehydrate meshlet IBs on the card (my experiment) BLAS prep not lower, fps unchanged in a 30 s A/B

On the last one: I moved decode_title_quant24_vb and the rehydrate path of decode_title_meshlet_ib into a compute pass beside SANITIZE_HLSL, with the same rules (sane_position/sane_triangle). The CPU then read only the 32-byte header and the meshlet headers, and shadow::find + refresh provided the source. It built and the shaders compiled; in game, BLAS prep didn't drop. My guess is that refreshing the raw buffers up to the card costs about what the decode did, so the decode arithmetic was never the expensive part. I can share the diff, but I wouldn't pursue it.

A visual note

With hardware RT on, small pieces of geometry occasionally flicker or stretch into a large stray polygon for a moment, then disappear. It isn't frequent and doesn't break the game. I haven't isolated it yet.

Measurements from my own PC; the logs were read and this was written with an AI assistant (Claude).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7295198141 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4144#issuecomment-7295198141). Originally posted by [MrDenn](https://github.com/MrDenn) on 2026-11-30T23:30:32Z. --- Some in-game numbers for hardware RT's CPU side, in case they help prioritise. Included is one negative result: decoding the title's quant24 and meshlet geometry on the card. **Setup:** RTX 5080 16 GB (driver 621.40), Ryzen 7 9700X, 32 GB DDR5-6400, Windows 11 24H2, v2026.11.30.03 release (`e1251c31`, without this PR). Series X, native 1440p, DLSS Performance, no frame cap. Gameplay seconds only. ### RT is CPU-bound here, as a chain rather than one thread | per frame | RT off | `VICTORY_HW_RT=1` | |---|---|---| | fps | ~22 | 14–16 | | card meter, title lists | 23 ms | 35 ms | | card busy | 61 % | 65 % (idle ~25 ms) | | submitting thread | 34 ms | 45–49 ms | | relay landing | 12 ms | 28–31 ms | | BLAS prep (`execute_blas_batch`) | – | 5–8 ms | Under load the CPU runs at ~5.37 GHz effective (close to max boost), with ~60 % of logical CPU busy and no thread above ~56 %. Rendering at 1080p instead of 1440p gained ~1 fps. ### BLAS budget churn while driving In a 14-minute session with more fast driving, the BLAS budget (1,492 MB, a tenth of the card capped at 1.5 GB) stayed full: | | calmer session | driving session | |---|---|---| | rehydrated | 17.6 k | 25.3 k | | BLAS evicted | 7.2 k (1.2 GB) | **18.2 k (2.8 GB)** | | BLAS prep per gameplay frame | 5.5 ms | **13.0 ms** | | VRAM peak | 14.7 GB | 15.05 GB | `rebuilt after eviction` stays small (31), so most of the churn is new geometry streaming in and old geometry being let go. The CPU cost doubles while that happens, and at the same time textures fall back to small levels for want of room. A larger budget isn't free on a 16 GB card, but cheaper rehydrates or a keep-alive for structures likely to be needed again might be worth a look. ### Things that did not help with RT on (same build, same settings) | change | result | |---|---| | `VICTORY_ASYNC_SUBMIT=1` | 14.8 fps vs 14.7–16.0. The title waited 0 ms on the line, and our thread was busy 49 of 66 ms. | | `VICTORY_THIN=1` (with async) | +0.7 fps, but frames over 100 ms went from 37 to 72 a minute | | `VICTORY_SUBMIT_SPLIT=1` | submitting thread 39 → 33 ms, fps not up | | decoding quant24 VBs and rehydrate meshlet IBs on the card (my experiment) | BLAS prep not lower, fps unchanged in a 30 s A/B | On the last one: I moved `decode_title_quant24_vb` and the rehydrate path of `decode_title_meshlet_ib` into a compute pass beside `SANITIZE_HLSL`, with the same rules (`sane_position`/`sane_triangle`). The CPU then read only the 32-byte header and the meshlet headers, and `shadow::find` + `refresh` provided the source. It built and the shaders compiled; in game, `BLAS prep` didn't drop. My guess is that refreshing the raw buffers up to the card costs about what the decode did, so the decode arithmetic was never the expensive part. I can share the diff, but I wouldn't pursue it. ### A visual note With hardware RT on, small pieces of geometry occasionally flicker or stretch into a large stray polygon for a moment, then disappear. It isn't frequent and doesn't break the game. I haven't isolated it yet. *Measurements from my own PC; the logs were read and this was written with an AI assistant (Claude).*
paales commented 2026-12-01 01:41:08 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by paales on 2026-12-01T01:41:08Z.


Written by 🤖:

Tested together with #4337, #4578 and #4170 on an RTX 5070 Ti with 12 cores (https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4337#issuecomment-7297773692). With VICTORY_HW_RT=1 the CPU is the limit: median frame 47.9 ms with the card 62 % busy. BLAS prep is about 75 ms a second; the submitting thread loses most to the buffer and texture refreshes (its waits for helpers in wide_each_scoped are 28 % of its time, 8 % without ray tracing), not to the structure code (fill_blas_table 0.3 %). The cherry-pick onto #4337 and #4578 conflicts in HwRtManager and title_memory_freed; both sides stay.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7297777653 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4144#issuecomment-7297777653). Originally posted by [paales](https://github.com/paales) on 2026-12-01T01:41:08Z. --- _Written by 🤖:_ Tested together with #4337, #4578 and #4170 on an RTX 5070 Ti with 12 cores (https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4337#issuecomment-7297773692). With `VICTORY_HW_RT=1` the CPU is the limit: median frame 47.9 ms with the card 62 % busy. `BLAS prep` is about 75 ms a second; the submitting thread loses most to the buffer and texture refreshes (its waits for helpers in `wide_each_scoped` are 28 % of its time, 8 % without ray tracing), not to the structure code (`fill_blas_table` 0.3 %). The cherry-pick onto #4337 and #4578 conflicts in `HwRtManager` and `title_memory_freed`; both sides stay.
KruIN689 commented 2026-12-01 05:04:12 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by KruIN689 on 2026-12-01T05:04:12Z.


Independent test of this PR alone, hardware RT, while moving. So far it was only tested stacked with #4337/#4578/#4170.

Setup

  • Hardware: RTX 5080 16 GB, Ryzen 9 9950X3D, 47 GB RAM, Windows 11.
  • Release builds of Lyrnc/palmlight main 12a25580, which carries upstream main 84bd61e2's hardware RT. One build as is, one with this PR's head 22e26be0 cherry-picked; it applies cleanly.
  • VICTORY_HW_RT=1, Series X native 1440p.
  • The same save, then 6 minutes of scripted walking and driving per run, four runs in one session in turns (PR, main, PR, main). Gameplay seconds only.
run fps ms/frame frames over 50 ms per 1000 p99 submitting thread refreshes BLAS built / refit→rebuild BLAS prep (total) AS memory
PR 1 24.1 41.5 45.9 53.3 ms 37.8 ms 14.2 ms 21,421 / 1,852 21.1 s 1,201 MB
main 1 25.4 39.5 27.3 48.7 ms 34.0 ms 12.4 ms 7,764 / 18 8.6 s 325 MB
PR 2 21.1 47.2 391.2 77.4 ms 41.9 ms 16.3 ms 19,377 / 2,119 20.2 s 1,443 MB
main 2 24.8 40.3 124.2 63.7 ms 36.2 ms 12.7 ms 24,047 / 747 18.9 s 763 MB

What I read from it

  • No gain shows here. The PR's runs are the slower ones in both pairs: −1.3 and −3.7 fps.
  • The routes differ a lot. main 1 met far less new geometry, with 7.8 k BLASes built against about 20 k in the others.
  • The fairest pair is PR 2 against main 2, which built a similar amount (19 k vs 24 k). There the PR had 21.1 fps and 391 long frames per 1000, against 24.8 fps and 124 for main.
  • BLAS prep per BLAS built is in the same range on both sides: 0.98 / 1.04 ms with the PR, 1.10 / 0.79 ms without. Index buffers clamped on the card stay high with the PR (89.5 k / 81.1 k against main 2's 97.1 k), so the clamped-IB cache does not take much of that work away in this game's streaming.
  • refit→rebuild is higher in both PR runs (1,852 / 2,119 against 18 / 747). It may be the route, but it is worth a look, since a refit that falls back to a full rebuild costs prep time.
  • No new errors. No lost device in any run, and the log's error and warning line count is the same on both sides (84–87 per run).
  • Unit tests: cargo test -p victory-gpu --lib hwrt on the cherry-pick gives 24 passed.

Limits

  • One session, two pairs. Route-to-route variance is large with HW RT, so this does not prove harm, but it shows no measurable win on this CPU.
  • Release builds without the diagnostics feature, so there is no per-function split of the submitting thread.

Tested with the help of Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7301390322 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4144#issuecomment-7301390322). Originally posted by [KruIN689](https://github.com/KruIN689) on 2026-12-01T05:04:12Z. --- **Independent test of this PR alone, hardware RT, while moving.** So far it was only tested stacked with #4337/#4578/#4170. **Setup** - Hardware: RTX 5080 16 GB, Ryzen 9 9950X3D, 47 GB RAM, Windows 11. - Release builds of Lyrnc/palmlight main 12a25580, which carries upstream main 84bd61e2's hardware RT. One build as is, one with this PR's head 22e26be0 cherry-picked; it applies cleanly. - `VICTORY_HW_RT=1`, Series X native 1440p. - The same save, then 6 minutes of scripted walking and driving per run, four runs in one session in turns (PR, main, PR, main). Gameplay seconds only. | run | fps | ms/frame | frames over 50 ms per 1000 | p99 | submitting thread | refreshes | BLAS built / refit→rebuild | BLAS prep (total) | AS memory | |---|---|---|---|---|---|---|---|---|---| | PR 1 | 24.1 | 41.5 | 45.9 | 53.3 ms | 37.8 ms | 14.2 ms | 21,421 / 1,852 | 21.1 s | 1,201 MB | | main 1 | 25.4 | 39.5 | 27.3 | 48.7 ms | 34.0 ms | 12.4 ms | 7,764 / 18 | 8.6 s | 325 MB | | PR 2 | 21.1 | 47.2 | 391.2 | 77.4 ms | 41.9 ms | 16.3 ms | 19,377 / 2,119 | 20.2 s | 1,443 MB | | main 2 | 24.8 | 40.3 | 124.2 | 63.7 ms | 36.2 ms | 12.7 ms | 24,047 / 747 | 18.9 s | 763 MB | **What I read from it** - **No gain shows here.** The PR's runs are the slower ones in both pairs: −1.3 and −3.7 fps. - **The routes differ a lot.** main 1 met far less new geometry, with 7.8 k BLASes built against about 20 k in the others. - **The fairest pair is PR 2 against main 2,** which built a similar amount (19 k vs 24 k). There the PR had 21.1 fps and 391 long frames per 1000, against 24.8 fps and 124 for main. - **BLAS prep per BLAS built** is in the same range on both sides: 0.98 / 1.04 ms with the PR, 1.10 / 0.79 ms without. Index buffers clamped on the card stay high with the PR (89.5 k / 81.1 k against main 2's 97.1 k), so the clamped-IB cache does not take much of that work away in this game's streaming. - **refit→rebuild is higher in both PR runs** (1,852 / 2,119 against 18 / 747). It may be the route, but it is worth a look, since a refit that falls back to a full rebuild costs prep time. - **No new errors.** No lost device in any run, and the log's error and warning line count is the same on both sides (84–87 per run). - **Unit tests:** `cargo test -p victory-gpu --lib hwrt` on the cherry-pick gives 24 passed. **Limits** - One session, two pairs. Route-to-route variance is large with HW RT, so this does not prove harm, but it shows no measurable win on this CPU. - Release builds without the diagnostics feature, so there is no per-function split of the submitting thread. *Tested with the help of Claude Code (Claude Opus 5.5).*
trustno1-coder commented 2026-12-01 18:46:32 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:46:32Z.


Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7321520039 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4144#issuecomment-7321520039). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-12-01T18:46:32Z. --- Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

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