Skip to content

docs(compatibility): record that the DOOM cold-start CPU scaler fallback is fixed - #4677

Closed
nicolasabosch wants to merge 1 commit into
boykopovar:mainfrom
nicolasabosch:docs/doom-cold-start-fallback
Closed

nicolasabosch wants to merge 1 commit into
boykopovar:mainfrom
nicolasabosch:docs/doom-cold-start-fallback

Conversation

@nicolasabosch

Copy link
Copy Markdown
Contributor

What

Updates the DOOM Shareware homebrew (PPSA99666) note about the cold-start CPU scaler fallback in docs/user/COMPATIBILITY.md. The note described the fallback as current behaviour; it no longer reproduces on main.

The fallback came from the title's 500 ms fence timeout (FENCE_TIMEOUT_US in its src/ps5/gpu.c): frame 1 was still compiling the unregistered presentation kernel while the title had already submitted frame 2 and started waiting for frame 1. Since #1745 a submission that carries a flip waits until the worker has reached the previous flip, so the second submission blocks during that compile and the timeout does not start early. The reports of the fallback on NVIDIA in #690 and discussion #2475 are on bases older than #1745 (d70b8998, 2edaf7f4).

The entry keeps the earlier measurement, names #1745 and records the result on current main. Docs only.

Not covered: #4562 reports the fallback on Linux with an Intel HD 520 on a main that already has #1745, with warm caches too. That is not reproduced or explained here.

Tested

Windows 11, NVIDIA RTX 4070 Laptop GPU (driver 32.0.16.1692), MinGW-w64 GCC, Release. DOOM Shareware PPSA99666 content version 01.001.000, relinked with --windows --to-intel --registry.

main 59a2167a9 without extra PRs, each run with an empty ANYPS5_SHADER_CACHE_DIR:

  • 4 of 4 runs stayed on AGC compute presentation (0 hits, 1 misses, 1 writes in the shader disk cache, no gpu: frame 1 never completed).
  • With APS5_TRACE_GPU=1 on the first run, serial 1 executed from 59.4 ms to 651.9 ms and the title's second submit was accepted at 651.9 ms.
  • The NVIDIA driver's own shader cache was not cleared, so only the first of the four runs was cold for the driver.

To separate the effect of #1745 from the driver's cache, a local build with two temporary changes (not in this pull request): a sleep in the at-dispatch preparation of the unregistered compute shader, and a switch that skips holdFlipBehindWorker.

Flip hold Simulated compile delay Runs CPU scaler fallback
skipped 1.5 s 3 3 (gpu: frame 1 never completed)
as on main 1.5 s 3 0
skipped 5 s 3 3 (gpu: frame 1 never completed)
as on main 5 s 3 0

No gameplay, audio or frame rate was re-tested for this change. python tools/check_conventions.py --base origin/main with this title and body passes.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

…ack is fixed

The fallback no longer reproduces on main since boykopovar#1745 holds a flip
submission until the worker has reached the previous flip. Keep the
earlier measurement and record the result on current main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adriadam10

Copy link
Copy Markdown
Collaborator

Heads up: #4686 removes docs/user/COMPATIBILITY.md (existing reports archived in discussion #2475). This PR will conflict after it merges; please post this report in the title's Game bring-up discussion instead (DOOM: #2475).

@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed docs labels Oct 12, 2026
@nicolasabosch

Copy link
Copy Markdown
Contributor Author

Closing: docs/user/COMPATIBILITY.md was removed in #4686. The report is posted in the DOOM Game bring-up discussion instead: #2475 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs needs rebase Conflicts with main, rebase needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants