About 1.4% of world draws have no pipeline: rectangle stage-in, v_cvt_f32_f64, and three draws dropped with no reason logged #535

Open
opened 2026-11-28 01:02:56 +00:00 by github-bot · 11 comments
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-28 01:02 UTC · original

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 #441 with fixes on top: #522, 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.

**@⁠LakshanSivakumar** on GitHub · 2026-11-28 01:02 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531) ### 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 #441 with fixes on top: #522, 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 01:02:56 +00:00
Author
Owner

@⁠marcus-4 on GitHub · 2026-11-28 02:16 UTC · original

/claim

**@⁠marcus-4** on GitHub · 2026-11-28 02:16 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7232254785) /claim
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 02:16 UTC · original

Claimed by @⁠marcus-4. Open a draft pull request with Refs #531 in its description within 24 hours, or the claim expires.

**@⁠github-actions[bot]** on GitHub · 2026-11-28 02:16 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7232256568) Claimed by @⁠marcus-4. Open a draft pull request with `Refs #531` in its description within 24 hours, or the claim expires.
Author
Owner

@⁠marcus-4 on GitHub · 2026-11-28 08:19 UTC · original

/release

**@⁠marcus-4** on GitHub · 2026-11-28 08:19 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7236506187) /release
Author
Owner

@⁠marcus-4 on GitHub · 2026-11-28 08:22 UTC · original

/release

**@⁠marcus-4** on GitHub · 2026-11-28 08:22 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7236540749) /release
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 08:22 UTC · original

Released. This issue is free to claim.

**@⁠github-actions[bot]** on GitHub · 2026-11-28 08:22 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7236542320) Released. This issue is free to claim.
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 10:32 UTC · original

/claim

**@⁠AnastasisKon** on GitHub · 2026-11-28 10:32 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7237967970) /claim
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 10:33 UTC · original

Claimed by @⁠AnastasisKon. Open a draft pull request with Refs #531 in its description within 24 hours, or the claim expires.

**@⁠github-actions[bot]** on GitHub · 2026-11-28 10:33 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7237969889) Claimed by @⁠AnastasisKon. Open a draft pull request with `Refs #531` in its description within 24 hours, or the claim expires.
Author
Owner

@⁠xarvel-temp on GitHub · 2026-11-28 11:33 UTC · original

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 #530 and #533 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.

**@⁠xarvel-temp** on GitHub · 2026-11-28 11:33 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7238628311) 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 #530 and #533 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.
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 13:45 UTC · original

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** on GitHub · 2026-11-28 13:45 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7240169336) 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.
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 15:37 UTC · original

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

**@⁠AnastasisKon** on GitHub · 2026-11-28 15:37 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7241609388) /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.
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 15:37 UTC · original

Claimed by @⁠AnastasisKon. Open a draft pull request with Refs #531 in its description within 24 hours, or the claim expires.

**@⁠github-actions[bot]** on GitHub · 2026-11-28 15:37 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/531#issuecomment-7241611171) Claimed by @⁠AnastasisKon. Open a draft pull request with `Refs #531` in its description within 24 hours, or the claim expires.
This discussion has been locked. Commenting is limited to contributors.
No description provided.