docs: correct eleven rows of the environment variable reference #12091

Merged
MarcZX10 merged 11 commits from upstream-pr/12091 into main 2026-10-28 13:47:23 +00:00
MarcZX10 commented 2026-10-27 20:16:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T20:16:24Z.


What

Eleven rows of docs/dev/ENVIRONMENT.md did not match the code that reads the variable. One commit per fix:

  • APS5_STORE_AT_LABEL: kind string; StoreAtLabelRequested accepts only 1 and throws otherwise, like APS5_STORE_AT_FLIP.
  • APS5_SRGB_SHADER_DECODE: kind string; only 1 and copy have an effect.
  • APS5_NO_PERF_FRONTEND_PAIR and APS5_NO_PERF_LAYOUT_PAIR: they are read by core/shader/recompiler/Recompiler.cpp, not only by the shader-memory test.
  • APS5_SPIRV_OPT: the production reader is SpirvBackend/src/SpirvOptimizer.cpp, not the test.
  • APS5_TRACE_SKIPS: each distinct skip is already reported once; the variable only adds again lines for repeats.
  • APS5_TRACE_BENCH: only the last 240 intervals are kept (TraceBench::MaximumIntervals).
  • APS5_TIME_SCALE: kind string; the value is parsed with strtod, so the integer kind contradicted the fractional factors the row mentions.
  • APS5_TRACE_TIMERS, APS5_JOB_AFFINITY, APS5_JOB_AFFINITY_MASK, APS5_NO_JOB_AFFINITY and APS5_TRACE_QUERY are compiled under _WIN32 only; the rows now say so.
  • APS5_USB_STORAGE_PASSTHROUGH: volumes the host mounted read-only stay read-only.
  • APS5_TRACE_EVENTS: range 1 through 4,194,304, default 262,144.
  • APS5_SAVEDATA_TRACE: the limit of three applies to each logging site.

Documentation only. APS5_PLAYGO_UNLISTED_CHUNKS has a similar inaccuracy but is left out because #11899 edits that row.

Tested

Documentation only. Each row was checked against its reader on current main. tools/env_reference.py --check (511 names, all documented), tools/check_conventions.py --base upstream/main and git diff --check pass. Windows-only and macOS code paths were read, not run.

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 under Silent stubs in their library's technical debt file
  • 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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5040497858 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12091). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T20:16:24Z. --- ### What Eleven rows of `docs/dev/ENVIRONMENT.md` did not match the code that reads the variable. One commit per fix: - `APS5_STORE_AT_LABEL`: kind `string`; `StoreAtLabelRequested` accepts only `1` and throws otherwise, like `APS5_STORE_AT_FLIP`. - `APS5_SRGB_SHADER_DECODE`: kind `string`; only `1` and `copy` have an effect. - `APS5_NO_PERF_FRONTEND_PAIR` and `APS5_NO_PERF_LAYOUT_PAIR`: they are read by `core/shader/recompiler/Recompiler.cpp`, not only by the shader-memory test. - `APS5_SPIRV_OPT`: the production reader is `SpirvBackend/src/SpirvOptimizer.cpp`, not the test. - `APS5_TRACE_SKIPS`: each distinct skip is already reported once; the variable only adds `again` lines for repeats. - `APS5_TRACE_BENCH`: only the last 240 intervals are kept (`TraceBench::MaximumIntervals`). - `APS5_TIME_SCALE`: kind `string`; the value is parsed with `strtod`, so the integer kind contradicted the fractional factors the row mentions. - `APS5_TRACE_TIMERS`, `APS5_JOB_AFFINITY`, `APS5_JOB_AFFINITY_MASK`, `APS5_NO_JOB_AFFINITY` and `APS5_TRACE_QUERY` are compiled under `_WIN32` only; the rows now say so. - `APS5_USB_STORAGE_PASSTHROUGH`: volumes the host mounted read-only stay read-only. - `APS5_TRACE_EVENTS`: range 1 through 4,194,304, default 262,144. - `APS5_SAVEDATA_TRACE`: the limit of three applies to each logging site. Documentation only. `APS5_PLAYGO_UNLISTED_CHUNKS` has a similar inaccuracy but is left out because #11899 edits that row. ### Tested Documentation only. Each row was checked against its reader on current `main`. `tools/env_reference.py --check` (511 names, all documented), `tools/check_conventions.py --base upstream/main` and `git diff --check` pass. Windows-only and macOS code paths were read, not run. ### 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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
THEMANnt commented 2026-10-28 10:56:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-28T10:56:57Z.

Review: APPROVED


Reviewed c95f8f80e063da08188e19d3847bd3cb4f1514b0 against author merge base d13b3d7c55a433c7a5040076d849dbe59fad4b53 — approve the documentation change.

The environment rows agree with the pinned getenv/parsing sites, including presence switches, strict TRACE_BENCH=1, windowed trace-event capacity, SPIR-V optimizer strings and job-affinity precedence. These are source checks; no performance or host-affinity measurement was repeated.

Validation: checked the submitted Markdown diff, pinned implementation references and relative links; git diff --check passed. This changes documentation only. Title disassembly and console observations were not independently reproduced; no runtime regression result is claimed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5681511686 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12091#pullrequestreview-5681511686). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-10-28T10:56:57Z. **Review:** APPROVED --- Reviewed `c95f8f80e063da08188e19d3847bd3cb4f1514b0` against author merge base `d13b3d7c55a433c7a5040076d849dbe59fad4b53` — approve the documentation change. The environment rows agree with the pinned getenv/parsing sites, including presence switches, strict TRACE_BENCH=1, windowed trace-event capacity, SPIR-V optimizer strings and job-affinity precedence. These are source checks; no performance or host-affinity measurement was repeated. Validation: checked the submitted Markdown diff, pinned implementation references and relative links; `git diff --check` passed. This changes documentation only. Title disassembly and console observations were not independently reproduced; no runtime regression result is claimed.
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!12091
No description provided.