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

Open
opened 2026-11-28 01:02:31 +00:00 by LakshanSivakumar · 11 comments
LakshanSivakumar commented 2026-11-28 01:02:31 +00:00 (Migrated from github.com)
Contributor

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_pipeline was 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:

  • Rectangle output expansion of stage-in attributes: 9 to 10 vertex shaders.
  • v_cvt_f32_f64 is not supported: 1.
  • Three draws in the reflection and post passes have no host pipeline and the log gives no reason at all: e2945217, 456f02b5, a1f08b8b.
  • One drop that is not a shader: the log line starts a draw without a host re….
  • The rest are the mesh size limit and the cross-lane compute family, which have their own issues.

What would help

  • The rectangle stage-in case is self-contained and has an untested test and first commit I can push.
  • v_cvt_f32_f64 is one opcode.
  • Making the host log a reason for every draw it drops would make the three unknown ones easy.

Good first issues for someone new to the translator.

How to see it

Branch lit-world/base-3 (commit 9a0d811d). 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).

VICTORY_CONSOLE_PIPELINES=0 VICTORY_METAL_RESIDENCY_SETS=1 VICTORY_TEXTURE_DROP_TOP_MIP=1 \
VICTORY_OUTPUT=1280x720 VICTORY_UPSCALER=6 VICTORY_STEP_OVER=pool VICTORY_PIPELINE_TIMEOUT_S=15 \
tools/macos/run-native.sh --console series-s <game folder>

Apple Silicon Mac with 48 GB, Series S profile. The world shows about 4.5 minutes after start on a cold shader cache.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6656991225 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531). Originally posted by [LakshanSivakumar](https://github.com/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_pipeline` was 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: - Rectangle output expansion of stage-in attributes: 9 to 10 vertex shaders. - `v_cvt_f32_f64 is not supported`: 1. - Three draws in the reflection and post passes have no host pipeline and the log gives no reason at all: `e2945217`, `456f02b5`, `a1f08b8b`. - One drop that is not a shader: the log line starts `a draw without a host re…`. - The rest are the mesh size limit and the cross-lane compute family, which have their own issues. ### What would help - The rectangle stage-in case is self-contained and has an untested test and first commit I can push. - `v_cvt_f32_f64` is one opcode. - Making the host log a reason for every draw it drops would make the three unknown ones easy. Good first issues for someone new to the translator. ### How to see it Branch [`lit-world/base-3`](https://github.com/LakshanSivakumar/Native-Victory-macOS/tree/lit-world/base-3) (commit `9a0d811d`). 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`). ```bash VICTORY_CONSOLE_PIPELINES=0 VICTORY_METAL_RESIDENCY_SETS=1 VICTORY_TEXTURE_DROP_TOP_MIP=1 \ VICTORY_OUTPUT=1280x720 VICTORY_UPSCALER=6 VICTORY_STEP_OVER=pool VICTORY_PIPELINE_TIMEOUT_S=15 \ tools/macos/run-native.sh --console series-s <game folder> ``` Apple Silicon Mac with 48 GB, Series S profile. The world shows about 4.5 minutes after start on a cold shader cache.
marcus-4 commented 2026-11-28 02:16:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by marcus-4 on 2026-11-28T02:16:46Z.


/claim

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7232254785 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7232254785). Originally posted by [marcus-4](https://github.com/marcus-4) on 2026-11-28T02:16:46Z. --- /claim
github-actions[bot] commented 2026-11-28 02:16:55 +00:00 (Migrated from github.com)
Author
Contributor

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 #531 in its description within 24 hours, or the claim expires.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7232256568 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7232256568). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T02:16:55Z. --- Claimed by @marcus-4. Open a draft pull request with `Refs #531` in its description within 24 hours, or the claim expires.
marcus-4 commented 2026-11-28 08:19:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by marcus-4 on 2026-11-28T08:19:14Z.


/release

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7236506187 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7236506187). Originally posted by [marcus-4](https://github.com/marcus-4) on 2026-11-28T08:19:14Z. --- /release
marcus-4 commented 2026-11-28 08:22:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by marcus-4 on 2026-11-28T08:22:28Z.


/release

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7236540749 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7236540749). Originally posted by [marcus-4](https://github.com/marcus-4) on 2026-11-28T08:22:28Z. --- /release
github-actions[bot] commented 2026-11-28 08:22:37 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7236542320 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7236542320). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T08:22:37Z. --- Released. This issue is free to claim.
AnastasisKon commented 2026-11-28 10:32:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T10:32:58Z.


/claim

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7237967970 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7237967970). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-28T10:32:58Z. --- /claim
github-actions[bot] commented 2026-11-28 10:33:08 +00:00 (Migrated from github.com)
Author
Contributor

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 #531 in its description within 24 hours, or the claim expires.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7237969889 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7237969889). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T10:33:08Z. --- Claimed by @AnastasisKon. Open a draft pull request with `Refs #531` in its description within 24 hours, or the claim expires.
xarvel-temp commented 2026-11-28 11:33:16 +00:00 (Migrated from github.com)
Author
Contributor

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. main at 2681728, 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 far lines, not from the cumulative counters:

