Explainer: draws left out on purpose are not "shaders that cannot be converted yet" #3842

Open
github-bot wants to merge 1 commit from github-bot/gh-3842 into main AGit
Owner

@⁠Trillazill on GitHub · 2026-11-30 09:06 UTC · original
Trillazill:fix/overlay-left-out-draws → main · +68 −6 · 4 files · 1 commits · open

What this changes

The explainer's note NOTE: N DRAWS SKIPPED, THEIR SHADERS CANNOT BE CONVERTED YET — TRY: NOTHING ON YOUR SIDE. A LATER BUILD FIXES THESE reads draw::dropped_now(): every draw, mesh dispatch and dispatch that did not run. That includes the ones left out on purpose:

  • the ray-tracing structure builder's dispatches while it is off (VICTORY_BVH_BUILDER unset, the default), and
  • pipelines make::left_out leaves out (ray-tracing hits without the builder, VICTORY_LEAVE_OUT).

On the Series X profile almost every dropped draw is the first kind. In a diagnostics run here (RTX 4080, Series X, in the world) the frame line said dropped 352 draws or dispatches, and the drop reasons said dropped 351.3/frame without a host pipeline: a stage of the ray-tracing structure builder, which is off. So the overlay told players ~350 shaders could not be converted, and that a later build would fix them, when nothing is missing. That is what #3831 reports as "263 draws skipped" (the reporter's frame line: dropped 289 draws or dispatches).

Now draw.rs counts, beside DROPPED, the drops that were left out on purpose (pipeline::left_out_on_purpose: a builder stage while the builder is not allowed, or a pipeline make left out), and the explainer reads draw::missing_now(), the dropped draws without those.

Unchanged:

  • the frame line's dropped N draws or dispatches (take_dropped) and the queue's dropped_all still count every drop;
  • a builder that rests after one of its stages failed, a pipeline still being made, refused, or that could not be bound still count as missing;
  • drops from VICTORY_SKIP_PIPELINES (diagnostics) still count as missing.

About the loose metadata in #3831

The unknown loose metadata version warnings (0x403) are not what drops these draws. DeserializeComputePipelineStateX makes a pipeline from loose parts only with VICTORY_LOOSE_PIPELINES=1 (device.rs, off by default). Without it the method returns E_NOTIMPL whether the metadata parses or not, and the parse only feeds the warning. #2478 is the change for the version itself.

Tests

  • New: pipeline::make::tests::only_a_pipeline_left_out_counts_as_left_out_on_purpose.
  • cargo test -p victory-gpu --lib -- pipeline::make::tests::only_a_pipeline_left_out pipeline::make::tests::pipelines_left_out panel: 11 pass.
  • cargo test -p victory-gpu --no-fail-fast: 921 pass, 2 fail. shader_cache::tests::every_switch_of_the_translator_is_in_the_key fails the same way on 41adb551. host::uav_pool::tests::host_list_uav_pool_lifecycle_retire_trim_and_info_queue failed once in the full run and passed alone three times out of three; it reads process-wide pool stats that other tests change, and this change does not touch the UAV pool.
  • cargo xtask policy --staged: ok (4 files).
  • Clippy (-p victory-gpu --lib --tests, with and without --features diagnostics): nothing in the lines this change adds or touches. Main at 41adb551 already stops -D warnings in victory-shader (unused imports PAIR_MEETINGS, analysis::lane_regions).
  • In game (diagnostics build, Series X, RTX 4080, in the world): the frame line said dropped 1162 draws or dispatches (0 being made), the reasons 1160.9/frame ... a stage of the ray-tracing structure builder, which is off and 2.0/frame ... named in VICTORY_LEAVE_OUT. The F1 explainer showed no "draws skipped" note. Before this change the same setup showed it for every such drop.

No game data, logs or other files from the title are in this change.

🤖 Generated with Claude Code

