About 1.4% of world draws have no pipeline: rectangle stage-in, v_cvt_f32_f64, and three draws dropped with no reason logged #531
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-28T01:02:31Z.
What you see
About 1.4% of draws in a world frame have no pipeline and draw nothing:
no_pipelinewas 24,039 of 1,675,678 recorded draws by frame 2112 in one run.What I know
By reason, counting refused shaders in one run:
v_cvt_f32_f64 is not supported: 1.e2945217,456f02b5,a1f08b8b.a draw without a host re….What would help
v_cvt_f32_f64is one opcode.Good first issues for someone new to the translator.
How to see it
Branch
lit-world/base-3(commit9a0d811d). It is #437 with fixes on top: #518, the cross-page loads, texture fixes, the page table for described pipelines and the image null-view test. It is not main, and one upstream test fails on it by design (wave32_tests::a_branch_on_a_first_lane_read_is_not_uniform_across_the_halves).Apple Silicon Mac with 48 GB, Series S profile. The world shows about 4.5 minutes after start on a cold shader cache.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by marcus-4 on 2026-11-28T02:16:46Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T02:16:55Z.
Claimed by @marcus-4. Open a draft pull request with
Refs #531in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by marcus-4 on 2026-11-28T08:19:14Z.
/release
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by marcus-4 on 2026-11-28T08:22:28Z.
/release
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T08:22:37Z.
Released. This issue is free to claim.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T10:32:58Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T10:33:08Z.
Claimed by @AnastasisKon. Open a draft pull request with
Refs #531in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by xarvel-temp on 2026-11-28T11:33:16Z.
A second data point, because mine disagrees with the headline figure by a lot and the difference looks like scene, not disagreement.
Setup. M5 Max, 128 GB, macOS 27.2.1.
mainat2681728, release,x86_64-apple-darwin.tools/macos/run-native.sh --headless --seconds 180 --console series-s,VICTORY_DEPTH_TWINS=0,VICTORY_TRACE_TARGETS=1, warm shader cache. Prologue, the outdoor cutscene.Measured as deltas between consecutive
native draws so farlines, not from the cumulative counters:Cumulative at frame 2112: 59,398 of 253,980, 23.4 %.
So on this machine nothing at all is dropped until the world, and then about a quarter of every draw is. That is not the pipelines still building: during the build phase the rate is zero.
Why I think we are measuring different things rather than contradicting each other: at the same frame number your run has 1,675,678 recorded draws and mine has 253,980 — 6.6x more. Different scene or far longer in the world, either of which could move the ratio. I am not disputing 1.4 %; I am saying the prologue outdoor shot on Series S gives 23 % here.
What is being dropped, summed over the run: 59,689 compute and 21,868 vertex.
By target, the largest group by far is the six-attachment G-buffer — 506 distinct log lines:
then depth-only passes (437 and 284 lines) and
[Rgba16Float, R32Uint] + D32FloatS8(113).Four compute shaders account for a large share of the indirect drops, each appearing 111 times, all dispatching into quarter-resolution
fmt 26(R11G11B10) targets of 640x360:c22779675a2f025d,424cd8ae96f3d6e5,34b2260aea58dc1f,2a87fe37ec7fc5ffThat resolution and format put them in the screen-probe / ray-traced lighting chain, which overlaps #526 and #529 rather than this issue.
Why it matters for the picture: a frame dumped from the same run shows pale untextured regions on the right and black polygonal shards at the lower left. Those are G-buffer attachments with a quarter of their draws missing, so the damage and this counter are the same fault seen two ways.
Happy to re-run with any switch combination or to dump the targets for a specific pass — the issue is yours, this is just the number from a machine class that does not appear much in the reports.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T13:45:57Z.
Third piece of this issue, done: the host now names every pipeline it drops a draw or dispatch for, on fork
AnastasisKon/Native-Victory-macOSmain.Before, the drop reason was logged once for the run and said nothing about which pipeline went ("a draw without a host render pipeline (refused or not translated)"), so a draw could end up with no explanation at all - the three hashes you list. The shaders and targets were known, but only inside
VICTORY_TRACE_TARGETS' frame trace.Now
glue::warn_drop_pipelogs one warning per dropped pipeline, whichever path dropped it:Render draws, compute dispatches and thread-count dispatches all go through it; up to 64 keys are kept (a title with thousands of dropped pipelines logs the first 64 rather than a line per frame). No switch: it is a
warn!like the other first-time drop reasons, filtered byRUST_LOGas usual. Test:glue::a_dropped_pipeline_is_named_once.So the next world run should say, for each of
e2945217,456f02b5,a1f08b8b, which reason and which pipeline the drop came from - if the pipeline had a refusal logged earlier, the log now ties the draw to it.On the other two:
v_cvt_f32_f64already lowers (emulated in 64-bit integer ops,lower.rs'svalu_oparm; GPU testvalu_tests::cvt_f32_f64_converts_doubles_on_the_gpu, refusal testgfx_refusal_tests::cvt_f32_f64_lowers_in_pixel_shader), so its shader should have a pipeline now - worth re-counting on the currentmain. I left the rectangle stage-in case to you since you said you have a first commit for it.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T15:37:27Z.
/claim — the third "what would help" item: make the host log a reason for every draw it drops.
The gaps in
crates/victory-gpu/src/native/glue.rson current main:make_pipereturnsPipe::Refusedwith no log whennative_stages(key)isNone(likely the three reflection/post-pass drawse2945217,456f02b5,a1f08b8b);make_host_pipereturnsPipe::Refusedsilently for a compute pipeline with no compute stage and for a guessed graphics pipeline with no vertex stage; and thePipe::Skippeddraw arm warns but never callsdropped(), so those draws are not even counted inno_pipeline. The fix routes the silent refusals throughrefused_translation(warns once per pipeline with its stage hashes, counts by reason in the shader stats) and makes theSkippedarm count viadropped(...). One PR onvibe/drop-reason-log-1705ac. The rectangle stage-in andv_cvt_f32_f64parts stay separate.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T15:37:35Z.
Claimed by @AnastasisKon. Open a draft pull request with
Refs #531in its description within 24 hours, or the claim expires.