Skip to content

startup: translate shader requests during a -Render run (cold-cache black frames) - #1

Merged
SimSalabimse merged 2 commits into
mainfrom
cursor/startup-black-frames-bd69
Nov 25, 2026
Merged

SimSalabimse merged 2 commits into
mainfrom
cursor/startup-black-frames-bd69

Conversation

@SimSalabimse

Copy link
Copy Markdown
Owner

Change

Refs R0Y00#870. Rebases the reviewed work from open #1749 onto current main so a cold -Render startup run can publish pipelines while the title is still running.

Observed gap (user at 06cdc47d): presented surface mean level 0.00/255 with pipelines translated 0 / missing 6, translated draws 0 (not drawn 54879). The six pipelines wrote req_* requests but never loaded a <key>.txt manifest. Heap-indexed root deferral (R0Y00#1732) shows heap-indexed roots deferred 4952 with real-draw refuse counts at 0 — intentional for flagged desktop roots; translated draws use their own root and were not blocked by that path.

Fix:

  • tools/startup/gfx2hlsl.py --watch repeats the pending scan; parallel --pending via X2W_TRANSLATE_JOBS
  • run.ps1 -Translate (with -Render) starts the watcher beside the debugger and tears it down with taskkill /T
  • Keeps current main behaviour: #2008 manifest/bytecode resume and -TraceCalls

Originally authored by @NiiRoZz in R0Y00#1749 (peer-reviewed there). This PR resolves the merge conflicts against current main and adjusts startup_translator / startup_gfx2hlsl_watch for the resume + per-request error path.

Verification

Linux (this agent), Python 3.12, no Windows GPU:

python3 -B tests/startup_gfx2hlsl_watch_check.py   # passed
python3 -B tests/startup_translator_check.py       # 0 failed
python3 -B tests/startup_run_ps1_check.py --text-only  # 0 failed
python3 -B tests/startup_gfx2hlsl_capture_check.py # passed
python3 -B tests/startup_image_sample_l_check.py   # passed
python3 -B tests/startup_image_3d_check.py         # passed
python3 -B tests/startup_image_load_mip_check.py   # passed
python3 -B tests/startup_image_2d_array_check.py   # passed
python3 -B tests/startup_flat_param_check.py       # passed (controls)
python3 -B tests/startup_inline_sampler_check.py   # passed
python3 -B tests/docs_links_check.py               # 18 files, 397 links
python3 -B tests/bidi_controls_check.py            # no bidirectional controls

Not run here: Windows PowerShell execution of startup_run_ps1, WARP/hardware startup_* GPU fixtures, live title with -Translate (no game files).

Evidence and follow-up

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted.

Open in Web Open in Cursor 

Cold -Render runs stay black when pipelines write req_* requests but
never get manifests (pipelines translated 0 / missing N). Add
gfx2hlsl.py --watch and run.ps1 -Translate so translations publish
while the title runs; keep R0Y00#2008 bytecode resume and -TraceCalls.

Rebases reviewed R0Y00#1749 onto current main. Refs R0Y00#870.

Co-authored-by: SimSalabimse <SimSalabimse@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/startup-black-frames-bd69 branch from 18f2f4b to 37aefad Compare November 25, 2026 00:45
@SimSalabimse
SimSalabimse merged commit 6921dcf into main Nov 25, 2026
5 checks passed
R0Y00 pushed a commit that referenced this pull request Nov 25, 2026
R0Y00 pushed a commit that referenced this pull request Nov 25, 2026
cursor Bot pushed a commit that referenced this pull request Nov 26, 2026
…0Y00#2821)

The forced-wave64 column said only "Passed, 64 lanes"; the NVIDIA rows that
report a range carry it, and the AMD rows do not. This adds the measured
32-64 range from a source build at 49f53ae and one evidence link to it,
keeping the existing links together on the same row (same adapter, driver
already cited once).

Refs #1

Co-authored-by: panam <panam@local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants