Since the 829188e9 combine (still on v2026.11.29.02): the diagnostics build does not compile, and two merge losses (#1557's busy check; #1772 undone under host memory pressure) #2974

Open
opened 2026-11-29 19:13:35 +00:00 by github-bot · 2 comments
Owner

@⁠Robotniq on GitHub · 2026-11-29 19:09 UTC · original

Found while rebuilding our local stack on 829188e9, and still there on v2026.11.29.02 (RTX 3070 Ti 8 GB, 32-lane, 32 GB RAM, Series S, DLSS Quality, ray tracing off). We have a small fix for each and can open PRs if that helps.

  1. The diagnostics build does not compile. cargo build --locked --profile diag -p victory --features diagnostics stops with nine errors: copystat::log_heap_elsewhere formats its line with an mb it does not define (four calls), and three timing() calls in host.rs are hidden by the submission's local timing (Option<SubmissionTiming>); the two E0277 follow from them. Launchers that build the diag profile (needed for VICTORY_SKIP_PIPELINES) fail. Fix: a local mb in log_heap_elsewhere, and self::timing().

  2. The wave-4 merge (1d5e66a8) dropped #1557's !busy in slot_evict. evict_slots still finds a slot another thread is making, but the texture's host copy can be let go anyway. Fix: let idle = !busy && ..., and evict_slots stopping at the first busy slot so no other slot of a kept texture goes neutral.

  3. #1473's full-extent check (0efd23e3) undoes #1772 under host memory pressure. It is gated on host_idle.is_some(), not on #1772's unmapped_only. With host memory tight (under 8 GiB of headroom, which this title keeps on a 32 GB PC almost all the time) every mapped copy the card's rule picks goes to continue, as before #1772. Fix: gate the check on unmapped_only.

Two measurements that may help (5-minute runs on the same boat save, nobody playing; on 829188e9, before the hotfix turned wave64 folding off):

  • acc6df7d (#1133), kept by the wave-4 merge, sifts the known-no-op refresh spans one at a time on the submitting thread (about 1 ms a frame here). VICTORY_FRONT_SIFT=1 (#1760) does the same sift on all threads: 23.6 -> 24.0 fps, with VICTORY_CARD_METER=0 and VICTORY_PROCESS_MEMORY=0 as well.
  • VICTORY_RELAY=0 halves the frame rate on this PC (12.8 against 24 fps), so leaving stage 2 on when unset is right here.

Also: with wave64 folding on (829188e9's default, VICTORY_WAVE_FOLDED=1 since the hotfix) all three screen-space-reflection programs translate (34992f2b65a789a5, 71883e40620a567a, 7168dd781ca7efb9), but with the three on, glossy surfaces (a wall clock's glass, glasses) still glitter in green and orange on this 32-lane card. We keep them in VICTORY_SKIP_PIPELINES.

Measured with AI assistance (Claude Code); the runs were made on my machine.

**@⁠Robotniq** on GitHub · 2026-11-29 19:09 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2974) Found while rebuilding our local stack on 829188e9, and still there on v2026.11.29.02 (RTX 3070 Ti 8 GB, 32-lane, 32 GB RAM, Series S, DLSS Quality, ray tracing off). We have a small fix for each and can open PRs if that helps. 1. **The diagnostics build does not compile.** `cargo build --locked --profile diag -p victory --features diagnostics` stops with nine errors: `copystat::log_heap_elsewhere` formats its line with an `mb` it does not define (four calls), and three `timing()` calls in host.rs are hidden by the submission's local `timing` (`Option<SubmissionTiming>`); the two E0277 follow from them. Launchers that build the diag profile (needed for `VICTORY_SKIP_PIPELINES`) fail. Fix: a local `mb` in `log_heap_elsewhere`, and `self::timing()`. 2. **The wave-4 merge (1d5e66a8) dropped #1557's `!busy` in `slot_evict`.** `evict_slots` still finds a slot another thread is making, but the texture's host copy can be let go anyway. Fix: `let idle = !busy && ...`, and `evict_slots` stopping at the first busy slot so no other slot of a kept texture goes neutral. 3. **#1473's full-extent check (0efd23e3) undoes #1772 under host memory pressure.** It is gated on `host_idle.is_some()`, not on `#1772`'s `unmapped_only`. With host memory tight (under 8 GiB of headroom, which this title keeps on a 32 GB PC almost all the time) every mapped copy the card's rule picks goes to `continue`, as before #1772. Fix: gate the check on `unmapped_only`. Two measurements that may help (5-minute runs on the same boat save, nobody playing; on 829188e9, before the hotfix turned wave64 folding off): - acc6df7d (#1133), kept by the wave-4 merge, sifts the known-no-op refresh spans one at a time on the submitting thread (about 1 ms a frame here). `VICTORY_FRONT_SIFT=1` (#1760) does the same sift on all threads: 23.6 -> 24.0 fps, with `VICTORY_CARD_METER=0` and `VICTORY_PROCESS_MEMORY=0` as well. - `VICTORY_RELAY=0` halves the frame rate on this PC (12.8 against 24 fps), so leaving stage 2 on when unset is right here. Also: with wave64 folding on (829188e9's default, `VICTORY_WAVE_FOLDED=1` since the hotfix) all three screen-space-reflection programs translate (34992f2b65a789a5, 71883e40620a567a, 7168dd781ca7efb9), but with the three on, glossy surfaces (a wall clock's glass, glasses) still glitter in green and orange on this 32-lane card. We keep them in `VICTORY_SKIP_PIPELINES`. Measured with AI assistance (Claude Code); the runs were made on my machine.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 19:13:35 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-29 19:09 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-29 19:09 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2974#issuecomment-7261054310) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠Robotniq on GitHub · 2026-11-30 00:12 UTC · original

Update on today's main (41adb551, v2026.11.29.05):

  1. Fixed by 41adb551 ("Diagnostics build compiles again"), thanks.
  2. Still there: slot_evict takes busy from evict_slots (resource.rs:3573) and never reads it, so a texture whose slot another thread is still making can have its host copy let go. evict_slots also goes on past a busy slot (busy = true; continue).
  3. Still there: pressure_gone (resource.rs:3131) is still gated on host_idle.is_some(), not on unmapped_only.

The fixes for 2 and 3 are the ones in the first post, and they still merge cleanly onto today's main. I can open a PR with the two if that helps.

Checked with AI assistance (Claude Code).

**@⁠Robotniq** on GitHub · 2026-11-30 00:12 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2974#issuecomment-7265067590) Update on today's main (41adb551, v2026.11.29.05): 1. Fixed by 41adb551 ("Diagnostics build compiles again"), thanks. 2. Still there: `slot_evict` takes `busy` from `evict_slots` (resource.rs:3573) and never reads it, so a texture whose slot another thread is still making can have its host copy let go. `evict_slots` also goes on past a busy slot (`busy = true; continue`). 3. Still there: `pressure_gone` (resource.rs:3131) is still gated on `host_idle.is_some()`, not on `unmapped_only`. The fixes for 2 and 3 are the ones in the first post, and they still merge cleanly onto today's main. I can open a PR with the two if that helps. Checked with AI assistance (Claude Code).
This discussion has been locked. Commenting is limited to contributors.
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#2974
No description provided.