docs: an inventory of the switches read by non-test code but documented nowhere (59, or 53 after #486) #582
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T10:06:07Z.
Measured by scanning the tree, not by memory:
VICTORY_*names read by non-test code (excluding*_tests.rs/tests.rs) that appear in none ofdocs/,README.md,victory.example.tomlortools/**/*.sh. 165 names are read in non-test code; 59 are undocumented. Six of those are already covered by the open #486, which leaves 53.I am not claiming this list is all user-facing — the buckets below are my reading of the code at each site, and the maintainer should delete or relabel whatever does not belong. Per
AGENTS.md, "new diagnostics are off by default, behind aVICTORY_*environment variable, and documented"; this is the backlog of that rule, so it can be split into per-area issues or picked off one by one.Looks user-facing, and a tester would benefit (the valuable half)
VICTORY_AUDIO_CAPTURE/_OFapps/victory/src/main.rs:204,hle/src/modules/audio/capture.rs:49VICTORY_CAPTURE,_FRAMES,_WORLDgpu/src/capture.rs:2,19,20VICTORY_CRASH_BREAKPOINTS,VICTORY_CRASH_SAVE,VICTORY_SKIP_TITLE_INT3loader/src/crash.rs:12,56,apps/victory/src/run.rs:271int3VICTORY_D3D12_DEBUG,_DRED,_GBV,_WARPgpu/src/host.rs:85,876,190,223VICTORY_LOGcore/src/logging.rs:3VICTORY_WATCH,VICTORY_POKE,VICTORY_TRAP_LOGapps/victory/src/run.rs:290,318,loader/src/thunks.rs:125VICTORY_SKIP_CPU_CHECK,VICTORY_SKIP_PIPELINESapps/victory/src/run.rs:8,gpu/src/pipeline.rs:537VICTORY_NARROW_WAVES,VICTORY_WARP,VICTORY_PC_DXC,VICTORY_DEBUG_ELSEWHEREgpu/src/shader_cache.rs:244,shader/src/emit/{host.rs:126,mod.rs:882,862}VICTORY_XMA_STREAMS,VICTORY_XMA_REFERENCEformats/src/xma.rs:1772,1818VICTORY_COPIES_IN_VIDEO_MEMORY,VICTORY_COPY_MODEgpu/src/host.rs:3529,gpu/src/copystat.rs:3VICTORY_WINDOW_MAXhle/src/modules/lifecycle.rs:198VICTORY_PREBUILD_KEYSapps/victory/src/prebuild.rs:175VICTORY_EMIT_DUMPapps/victory/src/translate.rs:163Already covered by #486 (listed for completeness)
VICTORY_DSTORAGE_LOG,VICTORY_FRAME_DUMP,VICTORY_DUMP_WRITERS,VICTORY_PIPELINE_LOG,VICTORY_TRACE_SHADERS,VICTORY_GPU_TIMING.Internal plumbing between our own processes — arguably should stay undocumented, but named
VICTORY_AUDIO_CAPTURE_OF,VICTORY_EXIT_CHILD,VICTORY_HOST_LOCK_CHILD,VICTORY_RELAUNCHED_FROM,VICTORY_SAVE_CHILD,VICTORY_SAVE_OP,VICTORY_SAVE_STOP,VICTORY_SHADER_SOURCE_HASH,VICTORY_TEST_ENV_5E2B,VICTORY_TEST_CLOCK_RATE,VICTORY_TEST_CRASH_LOG.Test and example harness — probably fine undocumented
VICTORY_BCPACK_CASES,VICTORY_BCPACK_TABLES,VICTORY_CASE_TEST,VICTORY_CONTAINER,VICTORY_DXIL,VICTORY_PAIRS,VICTORY_PS,VICTORY_VS,VICTORY_RECT,VICTORY_WAVE32,VICTORY_REF_PS,VICTORY_REF_VS,VICTORY_UCRT_MISSING,VICTORY_UCRT_T,VICTORY_WRITE_DXIL.Also found while measuring, and a different problem
docs/native-host.mdnames two switches nothing reads any more:VICTORY_DEBUG_PS_INPUTS(line 826, where the docs already say "not wired after the merge") andVICTORY_TRACE_DISPATCH_INPUTS(line 1735, "a local diagnostic"). Worth deciding whether they are history to keep or stale text to drop.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T10:07:06Z.
/claim
Picking off the user-facing piece: I'll recompute the undocumented VICTORY_* set on current main, then document the clearly user-facing ones (log level, audio capture, frame capture) in docs/native-host.md, verifying each at its read site. One PR.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T10:07:15Z.
Claimed by @AnastasisKon. Open a draft pull request with
Refs #582in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T10:32:11Z.
Recounted, and my original figure was wrong in two ways; both are corrected here.
The count. It said 59, or 53 after #486. Measured again against
docs/*.md,README.mdandvictory.example.toml(which I had left out, and which documentsVICTORY_CONFIG,VICTORY_GAME_DIR,VICTORY_CACHE_DIR,VICTORY_DATA_DIR,VICTORY_FIDELITYFX_DIRandVICTORY_TEST_TITLES), and counting only names in non-test, non-example Rust: 43 undocumented before this week's work, 34 now.What landed, each as its own change:
VICTORY_SKIP_TITLE_INT3,VICTORY_CRASH_BREAKPOINTS,VICTORY_CRASH_SAVE(which I have since extended to the native host).VICTORY_LOG, plus a new subsection, "The D3D12 path's own switches", forVICTORY_CAPTURE,VICTORY_CAPTURE_FRAMES,VICTORY_CAPTURE_WORLD,VICTORY_WINDOW_MAX,VICTORY_COPIES_IN_VIDEO_MEMORY,VICTORY_COPY_MODEandVICTORY_AUDIO_CAPTURE(withVICTORY_AUDIO_CAPTURE_OF, which the recorder sets in its own child, not the user) — each naming the native host's equivalent, so a switch that does nothing on macOS says so.What is left (34) falls into three groups, and only the first is worth a page of its own:
VICTORY_DXIL,VICTORY_PC_DXC,VICTORY_WARP,VICTORY_REF_VS,VICTORY_REF_PS,VICTORY_DEBUG_ELSEWHERE,VICTORY_EMIT_DUMP,VICTORY_PAIRS,VICTORY_PREBUILD_KEYS,VICTORY_SHADER_SOURCE_HASH;VICTORY_D3D12_DEBUG,VICTORY_D3D12_DRED,VICTORY_D3D12_GBV,VICTORY_D3D12_WARP;VICTORY_TEST_*,VICTORY_CASE_TEST,VICTORY_EXIT_CHILD,VICTORY_HOST_LOCK_CHILD,VICTORY_SAVE_*,VICTORY_UCRT_*,VICTORY_RELAUNCHED_FROM,VICTORY_BCPACK_*,VICTORY_XMA_*,VICTORY_TRAP_LOG,VICTORY_NARROW_WAVES,VICTORY_POKE,VICTORY_SKIP_CPU_CHECK,VICTORY_WRITE_DXIL.Two stale names remain in
docs/native-host.mdas reported:VICTORY_DEBUG_PS_INPUTSandVICTORY_TRACE_DISPATCH_INPUTSare read nowhere in the tree.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T10:32:33Z.
Correction to the last paragraph, after reading both places:
VICTORY_DEBUG_PS_INPUTSis marked "(not wired after the merge)" at native-host.md:912 andVICTORY_TRACE_DISPATCH_INPUTSis marked "(a local diagnostic)" at :1912. They are history notes that say what they are, not stale documentation, so neither needs changing. My original wording implied a defect; it does not exist.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T12:37:22Z.
/release - done: PR #583 documents
VICTORY_LOGand the cache-keyed translation switches and closes out the inventory. In the merged fork doc the inventory now lists only the names the file genuinely does not document (VICTORY_WATCH,VICTORY_POKE,VICTORY_SKIP_CPU_CHECK,VICTORY_D3D12_*,VICTORY_WAVE32), because the rest are covered elsewhere there.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T12:37:34Z.
Released. This issue is free to claim.