startup-runtime: black screen after the intro video #1130

Closed
opened 2026-11-24 01:45:24 +00:00 by denn0x · 3 comments
denn0x commented 2026-11-24 01:45:24 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-24T01:45:24Z.


Status update · 1 December 2026

Superseded by #3641 for the remaining scene output. Later checkpoints in #870 show visible UI and presentation. The current scene geometry blockers are split into #3639 and #3640. The reproduction below is retained for historical reference.

Problem

With -Render -GpuMirror -ContinueAsserts 5000, the intro video plays and the process keeps presenting at
about 29 fps, but after the video every presented frame is black. The render totals show translated draws
but the output stays black.

Where to start

  • X2W_DRAW_DUMP_FRAME / X2W_DRAW_DUMP_DIR dump every render target of one frame.
  • Check for untranslated pipelines (req_* files in the shader cache), null bindings and zero-filled BCPack textures (see the related issues).

Done when

The first draw that produces the black output is identified and either fixed or split into a narrower issue.

Context: docs/startup-runtime.md (#1135). Do not attach game files, dumps or logs that contain addresses or names from an executable; describe results in terms of the component tested.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6572711927 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1137). Originally posted by [denn0x](https://github.com/denn0x) on 2026-11-24T01:45:24Z. --- ## Status update · 1 December 2026 Superseded by #3641 for the remaining scene output. Later checkpoints in #870 show visible UI and presentation. The current scene geometry blockers are split into #3639 and #3640. The reproduction below is retained for historical reference. ## Problem With `-Render -GpuMirror -ContinueAsserts 5000`, the intro video plays and the process keeps presenting at about 29 fps, but after the video every presented frame is black. The render totals show translated draws but the output stays black. ## Where to start - `X2W_DRAW_DUMP_FRAME` / `X2W_DRAW_DUMP_DIR` dump every render target of one frame. - Check for untranslated pipelines (`req_*` files in the shader cache), null bindings and zero-filled BCPack textures (see the related issues). ## Done when The first draw that produces the black output is identified and either fixed or split into a narrower issue. Context: `docs/startup-runtime.md` (#1135). Do not attach game files, dumps or logs that contain addresses or names from an executable; describe results in terms of the component tested. AI-assisted (Claude Code).
R0Y00 commented 2026-11-24 06:50:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T02:27:18Z.


Two controls are ready for the next black-frame comparison. Stream pipeline commits through 8f8d729 draw a real triangle on WARP and RTX 4060 Laptop. Swapping red and green shaders changes exactly the 16 covered pixels in a 32-pixel target. PR #1172 fixes the per-draw capture itself. Its previous quarter-scale sampler could report an all-black snapshot even with a bright pixel, and 30 presents were used in lieu of a submission fence.

For a retest of the three-draw frame, please keep the same heap setup and input timing, and report the translated/skipped status of each draw, its pipeline key (an opaque hash is sufficient), the target format, and the first fence-completed full-resolution target with nonzero RGB. A skipped draw has no after-draw capture. Please distinguish it from a recorded black target. Aggregate results are enough. A stream translation alone has not established the cause of the black window.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7120159313 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1137#issuecomment-7120159313). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T02:27:18Z. --- Two controls are ready for the next black-frame comparison. Stream pipeline commits through 8f8d729 draw a real triangle on WARP and RTX 4060 Laptop. Swapping red and green shaders changes exactly the 16 covered pixels in a 32-pixel target. PR #1172 fixes the per-draw capture itself. Its previous quarter-scale sampler could report an all-black snapshot even with a bright pixel, and 30 presents were used in lieu of a submission fence. For a retest of the three-draw frame, please keep the same heap setup and input timing, and report the translated/skipped status of each draw, its pipeline key (an opaque hash is sufficient), the target format, and the first fence-completed full-resolution target with nonzero RGB. A skipped draw has no after-draw capture. Please distinguish it from a recorded black target. Aggregate results are enough. A stream translation alone has not established the cause of the black window.
triggered02 commented 2026-11-24 06:50:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-24T06:14:03Z.


Taking this. I have a working offline setup for the title (view-heap clamp, all four captured pipelines translating, 1,869 frames presented at ~28.7 fps before the known null at 88 s), so I can reach the black-frame state and use the existing controls you described.

Plan: dump a frame with X2W_DRAW_DUMP_FRAME/X2W_DRAW_DUMP_DIR, compare the dumps against the render totals (which show ~5,370 translated draws but textures uploaded 0), and pin down whether the black output comes from null/zero-filled texture bindings, an untranslated pipeline, or the draw path being gated before upload. Deliverable per the issue: identify the first draw that produces black output and either fix it or split it into a narrower issue with the measured evidence.

I will not attach game files, dumps, or logs containing executable addresses; results will be described in terms of the components tested.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7123722610 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1137#issuecomment-7123722610). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-24T06:14:03Z. --- Taking this. I have a working offline setup for the title (view-heap clamp, all four captured pipelines translating, 1,869 frames presented at ~28.7 fps before the known null at 88 s), so I can reach the black-frame state and use the existing controls you described. Plan: dump a frame with `X2W_DRAW_DUMP_FRAME`/`X2W_DRAW_DUMP_DIR`, compare the dumps against the render totals (which show ~5,370 translated draws but `textures uploaded 0`), and pin down whether the black output comes from null/zero-filled texture bindings, an untranslated pipeline, or the draw path being gated before upload. Deliverable per the issue: identify the first draw that produces black output and either fix it or split it into a narrower issue with the measured evidence. I will not attach game files, dumps, or logs containing executable addresses; results will be described in terms of the components tested. AI-assisted (Claude Code).
triggered02 commented 2026-11-24 06:50:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-24T06:18:48Z.


Split this into #1268 with the measured cause, which is as far as I can get without changing the draw path's design.

Short version: the black frames are not a presentation problem and not a translation failure. All 8,078 draws take the translated/CPU path (draws 0 (skipped 0)), the CPU readbacks at frame 1500 are uniformly black (2,000 sampled pixels, maximum channel 0), and the reason is that the texture those shaders sample is a 3840x2160 R8G8B8A8 render target that nothing ever writes — the uploader refuses render targets by design, and the draws that should fill it never reach the device.

The structural cause is that pass.pipeline_real is only reachable for slot-86 stream pipelines. The title's graphics pipelines come through device slot 62, which returns wrap(nullptr, pipeline_kind), so pipeline_real is false; the real PSO for a translated pipeline is then built lazily inside the translated branch (pipeline_for at d3d12_draw.inl:619) and never published back. The desktop branch in list_draw is therefore unreachable.

Measurements used (offline run to the known null at 120 s, 3,600 frames, all four pipelines translated and reloaded, GTX 1660 SUPER, Windows 11 build 26200):

draws 0 (skipped 0), translated draws 8078 (not drawn 0), pipelines translated 4 / missing 0,
null bindings 0, textures uploaded 0 (0 KiB, unreadable 0)
x2w-draw texture not uploaded 0000...: 3840x2160 format 28 flags 0x1 dim 3 title memory ...

#1268 has the line references and two possible directions (publish the real PSO so the desktop branch runs, or produce the target contents on the CPU path before they are sampled). Both your controls from the earlier comment still apply; I have not changed either shader or the stream path.

I have not attached dumps or logs — the numbers above are described in terms of the components tested.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7123803996 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1137#issuecomment-7123803996). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-24T06:18:48Z. --- Split this into #1268 with the measured cause, which is as far as I can get without changing the draw path's design. Short version: the black frames are not a presentation problem and not a translation failure. All 8,078 draws take the translated/CPU path (`draws 0 (skipped 0)`), the CPU readbacks at frame 1500 are uniformly black (2,000 sampled pixels, maximum channel 0), and the reason is that the texture those shaders sample is a 3840x2160 R8G8B8A8 **render target** that nothing ever writes — the uploader refuses render targets by design, and the draws that should fill it never reach the device. The structural cause is that `pass.pipeline_real` is only reachable for slot-86 stream pipelines. The title's graphics pipelines come through device slot 62, which returns `wrap(nullptr, pipeline_kind)`, so `pipeline_real` is false; the real PSO for a translated pipeline is then built lazily *inside* the translated branch (`pipeline_for` at `d3d12_draw.inl:619`) and never published back. The desktop branch in `list_draw` is therefore unreachable. Measurements used (offline run to the known null at 120 s, 3,600 frames, all four pipelines translated and reloaded, GTX 1660 SUPER, Windows 11 build 26200): ``` draws 0 (skipped 0), translated draws 8078 (not drawn 0), pipelines translated 4 / missing 0, null bindings 0, textures uploaded 0 (0 KiB, unreadable 0) x2w-draw texture not uploaded 0000...: 3840x2160 format 28 flags 0x1 dim 3 title memory ... ``` #1268 has the line references and two possible directions (publish the real PSO so the desktop branch runs, or produce the target contents on the CPU path before they are sampled). Both your controls from the earlier comment still apply; I have not changed either shader or the stream path. I have not attached dumps or logs — the numbers above are described in terms of the components tested.
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
R0Y00/Xbox2Windows#1130
No description provided.