Diag/build fixes #2788

Closed
github-bot wants to merge 2 commits from github-bot/gh-2788 into main AGit
Owner

@⁠dejvidkou on GitHub · 2026-11-29 17:19 UTC · original
dejvidkou:diag/build-fixes → main · +14 −5 · 3 files · 2 commits · closed without merging

Diagnostics build compiles again; VICTORY_QUIET_WAITS can be A/B'd in one run

1. cargo build --profile diag -p victory --features diagnostics failed on main

Nine errors, two causes. Release builds are not affected.

  • host.rs, the submission with lists timed: the local timing (the submission's Option<SubmissionTiming>) hides the VICTORY_GPU_TIMING switch timing(). Three if timing() calls read the Option as a function (E0618, E0277). They call self::timing() now.
  • copystat.rs, the windows-trim line: it formats mb(..), but its function has no mb (E0425). It has its own now: bytes to MB, as the other lines do.

2. VICTORY_QUIET_WAITS through asked_for!

VICTORY_QUIET_WAITS (ccf92026, off by default) was read once from its variable, so measuring it took two runs, and their scenes differ by 10-15 %. It goes through asked_for! now:

  • the variable gives the same answer as before (1 on);
  • with VICTORY_AB naming it (diagnostics and ab builds), it turns on and off while the title runs.

The lists track "nothing written since the last wait" either way. Only whether such a wait is recorded changes.

What it measured

RTX 3060 Laptop 6 GB, Series S, DLSS ultra performance, VICTORY_AB=30,VICTORY_QUIET_WAITS, 10 minutes, 19 phases.

A VICTORY_GPU_TIMING run counted 845 full waits a frame for the title's barrier groups, 218 of them after nothing that writes.

Fitting phase median frame time against draws:

2.5k draws 3.5k draws 4.5k draws
on (8 phases) 64.3 ms 75.3 ms 86.3 ms
off (9 phases) 62.4 ms 74.7 ms 87.0 ms

No difference: the card was 83-84 % busy either way. The player saw slightly more glitches with it on. On this card those waits are cheap, so keeping it off by default looks right.

The same kind of run with VICTORY_SUBMIT_SPLIT (already asked_for!): 0-3 % at matched draws, inside the noise.

Checks

  • cargo build --profile diag -p victory --features diagnostics and cargo build --release -p victory
  • cargo test --release -p victory-gpu --lib -- draw:: indirect::: 58 passed
  • cargo xtask policy --staged on each commit

🤖 Generated with Claude Code

**@⁠dejvidkou** on GitHub · 2026-11-29 17:19 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2788) `dejvidkou:diag/build-fixes` → `main` · +14 −5 · 3 files · 2 commits · closed without merging # Diagnostics build compiles again; VICTORY_QUIET_WAITS can be A/B'd in one run ## 1. `cargo build --profile diag -p victory --features diagnostics` failed on main Nine errors, two causes. Release builds are not affected. - **`host.rs`, the submission with lists timed:** the local `timing` (the submission's `Option<SubmissionTiming>`) hides the `VICTORY_GPU_TIMING` switch `timing()`. Three `if timing()` calls read the `Option` as a function (E0618, E0277). They call `self::timing()` now. - **`copystat.rs`, the windows-trim line:** it formats `mb(..)`, but its function has no `mb` (E0425). It has its own now: bytes to MB, as the other lines do. ## 2. `VICTORY_QUIET_WAITS` through `asked_for!` `VICTORY_QUIET_WAITS` (ccf92026, off by default) was read once from its variable, so measuring it took two runs, and their scenes differ by 10-15 %. It goes through `asked_for!` now: - the variable gives the same answer as before (`1` on); - with `VICTORY_AB` naming it (diagnostics and `ab` builds), it turns on and off while the title runs. The lists track "nothing written since the last wait" either way. Only whether such a wait is recorded changes. ## What it measured RTX 3060 Laptop 6 GB, Series S, DLSS ultra performance, `VICTORY_AB=30,VICTORY_QUIET_WAITS`, 10 minutes, 19 phases. A `VICTORY_GPU_TIMING` run counted **845 full waits a frame** for the title's barrier groups, **218** of them after nothing that writes. Fitting phase median frame time against draws: | | 2.5k draws | 3.5k draws | 4.5k draws | |---|---|---|---| | on (8 phases) | 64.3 ms | 75.3 ms | 86.3 ms | | off (9 phases) | 62.4 ms | 74.7 ms | 87.0 ms | **No difference**: the card was 83-84 % busy either way. The player saw slightly more glitches with it on. On this card those waits are cheap, so keeping it off by default looks right. The same kind of run with `VICTORY_SUBMIT_SPLIT` (already `asked_for!`): 0-3 % at matched draws, inside the noise. ## Checks - `cargo build --profile diag -p victory --features diagnostics` and `cargo build --release -p victory` - `cargo test --release -p victory-gpu --lib -- draw:: indirect::`: 58 passed - `cargo xtask policy --staged` on each commit 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- host.rs: in the submission with lists timed, the local `timing` (the
  submission's `SubmissionTiming`) hid the `VICTORY_GPU_TIMING` switch
  `timing()`: three `if timing()` read the Option as a function (E0618).
  They call `self::timing()` now.
- copystat.rs: the windows-trim line formats `mb(..)` with no `mb` in its
  function (E0425); it has its own now, bytes to MB as the others.

`cargo build --profile diag -p victory --features diagnostics` failed on
main (829188e9) with these nine errors; release builds are not touched.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
VICTORY_QUIET_WAITS (ccf92026, off by default) was read once from its
variable, so measuring it took two runs, whose scenes differ by 10-15 %.
It goes through asked_for! now: the same answer from the variable ("1"
on), and with VICTORY_AB naming it in diagnostics or `ab` builds, on and
off while the title runs. The lists track "nothing written since the last
wait" either way; only whether such a wait is recorded changes.

A timing run on an RTX 3060 Laptop counted 845 full waits a frame for the
title's barrier groups, 218 of them after nothing that writes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 17:22:25 +00:00
github-bot closed this pull request 2026-11-30 13:57:10 +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!2788
No description provided.