**@⁠Trillazill** on GitHub · 2026-11-30 09:06 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3842) `Trillazill:fix/overlay-left-out-draws` → `main` · +68 −6 · 4 files · 1 commits · open ## What this changes The explainer's note `NOTE: N DRAWS SKIPPED, THEIR SHADERS CANNOT BE CONVERTED YET` — `TRY: NOTHING ON YOUR SIDE. A LATER BUILD FIXES THESE` reads `draw::dropped_now()`: every draw, mesh dispatch and dispatch that did not run. That includes the ones left out on purpose: - the ray-tracing structure builder's dispatches while it is off (`VICTORY_BVH_BUILDER` unset, the default), and - pipelines `make::left_out` leaves out (ray-tracing hits without the builder, `VICTORY_LEAVE_OUT`). On the Series X profile almost every dropped draw is the first kind. In a diagnostics run here (RTX 4080, Series X, in the world) the frame line said `dropped 352 draws or dispatches`, and the drop reasons said `dropped 351.3/frame without a host pipeline: a stage of the ray-tracing structure builder, which is off`. So the overlay told players ~350 shaders could not be converted, and that a later build would fix them, when nothing is missing. That is what #3831 reports as "263 draws skipped" (the reporter's frame line: `dropped 289 draws or dispatches`). Now `draw.rs` counts, beside `DROPPED`, the drops that were left out on purpose (`pipeline::left_out_on_purpose`: a builder stage while the builder is not allowed, or a pipeline `make` left out), and the explainer reads `draw::missing_now()`, the dropped draws without those. Unchanged: - the frame line's `dropped N draws or dispatches` (`take_dropped`) and the queue's `dropped_all` still count every drop; - a builder that rests after one of its stages failed, a pipeline still being made, refused, or that could not be bound still count as missing; - drops from `VICTORY_SKIP_PIPELINES` (diagnostics) still count as missing. ## About the loose metadata in #3831 The `unknown loose metadata version` warnings (`0x403`) are not what drops these draws. `DeserializeComputePipelineStateX` makes a pipeline from loose parts only with `VICTORY_LOOSE_PIPELINES=1` (`device.rs`, off by default). Without it the method returns `E_NOTIMPL` whether the metadata parses or not, and the parse only feeds the warning. #2478 is the change for the version itself. ## Tests - New: `pipeline::make::tests::only_a_pipeline_left_out_counts_as_left_out_on_purpose`. - `cargo test -p victory-gpu --lib -- pipeline::make::tests::only_a_pipeline_left_out pipeline::make::tests::pipelines_left_out panel`: 11 pass. - `cargo test -p victory-gpu --no-fail-fast`: 921 pass, 2 fail. `shader_cache::tests::every_switch_of_the_translator_is_in_the_key` fails the same way on 41adb551. `host::uav_pool::tests::host_list_uav_pool_lifecycle_retire_trim_and_info_queue` failed once in the full run and passed alone three times out of three; it reads process-wide pool stats that other tests change, and this change does not touch the UAV pool. - `cargo xtask policy --staged`: ok (4 files). - Clippy (`-p victory-gpu --lib --tests`, with and without `--features diagnostics`): nothing in the lines this change adds or touches. Main at 41adb551 already stops `-D warnings` in `victory-shader` (unused imports `PAIR_MEETINGS`, `analysis::lane_regions`). - In game (diagnostics build, Series X, RTX 4080, in the world): the frame line said `dropped 1162 draws or dispatches (0 being made)`, the reasons `1160.9/frame ... a stage of the ray-tracing structure builder, which is off` and `2.0/frame ... named in VICTORY_LEAVE_OUT`. The F1 explainer showed no "draws skipped" note. Before this change the same setup showed it for every such drop. No game data, logs or other files from the title are in this change. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The explainer's "N draws skipped, their shaders cannot be converted yet"
counted every dropped draw, the ray-tracing structure builder's dispatches
included, which do not run unless VICTORY_BVH_BUILDER=1. On Series X they
are nearly all of them (~350 to ~1,160 a frame), so the overlay told
players shaders were missing when nothing was.

draw.rs now counts apart the drops left out on purpose
(pipeline::left_out_on_purpose: a builder stage while the builder is not
allowed, or a pipeline make left out), and the explainer reads
draw::missing_now(), the dropped draws without those. The frame line's
count is unchanged.

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

@⁠Lyrnc on GitHub · 2026-11-30 19:31 UTC · original

Tested on top of current main (84bd61e2, v2026.11.30.02). The branch no longer merges cleanly: three hunks in draw.rs conflict with main's list.taint_queries(); before the drop count. I kept both lines (list.taint_queries(); then count_dropped(self.pipeline as This);). Nothing else changed.

