Explainer: draws left out on purpose are not "shaders that cannot be converted yet" #3842
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3842"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Trillazill on 2026-11-30T09:06:14Z.
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 THESEreadsdraw::dropped_now(): every draw, mesh dispatch and dispatch that did not run. That includes the ones left out on purpose:VICTORY_BVH_BUILDERunset, the default), andmake::left_outleaves 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 saiddropped 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.rscounts, besideDROPPED, the drops that were left out on purpose (pipeline::left_out_on_purpose: a builder stage while the builder is not allowed, or a pipelinemakeleft out), and the explainer readsdraw::missing_now(), the dropped draws without those.Unchanged:
dropped N draws or dispatches(take_dropped) and the queue'sdropped_allstill count every drop;VICTORY_SKIP_PIPELINES(diagnostics) still count as missing.About the loose metadata in #3831
The
unknown loose metadata versionwarnings (0x403) are not what drops these draws.DeserializeComputePipelineStateXmakes a pipeline from loose parts only withVICTORY_LOOSE_PIPELINES=1(device.rs, off by default). Without it the method returnsE_NOTIMPLwhether the metadata parses or not, and the parse only feeds the warning. #2478 is the change for the version itself.Tests
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_keyfails the same way on41adb551.host::uav_pool::tests::host_list_uav_pool_lifecycle_retire_trim_and_info_queuefailed 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).-p victory-gpu --lib --tests, with and without--features diagnostics): nothing in the lines this change adds or touches. Main at41adb551already stops-D warningsinvictory-shader(unused importsPAIR_MEETINGS,analysis::lane_regions).dropped 1162 draws or dispatches (0 being made), the reasons1160.9/frame ... a stage of the ray-tracing structure builder, which is offand2.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
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Lyrnc on 2026-11-30T19:31:00Z.
Tested on top of current main (
84bd61e2, v2026.11.30.02). The branch no longer merges cleanly: three hunks indraw.rsconflict with main'slist.taint_queries();before the drop count. I kept both lines (list.taint_queries();thencount_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 newonly_a_pipeline_left_out_counts_as_left_out_on_purposepasses. Two of the failures are main's:list::thin::tests::bindings_record_no_workandshader_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::rangednever used;seed % 3 == 0athost.rs:5092). With--all-featuresalso main'scopystat::mbnever used. Nothing from this PR's lines.cargo xtask policy: one violation, main's, a long hex run invictory-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_BUILDERis unset. With the builder allowed it drops 1 a frame. The table and the controls are in https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3831#issuecomment-7286305847. 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:
Countersslot 8 is also what the F3 panel prints asDROPPED(panel.rs, theDRAWS {} 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 anddropped_allas unchanged, but not F3. If F3 should keep counting every drop, #2496 does that with a 12th counter for the explainer alone.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 withVICTORY_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
84bd61e2against 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'sdropped N draws or dispatchesshould 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).
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Trillazill on 2026-12-01T06:21:36Z.
Rebased onto main
5fabb46e. Conflict indraw.rs: the three drop sites now also calllist.taint_queries(); kept, withcount_dropped. Tests on the rebased branch:cargo test -p victory-gpu --lib -- pipeline::make:: host::panel39 pass;cargo clippy -p victory-gpu --lib --testsno errors. On main5fabb46ethe frame line still counted 410 dropped draws a frame in the prison cell (Series X), mostly the ray-tracing builder.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Lyrnc on 2026-12-01T08:10:31Z.
The in-game runs from my comment of 30 Nov. RTX 5080 16 GB, Ryzen 7 9800X3D, 32 GB RAM, Windows 11.
84bd61e2and of84bd61e2+ this PR as it was then (69049fb0, merged locally; not the rebased06c1492a).VICTORY_BVH_BUILDERunset), standing,VICTORY_ADVISOR=1, 180 s runs. Shared shader cache.Diagnostics "dropped N/frame without a host pipeline: why", mean of the 5 s lines after the world:
VICTORY_LEAVE_OUTNo device removed, DRED or "did not close" line.
What this shows
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
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.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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Trillazill on 2026-12-01T09:23:08Z.
The run with
VICTORY_BVH_BUILDER=1that the comment above left open, on the rebased head.5fabb46eand of this PR's head06c1492a(rebased on5fabb46e).VICTORY_BVH_BUILDER=1,VICTORY_LEAVE_OUTat its default (02384a60fda6f2d0,731a39171b568298). Prison cell, walking and turning throughVICTORY_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.VICTORY_LEAVE_OUT36, being made 3VICTORY_LEAVE_OUT55, being made 9What this shows
VICTORY_LEAVE_OUTnames, which is left out on purpose.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
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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by BitWuehler on 2026-12-01T13:55:42Z.
Confirmed the classification logic in gameplay on RTX 5080 16 GB (Series X, 1440p, DLSS Balanced, RT off, default
VICTORY_LEAVE_OUTon5fabb46ebase): excluding disabledis_builderstages andmake::is_left_outpipelines drops steady-state unconverted-pipeline counts from ~301/frame down to0.00/framewhile ~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):take_dropped()windows (cf. #2828): every other slot inpanel::Countersis a cumulative total since process start, whichCounters::sincediffs viaif is >= was { is - was } else { is }. Becausemissing_now()subtractsDROPPED_TAKENandON_PURPOSE_TAKEN, any 5 s frame-metertake_dropped()call between twoF2/F3samples drops the pre-reset count (e.g.was = 8, +12 real drops,take_dropped()resets to 0, +8 real drops ->is = 8 >= was, reporting0/frameinstead of20 / frames).take_dropped():take_dropped()updatesON_PURPOSE_TAKENbeforeDROPPED_TAKENwithRelaxedstores, somissing_now()on the present thread can briefly observe the newON_PURPOSE_TAKEN(on_purpose == 0) with the oldDROPPED_TAKEN, spikingmissing_now()by the full window's intentional RT skips for one sample.Maintaining a single cumulative
MISSING: AtomicU64(incremented incount_droppedonly when!crate::pipeline::left_out_on_purpose(pipeline)) and readingmissing_all()inCountersavoids both thetake_dropped()reset loss and the four-atomic race without needingON_PURPOSE/ON_PURPOSE_TAKEN.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.