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

Closed
nicolasabosch wants to merge 1 commit from upstream-pr/4677 into main
nicolasabosch commented 2026-10-12 18:46:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by nicolasabosch on 2026-10-12T18:46:54Z.


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

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4833632828 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4677). Originally posted by [nicolasabosch](https://github.com/nicolasabosch) on 2026-10-12T18:46:54Z. --- ### 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 - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
adriadam10 commented 2026-10-12 19:01:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-12T19:01:56Z.


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

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6130728585 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4677#issuecomment-6130728585). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-12T19:01:56Z. --- 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).
nicolasabosch commented 2026-10-12 19:53:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by nicolasabosch on 2026-10-12T19:53:10Z.


Closing: docs/user/COMPATIBILITY.md was removed in #4686. The report is posted in the DOOM Game bring-up discussion instead: https://github.com/boykopovar/AnyPS5/discussions/2475#discussioncomment-18887166

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6131541279 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4677#issuecomment-6131541279). Originally posted by [nicolasabosch](https://github.com/nicolasabosch) on 2026-10-12T19:53:10Z. --- Closing: `docs/user/COMPATIBILITY.md` was removed in #4686. The report is posted in the DOOM Game bring-up discussion instead: https://github.com/boykopovar/AnyPS5/discussions/2475#discussioncomment-18887166

Pull request closed

Sign in to join this conversation.
No reviewers
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
boykopovar/AnyPS5!4677
No description provided.