Skip to content

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

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

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

Conversation

@SimSalabimse

@SimSalabimse SimSalabimse commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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 #2008 bytecode resume and -TraceCalls.

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

Change

Cold -Render at 06cdc47d presented mean level 0.00/255 with pipelines translated 0 / missing 6 and translated draws 0 (not drawn 54879). The six pipelines wrote req_* requests but never loaded a <key>.txt manifest. Heap-indexed root deferral (#1732) had refuse counts 0 and does not block the translated path.

This PR rebases reviewed #1749 onto current main:

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

Originally authored by @NiiRoZz in #1749. Prefer superseding #1749 after merge.

Verification

Linux pure-Python (this agent), 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
python3 -B tests/startup_inline_sampler_check.py   # passed
python3 -B tests/docs_links_check.py               # passed
python3 -B tests/bidi_controls_check.py            # passed

Not run: Windows PowerShell startup_run_ps1, WARP/hardware GPU fixtures, live title with -Translate (no game files on this agent).

Evidence and follow-up

Synthetic request files only; no game data. After merge, cold runs should use -Render -Translate (docs updated). A warm cache still works without -Translate. Live title mean-level recovery and per-pipeline .fail census remain for a Windows retest on #870.

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.

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>
@SimSalabimse
SimSalabimse marked this pull request as ready for review November 25, 2026 00:55
@R0Y00

R0Y00 commented Nov 25, 2026

Copy link
Copy Markdown
Owner

I merged current main into the reviewed branch and retained both CTest registrations. On Windows the PowerShell 5.1 and 7 launcher tests passed, including watcher cleanup and the surviving-child mutations. The ready-marker watcher, worker-pool retry, translator and scalar arity checks also passed. These are source-built checks; cold title rendering still needs an independent run.

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