docs: document VICTORY_LOG and the cache-keyed translation switches; close out the #582 inventory (#582) #583

Open
AnastasisKon wants to merge 1 commit from upstream-pr/583 into main
AnastasisKon commented 2026-11-28 10:11:31 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T10:11:31Z.


What this changes

Refs #582 (picked off the user-facing piece, one PR). I recomputed the undocumented set on current main (52 names read in non-test code, absent from docs/README/example toml/tools) and verified each candidate at its read site. docs/native-host.md's diagnostics section now documents the ones that are live on the native macOS path:

  • VICTORY_LOG=<EnvFilter> — the log filter (falls back to RUST_LOG, then info+); debug/trace only in diagnostics builds (victory-core/src/logging.rs);
  • VICTORY_NARROW_WAVES=0|1 and VICTORY_DEBUG_ELSEWHERE=1 — translator switches, part of the shader cache key (victory-gpu/src/shader_cache.rs, victory-shader/src/emit/mod.rs);

plus a closing note recording that the rest of the inventory is Windows-path-only (cfg(windows): frame/audio capture, watch/poke/crash-save, window max, D3D12 device layer, copy accounting, dxc paths) or tool/test/example scaffolding — each name checked at its read site.

How it was tested

  • cargo xtask policy — pass (404 files ok)
  • cargo test -p victory-shader --lib — pass, incl. every_environment_switch_the_translator_reads_is_keyed (the switch inventory test)
  • docs-only change: no code paths touched; game run not needed

Checklist

  • No game files, game code, disassembly listings or SDK files are included
  • Guesses about undocumented console behaviour — n/a (docs only; cfg gates verified in code)
  • New diagnostics behind a VICTORY_* variable and documented — n/a; this documents existing ones
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:5539069454 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/583). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-28T10:11:31Z. --- ## What this changes Refs #582 (picked off the user-facing piece, one PR). I recomputed the undocumented set on current main (52 names read in non-test code, absent from docs/README/example toml/tools) and verified each candidate at its read site. `docs/native-host.md`'s diagnostics section now documents the ones that are live on the native macOS path: - `VICTORY_LOG=<EnvFilter>` — the log filter (falls back to `RUST_LOG`, then info+); debug/trace only in `diagnostics` builds (`victory-core/src/logging.rs`); - `VICTORY_NARROW_WAVES=0|1` and `VICTORY_DEBUG_ELSEWHERE=1` — translator switches, part of the shader cache key (`victory-gpu/src/shader_cache.rs`, `victory-shader/src/emit/mod.rs`); plus a closing note recording that the rest of the inventory is Windows-path-only (`cfg(windows)`: frame/audio capture, watch/poke/crash-save, window max, D3D12 device layer, copy accounting, dxc paths) or tool/test/example scaffolding — each name checked at its read site. ## How it was tested - [x] `cargo xtask policy` — pass (404 files ok) - [x] `cargo test -p victory-shader --lib` — pass, incl. `every_environment_switch_the_translator_reads_is_keyed` (the switch inventory test) - [x] docs-only change: no code paths touched; game run not needed ## Checklist - [x] No game files, game code, disassembly listings or SDK files are included - [x] Guesses about undocumented console behaviour — n/a (docs only; cfg gates verified in code) - [x] New diagnostics behind a `VICTORY_*` variable and documented — n/a; this documents existing ones
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/583:upstream-pr/583'
git switch 'upstream-pr/583'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/583'
git switch 'upstream-pr/583'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/583'
git switch 'upstream-pr/583'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/583'
git switch 'main'
git merge --squash 'upstream-pr/583'
git switch 'main'
git merge --ff-only 'upstream-pr/583'
git switch 'main'
git merge 'upstream-pr/583'
git push origin 'main'
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
LakshanSivakumar/Native-Victory-macOS!583
No description provided.