Checks (RTX 5080, Windows 11, Rust 1.98.1):

  • cargo test -p victory-gpu --lib --locked: 1131 passed, 3 failed, 66 ignored. The new only_a_pipeline_left_out_counts_as_left_out_on_purpose passes. Two of the failures are main's: list::thin::tests::bindings_record_no_work and shader_cache::tests::every_switch_of_the_translator_is_in_the_key. The third, host::card_steps::tests::shared_scratch_eliminates_flight_settle_end_to_end, counted 7 refusals where it expected 8 in the full parallel run. It passed 3 of 3 times run alone on the same build, and this PR does not touch that file.
  • cargo clippy -p victory-gpu --all-targets --locked -- -D warnings: only main's errors (Shadow::ranged never used; seed % 3 == 0 at host.rs:5092). With --all-features also main's copystat::mb never used. Nothing from this PR's lines.
  • cargo xtask policy: one violation, main's, a long hex run in victory-shader/src/native.rs, which this PR does not touch.

Why the change is right. Measured on Series X, ray tracing off: 99.7 % of the frame line's ~360 dropped draws a frame are the structure builder's dispatches while VICTORY_BVH_BUILDER is unset. With the builder allowed it drops 1 a frame. The table and the controls are in #3831. So the note this PR silences is wrong in that mode, and it is wrong on every Series X start.

Read through, two things for the merge:

  1. Counters slot 8 is also what the F3 panel prints as DROPPED (panel.rs, the DRAWS {} DROPPED {} line). With this PR the F3 number also leaves out the drops made on purpose: ~350 becomes ~0 on Series X. The PR text lists the frame line and dropped_all as unchanged, but not F3. If F3 should keep counting every drop, #2496 does that with a 12th counter for the explainer alone.
  2. The builder's drops count as on purpose only while the builder is not allowed (p.builder && !builder_allowed()). A builder that is allowed but stays off or rests (a stage without a host pipeline, or one that could not be bound) still counts as missing. That is better than #2496, which counts every builder skip as on purpose, even with VICTORY_BVH_BUILDER=1.

In game: runs queued, results to follow. This is a before/after on the same Series X scene with the explainer on screen: main 84bd61e2 against this branch merged on it, both diagnostics builds. We will check three things. The note should show on main and not with this PR. The frame line's dropped N draws or dispatches should not change. The drop reasons should be the same in both. A third run with the builder allowed (VICTORY_BVH_BUILDER=1) shows what the explainer says once only real drops are left. That run waits for someone at the PC.

Tested with Claude Code (AI).