frames draws in the interval no_pipeline
128 … 1984 (boot, menus, story load) 64 to 635 per interval 0.0 %, not one
2048 66,410 21.0 %
2112 177,176 25.6 %

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:

into TargetFormats { color: [Rgba8UnormSrgb, Rgba8Unorm, Rgba8Unorm, Rgba8Unorm, Rg16Float, Rgba8Unorm], depth: Some(D32FloatS8) }

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, 2a87fe37ec7fc5ff

That 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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7238628311 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7238628311). Originally posted by [xarvel-temp](https://github.com/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. `main` at 2681728, 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 far` lines, not from the cumulative counters:** | frames | draws in the interval | no_pipeline | | --- | --- | --- | | 128 … 1984 (boot, menus, story load) | 64 to 635 per interval | **0.0 %, not one** | | 2048 | 66,410 | **21.0 %** | | 2112 | 177,176 | **25.6 %** | 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: ``` into TargetFormats { color: [Rgba8UnormSrgb, Rgba8Unorm, Rgba8Unorm, Rgba8Unorm, Rg16Float, Rgba8Unorm], depth: Some(D32FloatS8) } ``` 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`, `2a87fe37ec7fc5ff` That 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.
AnastasisKon commented 2026-11-28 13:45:57 +00:00 (Migrated from github.com)
Author
Contributor

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-macOS main.

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_pipe logs one warning per dropped pipeline, whichever path dropped it:

WARN a draw or execution dropped for want of a host pipeline (first of this pipeline) pipeline="[\"vs e2945217...\", \"ps ...\"] into DrawTargets { ... }"

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 by RUST_LOG as 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_f64 already lowers (emulated in 64-bit integer ops, lower.rs's valu_op arm; GPU test valu_tests::cvt_f32_f64_converts_doubles_on_the_gpu, refusal test gfx_refusal_tests::cvt_f32_f64_lowers_in_pixel_shader), so its shader should have a pipeline now - worth re-counting on the current main. I left the rectangle stage-in case to you since you said you have a first commit for it.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7240169336 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7240169336). Originally posted by [AnastasisKon](https://github.com/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-macOS` `main`. 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_pipe` logs one warning per dropped pipeline, whichever path dropped it: ``` WARN a draw or execution dropped for want of a host pipeline (first of this pipeline) pipeline="[\"vs e2945217...\", \"ps ...\"] into DrawTargets { ... }" ``` 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 by `RUST_LOG` as 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_f64` already lowers (emulated in 64-bit integer ops, `lower.rs`'s `valu_op` arm; GPU test `valu_tests::cvt_f32_f64_converts_doubles_on_the_gpu`, refusal test `gfx_refusal_tests::cvt_f32_f64_lowers_in_pixel_shader`), so its shader should have a pipeline now - worth re-counting on the current `main`. I left the rectangle stage-in case to you since you said you have a first commit for it.
AnastasisKon commented 2026-11-28 15:37:27 +00:00 (Migrated from github.com)
Author
Contributor

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.rs on current main: make_pipe returns Pipe::Refused with no log when native_stages(key) is None (likely the three reflection/post-pass draws e2945217, 456f02b5, a1f08b8b); make_host_pipe returns Pipe::Refused silently for a compute pipeline with no compute stage and for a guessed graphics pipeline with no vertex stage; and the Pipe::Skipped draw arm warns but never calls dropped(), so those draws are not even counted in no_pipeline. The fix routes the silent refusals through refused_translation (warns once per pipeline with its stage hashes, counts by reason in the shader stats) and makes the Skipped arm count via dropped(...). One PR on vibe/drop-reason-log-1705ac. The rectangle stage-in and v_cvt_f32_f64 parts stay separate.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7241609388 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7241609388). Originally posted by [AnastasisKon](https://github.com/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.rs` on current main: `make_pipe` returns `Pipe::Refused` with no log when `native_stages(key)` is `None` (likely the three reflection/post-pass draws `e2945217`, `456f02b5`, `a1f08b8b`); `make_host_pipe` returns `Pipe::Refused` silently for a compute pipeline with no compute stage and for a guessed graphics pipeline with no vertex stage; and the `Pipe::Skipped` draw arm warns but never calls `dropped()`, so those draws are not even counted in `no_pipeline`. The fix routes the silent refusals through `refused_translation` (warns once per pipeline with its stage hashes, counts by reason in the shader stats) and makes the `Skipped` arm count via `dropped(...)`. One PR on `vibe/drop-reason-log-1705ac`. The rectangle stage-in and `v_cvt_f32_f64` parts stay separate.
github-actions[bot] commented 2026-11-28 15:37:35 +00:00 (Migrated from github.com)
Author
Contributor

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 #531 in its description within 24 hours, or the claim expires.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7241611171 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7241611171). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T15:37:35Z. --- Claimed by @AnastasisKon. Open a draft pull request with `Refs #531` in its description within 24 hours, or the claim expires.
Sign in to join this conversation.
No labels
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.

Reference
LakshanSivakumar/Native-Victory-macOS#531
No description provided.