**@⁠Lyrnc** on GitHub · 2026-11-30 19:31 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3842#issuecomment-7289520915) Tested on top of current main (84bd61e2, v2026.11.30.02). The branch no longer merges cleanly: three hunks in `draw.rs` conflict with main's `list.taint_queries();` before the drop count. I kept both lines (`list.taint_queries();` then `count_dropped(self.pipeline as This);`). Nothing else changed. **Checks** (RTX 5080, Windows 11, Rust 1.98.1): - `cargo test -p victory-gpu --lib --locked`: 1131 passed, 3 failed, 66 ignored. The new `only_a_pipeline_left_out_counts_as_left_out_on_purpose` passes. Two of the failures are main's: `list::thin::tests::bindings_record_no_work` and `shader_cache::tests::every_switch_of_the_translator_is_in_the_key`. The third, `host::card_steps::tests::shared_scratch_eliminates_flight_settle_end_to_end`, counted 7 refusals where it expected 8 in the full parallel run. It passed 3 of 3 times run alone on the same build, and this PR does not touch that file. - `cargo clippy -p victory-gpu --all-targets --locked -- -D warnings`: only main's errors (`Shadow::ranged` never used; `seed % 3 == 0` at `host.rs:5092`). With `--all-features` also main's `copystat::mb` never used. Nothing from this PR's lines. - `cargo xtask policy`: one violation, main's, a long hex run in `victory-shader/src/native.rs`, which this PR does not touch. **Why the change is right.** Measured on Series X, ray tracing off: 99.7 % of the frame line's ~360 dropped draws a frame are the structure builder's dispatches while `VICTORY_BVH_BUILDER` is unset. With the builder allowed it drops 1 a frame. The table and the controls are in https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/issues/3831. So the note this PR silences is wrong in that mode, and it is wrong on every Series X start. **Read through, two things for the merge:** 1. `Counters` slot 8 is also what the F3 panel prints as `DROPPED` (`panel.rs`, the `DRAWS {} DROPPED {}` line). With this PR the F3 number also leaves out the drops made on purpose: ~350 becomes ~0 on Series X. The PR text lists the frame line and `dropped_all` as unchanged, but not F3. If F3 should keep counting every drop, #2496 does that with a 12th counter for the explainer alone. 2. The builder's drops count as on purpose only while the builder is not allowed (`p.builder && !builder_allowed()`). A builder that is allowed but stays off or rests (a stage without a host pipeline, or one that could not be bound) still counts as missing. That is better than #2496, which counts every builder skip as on purpose, even with `VICTORY_BVH_BUILDER=1`. **In game: runs queued, results to follow.** This is a before/after on the same Series X scene with the explainer on screen: main 84bd61e2 against this branch merged on it, both diagnostics builds. We will check three things. The note should show on main and not with this PR. The frame line's `dropped N draws or dispatches` should not change. The drop reasons should be the same in both. A third run with the builder allowed (`VICTORY_BVH_BUILDER=1`) shows what the explainer says once only real drops are left. That run waits for someone at the PC. Tested with Claude Code (AI).
github-bot changed title from Explainer: draws left out on purpose are not "shaders that cannot be converted yet" (#3831) to Explainer: draws left out on purpose are not "shaders that cannot be converted yet" 2026-12-01 06:26:14 +00:00
github-bot force-pushed github-bot/gh-3842 from 69049fb012 to 06c1492a72 2026-12-01 06:26:16 +00:00 Compare
Author
Owner

@⁠Trillazill on GitHub · 2026-12-01 06:21 UTC · original

Rebased onto main 5fabb46e. Conflict in draw.rs: the three drop sites now also call list.taint_queries(); kept, with count_dropped. Tests on the rebased branch: cargo test -p victory-gpu --lib -- pipeline::make:: host::panel 39 pass; cargo clippy -p victory-gpu --lib --tests no errors. On main 5fabb46e the frame line still counted 410 dropped draws a frame in the prison cell (Series X), mostly the ray-tracing builder.

**@⁠Trillazill** on GitHub · 2026-12-01 06:21 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3842#issuecomment-7302781845) Rebased onto main 5fabb46e. Conflict in `draw.rs`: the three drop sites now also call `list.taint_queries()`; kept, with `count_dropped`. Tests on the rebased branch: `cargo test -p victory-gpu --lib -- pipeline::make:: host::panel` 39 pass; `cargo clippy -p victory-gpu --lib --tests` no errors. On main 5fabb46e the frame line still counted 410 dropped draws a frame in the prison cell (Series X), mostly the ray-tracing builder.
Author
Owner

@⁠Lyrnc on GitHub · 2026-12-01 08:10 UTC · original

The in-game runs from my comment of 30 Nov. RTX 5080 16 GB, Ryzen 7 9800X3D, 32 GB RAM, Windows 11.

  • Builds: diagnostics builds of main 84bd61e2 and of 84bd61e2 + this PR as it was then (69049fb0, merged locally; not the rebased 06c1492a).
  • Setup: Series X, 1440p, DLSS Quality, frame generation off, ray tracing off (VICTORY_BVH_BUILDER unset), standing, VICTORY_ADVISOR=1, 180 s runs. Shared shader cache.
build fps (median 5 s line) frame line: dropped draws or dispatches /frame being made indirect /frame (left out on purpose)
main 29.5 312 (median) 0 970 (969)
this PR 30.1 315 (median) 0 970 (969)

Diagnostics "dropped N/frame without a host pipeline: why", mean of the 5 s lines after the world:

reason main this PR
left out on purpose: shades ray-tracing hits without BVH 956 900
a stage of the ray-tracing structure builder, which is off 313 386
being made 0.1 (3 lines) 163 (5 lines, early in the run)
left out on purpose: named in VICTORY_LEAVE_OUT 2.0 1.9
left out on purpose: the water's tiled light on N-lane waves 2.0 1.9

No device removed, DRED or "did not close" line.

What this shows

  • The PR leaves the drops themselves alone, as it says. The frame line's dropped and indirect counts are the same in both builds (312 against 315 a frame; 970 indirect with 969 left out on purpose). The reasons are the same set.
  • On Series X with the builder off, nearly all direct drops are the structure builder's stages. The reason lines give 313 and 386 a frame (means that include the first seconds' spikes; the frame line's median is 312-315), plus ~4 a frame left out on purpose. So by the code, the explainer's count on main is ~310 a frame, and the note "N DRAWS SKIPPED, THEIR SHADERS CANNOT BE CONVERTED YET" fires whenever nothing is being made. With this PR's missing_now() those stages count as left out on purpose, the count is ~0, and the note does not fire. That matches #3831's ~350.

What it does not show

  • The note on screen. Our captures are of the title's frame before the explainer overlay is drawn. Neither build's shots show the explainer panel at all, so the note's absence in the PR's shots proves nothing either way. The two bullets above come from the logged counts and the code, not from a picture.
  • The run with VICTORY_BVH_BUILDER=1 (what is still dropped once the builder may run, and whether the note shows for that) is held until someone can watch a ray-tracing run.
  • A first main run is left out. It ran on a cache with no pipelines yet: 0.1-0.7 fps and a white frame for its whole 180 s. That is the cold-cache state the preload exists for, not this PR's doing. The main row above is a rerun on the warmed cache.

AI use: Claude Code (Claude Opus 5.5) ran these on our bench queue, parsed the run logs with its own scripts, read the explainer code, and wrote this comment.

**@⁠Lyrnc** on GitHub · 2026-12-01 08:10 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3842#issuecomment-7304971583) The in-game runs from my comment of 30 Nov. RTX 5080 16 GB, Ryzen 7 9800X3D, 32 GB RAM, Windows 11. - **Builds:** diagnostics builds of main 84bd61e2 and of 84bd61e2 + this PR as it was then (69049fb0, merged locally; not the rebased 06c1492a). - **Setup:** Series X, 1440p, DLSS Quality, frame generation off, ray tracing off (`VICTORY_BVH_BUILDER` unset), standing, `VICTORY_ADVISOR=1`, 180 s runs. Shared shader cache. | build | fps (median 5 s line) | frame line: dropped draws or dispatches /frame | being made | indirect /frame (left out on purpose) | |---|---:|---:|---:|---:| | main | 29.5 | 312 (median) | 0 | 970 (969) | | this PR | 30.1 | 315 (median) | 0 | 970 (969) | Diagnostics "dropped N/frame without a host pipeline: why", mean of the 5 s lines after the world: | reason | main | this PR | |---|---:|---:| | left out on purpose: shades ray-tracing hits without BVH | 956 | 900 | | a stage of the ray-tracing structure builder, which is off | 313 | 386 | | being made | 0.1 (3 lines) | 163 (5 lines, early in the run) | | left out on purpose: named in `VICTORY_LEAVE_OUT` | 2.0 | 1.9 | | left out on purpose: the water's tiled light on N-lane waves | 2.0 | 1.9 | No device removed, DRED or "did not close" line. **What this shows** - **The PR leaves the drops themselves alone, as it says.** The frame line's dropped and indirect counts are the same in both builds (312 against 315 a frame; 970 indirect with 969 left out on purpose). The reasons are the same set. - **On Series X with the builder off, nearly all direct drops are the structure builder's stages.** The reason lines give 313 and 386 a frame (means that include the first seconds' spikes; the frame line's median is 312-315), plus ~4 a frame left out on purpose. So by the code, the explainer's count on main is ~310 a frame, and the note "N DRAWS SKIPPED, THEIR SHADERS CANNOT BE CONVERTED YET" fires whenever nothing is being made. With this PR's `missing_now()` those stages count as left out on purpose, the count is ~0, and the note does not fire. That matches #3831's ~350. **What it does not show** - **The note on screen.** Our captures are of the title's frame before the explainer overlay is drawn. Neither build's shots show the explainer panel at all, so the note's absence in the PR's shots proves nothing either way. The two bullets above come from the logged counts and the code, not from a picture. - **The run with `VICTORY_BVH_BUILDER=1`** (what is still dropped once the builder may run, and whether the note shows for that) is held until someone can watch a ray-tracing run. - **A first main run is left out.** It ran on a cache with no pipelines yet: 0.1-0.7 fps and a white frame for its whole 180 s. That is the cold-cache state the preload exists for, not this PR's doing. The main row above is a rerun on the warmed cache. AI use: Claude Code (Claude Opus 5.5) ran these on our bench queue, parsed the run logs with its own scripts, read the explainer code, and wrote this comment.
Author
Owner

@⁠Trillazill on GitHub · 2026-12-01 09:23 UTC · original

The run with VICTORY_BVH_BUILDER=1 that the comment above left open, on the rebased head.

  • Builds: diagnostics builds of main 5fabb46e and of this PR's head 06c1492a (rebased on 5fabb46e).
  • Setup: RTX 4080, driver 617.42, Windows 11, Series X, 4K, DLSS off, frame generation off, VICTORY_BVH_BUILDER=1, VICTORY_LEAVE_OUT at its default (02384a60fda6f2d0,731a39171b568298). Prison cell, walking and turning through VICTORY_KEYS_FILE, 3–4 minutes in the world each. Shared shader cache. The first main run is left out: it was the cache's first ray-tracing run in the world, and pipelines were being made for nearly all of it.
build 5 s lines in the world of them with nothing being made frame line: dropped draws or dispatches /frame drop reasons (5 s lines)
main 35 34 1 (median; 1–2) named in VICTORY_LEAVE_OUT 36, being made 3
this PR 54 49 1 (median; 1–2) named in VICTORY_LEAVE_OUT 55, being made 9

What this shows

  • With the builder on, the builder's stages are no longer dropped. What is left is 1–2 draws a frame (reason lines say 1.9–2.0/frame), and every one is a pipeline VICTORY_LEAVE_OUT names, which is left out on purpose.
  • So by the code, on main the explainer's count is about 2 a frame, and "N DRAWS SKIPPED, THEIR SHADERS CANNOT BE CONVERTED YET" fires in every 5 s window with nothing being made: 34 of 35 here. With this PR, missing_now() takes those out, the count is 0, and the note does not fire. Same set of reasons in both builds.

What it does not show

  • The note on screen. As in the runs above, the captured frames are the title's frame before the overlay is drawn. These two bullets come from the logged counts and the code.
  • The main run (not this PR's build) ended after about 4.5 minutes in the world with device removed ... (0x887A0006) while ray tracing was on. The PR run didn't, but that is one run each and this PR only changes a counter, so I don't read anything into it.

AI use: Claude Code (Claude Opus 5.5) drove the runs through the game's key file, parsed the logs and wrote this comment.

**@⁠Trillazill** on GitHub · 2026-12-01 09:23 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3842#issuecomment-7306623418) The run with `VICTORY_BVH_BUILDER=1` that the comment above left open, on the rebased head. - **Builds:** diagnostics builds of main 5fabb46e and of this PR's head 06c1492a (rebased on 5fabb46e). - **Setup:** RTX 4080, driver 617.42, Windows 11, Series X, 4K, DLSS off, frame generation off, `VICTORY_BVH_BUILDER=1`, `VICTORY_LEAVE_OUT` at its default (`02384a60fda6f2d0,731a39171b568298`). Prison cell, walking and turning through `VICTORY_KEYS_FILE`, 3–4 minutes in the world each. Shared shader cache. The first main run is left out: it was the cache's first ray-tracing run in the world, and pipelines were being made for nearly all of it. | build | 5 s lines in the world | of them with nothing being made | frame line: dropped draws or dispatches /frame | drop reasons (5 s lines) | |---|---:|---:|---:|---| | main | 35 | 34 | 1 (median; 1–2) | named in `VICTORY_LEAVE_OUT` 36, being made 3 | | this PR | 54 | 49 | 1 (median; 1–2) | named in `VICTORY_LEAVE_OUT` 55, being made 9 | **What this shows** - With the builder on, the builder's stages are no longer dropped. What is left is 1–2 draws a frame (reason lines say 1.9–2.0/frame), and every one is a pipeline `VICTORY_LEAVE_OUT` names, which is left out on purpose. - So by the code, on main the explainer's count is about 2 a frame, and "N DRAWS SKIPPED, THEIR SHADERS CANNOT BE CONVERTED YET" fires in every 5 s window with nothing being made: 34 of 35 here. With this PR, `missing_now()` takes those out, the count is 0, and the note does not fire. Same set of reasons in both builds. **What it does not show** - The note on screen. As in the runs above, the captured frames are the title's frame before the overlay is drawn. These two bullets come from the logged counts and the code. - The main run (not this PR's build) ended after about 4.5 minutes in the world with `device removed ... (0x887A0006)` while ray tracing was on. The PR run didn't, but that is one run each and this PR only changes a counter, so I don't read anything into it. AI use: Claude Code (Claude Opus 5.5) drove the runs through the game's key file, parsed the logs and wrote this comment.
Author
Owner

@⁠BitWuehler on GitHub · 2026-12-01 13:55 UTC · original

Confirmed the classification logic in gameplay on RTX 5080 16 GB (Series X, 1440p, DLSS Balanced, RT off, default VICTORY_LEAVE_OUT on 5fabb46e base): excluding disabled is_builder stages and make::is_left_out pipelines drops steady-state unconverted-pipeline counts from ~301/frame down to 0.00/frame while ~1,082/frame intentional RT/leave-out skips stay accounted for separately.

One subtle counter issue in missing_now() (draw.rs + host/panel.rs:130):

  1. Reset across take_dropped() windows (cf. #2828): every other slot in panel::Counters is a cumulative total since process start, which Counters::since diffs via if is >= was { is - was } else { is }. Because missing_now() subtracts DROPPED_TAKEN and ON_PURPOSE_TAKEN, any 5 s frame-meter take_dropped() call between two F2/F3 samples drops the pre-reset count (e.g. was = 8, +12 real drops, take_dropped() resets to 0, +8 real drops -> is = 8 >= was, reporting 0/frame instead of 20 / frames).
  2. Torn read with take_dropped(): take_dropped() updates ON_PURPOSE_TAKEN before DROPPED_TAKEN with Relaxed stores, so missing_now() on the present thread can briefly observe the new ON_PURPOSE_TAKEN (on_purpose == 0) with the old DROPPED_TAKEN, spiking missing_now() by the full window's intentional RT skips for one sample.

Maintaining a single cumulative MISSING: AtomicU64 (incremented in count_dropped only when !crate::pipeline::left_out_on_purpose(pipeline)) and reading missing_all() in Counters avoids both the take_dropped() reset loss and the four-atomic race without needing ON_PURPOSE / ON_PURPOSE_TAKEN.

**@⁠BitWuehler** on GitHub · 2026-12-01 13:55 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3842#issuecomment-7313414210) Confirmed the classification logic in gameplay on RTX 5080 16 GB (Series X, 1440p, DLSS Balanced, RT off, default `VICTORY_LEAVE_OUT` on `5fabb46e` base): excluding disabled `is_builder` stages and `make::is_left_out` pipelines drops steady-state unconverted-pipeline counts from ~301/frame down to `0.00/frame` while ~1,082/frame intentional RT/leave-out skips stay accounted for separately. One subtle counter issue in `missing_now()` (`draw.rs` + `host/panel.rs:130`): 1. **Reset across `take_dropped()` windows (cf. #2828)**: every other slot in `panel::Counters` is a cumulative total since process start, which `Counters::since` diffs via `if is >= was { is - was } else { is }`. Because `missing_now()` subtracts `DROPPED_TAKEN` and `ON_PURPOSE_TAKEN`, any 5 s frame-meter `take_dropped()` call between two `F2`/`F3` samples drops the pre-reset count (e.g. `was = 8`, +12 real drops, `take_dropped()` resets to 0, +8 real drops -> `is = 8 >= was`, reporting `0/frame` instead of `20 / frames`). 2. **Torn read with `take_dropped()`**: `take_dropped()` updates `ON_PURPOSE_TAKEN` before `DROPPED_TAKEN` with `Relaxed` stores, so `missing_now()` on the present thread can briefly observe the new `ON_PURPOSE_TAKEN` (`on_purpose == 0`) with the old `DROPPED_TAKEN`, spiking `missing_now()` by the full window's intentional RT skips for one sample. Maintaining a single cumulative `MISSING: AtomicU64` (incremented in `count_dropped` only when `!crate::pipeline::left_out_on_purpose(pipeline)`) and reading `missing_all()` in `Counters` avoids both the `take_dropped()` reset loss and the four-atomic race without needing `ON_PURPOSE` / `ON_PURPOSE_TAKEN`.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3842/head:github-bot/gh-3842'
git switch 'github-bot/gh-3842'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3842'
git switch 'github-bot/gh-3842'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3842'
git switch 'github-bot/gh-3842'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3842'
git switch 'main'
git merge --squash 'github-bot/gh-3842'
git switch 'main'
git merge --ff-only 'github-bot/gh-3842'
git switch 'main'
git merge 'github-bot/gh-3842'
git push origin 'main'
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!3842
No description provided.