mirror of
https://github.com/readmet3xt-lab/foxhound.git
synced 2026-12-06 09:08:37 +00:00
This release is named 0.8.3.5. As with 0.8.3.3, the crates keep three parts (0.8.3) and the launcher carries the release's four; the readmes and docs say 0.8.3.5 where they said 0.8.4. Only the program's own crates change in the lock file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
202 lines
19 KiB
Markdown
202 lines
19 KiB
Markdown
# Commands and debugging
|
|
|
|
The `victory` command line, its logging, and the switches of the diagnostics build. Taken from the README
|
|
of fxceless/victory-fork and upstream VIctory, whose descriptions of their own status are left out here.
|
|
|
|
## Getting started without the launcher
|
|
|
|
Requirements: Windows 10/11 x64, a CPU with AVX2, a Direct3D 12 GPU with shader model 6.6 and mesh shaders, Rust
|
|
(pinned in `rust-toolchain.toml`; rustup fetches it) and the MSVC C++ build tools ("Desktop development with C++").
|
|
|
|
A program needs several GiB of available Windows commit at startup. Check **Committed** under **Task Manager →
|
|
Performance → Memory**. If `crashes.log` reports Windows error 1455, close other applications or let the page
|
|
file grow, then retry.
|
|
|
|
```powershell
|
|
cargo xtask install-hooks # asset-policy check on every commit
|
|
copy victory.example.toml victory.toml # then set your paths (outside the repo)
|
|
cargo test --workspace # needs no game data
|
|
cargo run -p victory -- config # check your paths
|
|
cargo build --release -p victory
|
|
target\release\victory.exe run <the program's folder or .exe> --execute
|
|
```
|
|
|
|
Saves, settings and `crashes.log` are kept under the data folder (default `%LOCALAPPDATA%\victory\data`), derived
|
|
data under the cache folder.
|
|
|
|
`VICTORY_WINDOW_MAX=1920x1080` limits the program's top-level window to that bounding box: smaller windows keep
|
|
their size, larger ones keep their proportions, and the monitor's work area still limits them. It scales the
|
|
displayed image; it does not change the console render resolution or the swap-chain buffers.
|
|
|
|
With no gamepad connected the keyboard is a pad while the program's window has focus (the launcher's "Controls"
|
|
sets keys and mouse):
|
|
|
|
| Keys | Pad |
|
|
|------|-----|
|
|
| W A S D / I J K L | left / right stick |
|
|
| arrows | D-pad |
|
|
| Enter, Backspace, X, Y | A, B, X, Y |
|
|
| Q / E, Z / C | shoulders, triggers |
|
|
| F / H | stick clicks |
|
|
| Esc, Tab | Menu, View |
|
|
|
|
## Commands
|
|
|
|
```
|
|
victory inspect <exe|dll> [--imports] [--exports]
|
|
victory census [paths...] [--missing] [--strict]
|
|
victory lib-exports <import.lib> [--list]
|
|
victory shader-info [paths...] [--verbose] [--disasm]
|
|
victory translate [paths...] [--validate] [--pipelines] [--list] [--jobs N]
|
|
victory run <exe> [--execute] [--unimplemented trap|zero] [--strict]
|
|
[--console series-x|series-s] [-- <program arguments>]
|
|
victory caches [--delete] [--older | --start-over [--everything]]
|
|
victory warm [--jobs N] [--limit N] [--again] [--used]
|
|
victory title-profile status <exe>
|
|
victory title-profile install <profile.toml> <exe>
|
|
victory title-profile pipelines <out>
|
|
victory upscaler-check [--device] [--present]
|
|
victory config
|
|
```
|
|
|
|
- `caches` lists the cache folders that other builds of foxhound made. `--delete` removes them. The folders of builds
|
|
older than the translator stamp, which 0.8.2 still reads, are only counted (an `older` line) and are removed
|
|
only with `--older` too.
|
|
- `caches --start-over` lists what the preparation made for this build instead: its translated shaders and the
|
|
pipelines compiled from the record of the program's pipelines (the host pipeline library and the lists of those
|
|
made, failed and slow). With `--delete` they go, and the next preparation translates and compiles them all again;
|
|
the record itself is kept. `--everything` also takes the record, every build's translated shaders and the patched
|
|
images: the next start is a first start. Only names the layer writes are taken, never the data folder (saves) or
|
|
the crash journal. The launcher's **Caches…** button (All settings, Folders) offers these as "Clear old builds",
|
|
"Prepare again" and "Start fresh". The play script keeps its own stamp, `%LOCALAPPDATA%\victory\prepared-*.txt`:
|
|
delete it too after `--start-over`, so that the script translates again.
|
|
- `warm` compiles the record's pipelines ahead in child processes, those that runs drew with first. Before that it
|
|
adds the entries of the title profile's pipeline list that the record lacks (`VICTORY_PIPELINE_LIST=<file>` in
|
|
its place; see [title-profile-format.md](title-profile-format.md)). `title-profile pipelines <out>` writes such a
|
|
list from the record.
|
|
- `title-profile status` prints one line, `PROFILE loaded|not-loaded|refused`, with the folder, the patch groups,
|
|
missing tables, the roles covered, the BCPack table file and any unused copies; the launcher reads this line.
|
|
`install` checks a chosen `profile.toml` (and the table files beside it, renamed ones too) against the executable
|
|
and installs it under `%LOCALAPPDATA%\foxhound\profiles`.
|
|
|
|
Logging: `VICTORY_LOG=victory_loader=trace,info` (a release build logs info and above). Whatever the filter, the run
|
|
prints its version, commit and title-profile state on stderr.
|
|
|
|
### Windows shader-test validator
|
|
|
|
The shader tests use `dxil.dll` to validate Shader Model 6.6 containers. An older Windows SDK validator can load
|
|
but reject them with `Unknown shader model 'ps_6_6'`. Then use a current x64 validator from
|
|
[Microsoft's DirectX Shader Compiler releases](https://github.com/microsoft/DirectXShaderCompiler/releases) or a
|
|
current Windows SDK, and set its path for the test session:
|
|
|
|
```powershell
|
|
$env:VICTORY_DXIL = 'C:\tools\dxc\bin\x64\dxil.dll'
|
|
cargo test -p victory-shader --lib --locked -- --test-threads=1
|
|
```
|
|
|
|
Without this override the newest installed Windows SDK's `bin/<version>/x64/dxil.dll` is used, then the DLL search
|
|
path. It is a test dependency only; translated shaders do not need it at run time.
|
|
|
|
## Debugging
|
|
|
|
A release build has few debugging aids (device-removed data, below, is one). Build the rest in with
|
|
|
|
```powershell
|
|
cargo build --profile diag -p victory --features diagnostics # target\diag\victory.exe
|
|
```
|
|
|
|
The on/off switches below (`...=1`) are off when unset or set to `0`.
|
|
|
|
| Variable | Effect |
|
|
|----------|--------|
|
|
| `VICTORY_LOG=<target>=debug,...` | debug and trace output |
|
|
| `VICTORY_STACKS=20,60` | every thread's stack at those seconds |
|
|
| `VICTORY_WATCH=<rva>,...` | logs a u32 of the program's memory when it changes |
|
|
| `VICTORY_POKE=<rva>:<byte>,...` | writes a byte of the program's memory twice a second |
|
|
| `VICTORY_KEYS=30:Enter,35:X` | presses keys at those seconds, focus or not |
|
|
| `VICTORY_CRASH_SAVE=<rva>:<len>,...` | saves the program's memory to the cache folder on a crash |
|
|
| `VICTORY_CAPTURE=<dir>` | saves presented frames (powers of two, or `VICTORY_CAPTURE_FRAMES=<list>`) |
|
|
| `VICTORY_DUMP_TARGETS=1` | with the two above, saves every render target of those frames |
|
|
| `VICTORY_D3D12_DEBUG=1` | host debug layer |
|
|
| `VICTORY_D3D12_GBV=1` | with the above, GPU-based validation (bad descriptor use reported, not faulted; slow) |
|
|
| `VICTORY_D3D12_DRED=0\|faults\|light\|1` | device-removed data. `faults`, the default in every build: the address a removed device faulted on, placed among the layer's memory (a removal without a page fault is said to be a hang or a reset). `light`: breadcrumbs too, the commands in flight, also in release builds. `1`: everything in a diagnostics build (markers, object names, the memory book); in a release build the same as `faults`. `0`: off. A level asked for by name also names the layer's objects, which costs a little at each creation |
|
|
| `VICTORY_KEPT_CENSUS=1` | the kept-slot census in the slots line about once a minute: which view slots show a kept texture and of what kind (a lock and a lookup of 65,536 slots each time; off, the line still gives the slots made null and the journal's size) |
|
|
| `VICTORY_COPY_CHANGED=1` | of what the write watch copies, the bytes in 64-byte lines that really changed, beside the bytes copied |
|
|
| `VICTORY_PIPELINE_WAIT_MS=24` | the per-frame wait for background pipeline creation, shared by every thread (default 500 ms, as in 0.8.2; 0.8.3 had 100); past it a draw is omitted until its pipeline is ready |
|
|
| `VICTORY_PIPELINE_WAIT_ALL=1` | every draw waits for its pipeline up to `VICTORY_SCREEN_WAIT_MS` a frame instead of being omitted past the budget above (off; on by default in 0.8.3, where a cold cache held frames for seconds) |
|
|
| `VICTORY_SCREEN_WAIT_MS=10000` | the per-frame wait for passes over the screen (lighting fills the title draws once); 0: as other draws |
|
|
| `VICTORY_COMPUTE_WAIT_MS=10000` | the per-frame wait for compute pipelines that run once (first-scene producers, the first 180 frames of the world); others wait at most 400 ms a frame; 0: as other draws |
|
|
| `VICTORY_PIPELINE_FRAME_CAP_MS=10000` | all pipeline waits of one frame together, over every budget above; 0: no cap. A line says when a frame was held 5 s and 15 s |
|
|
| `VICTORY_PIPELINE_REWAIT=1` | a pipeline whose wait ran out is waited for again in later frames (off: its draws are omitted until it is made, so one slow pipeline cannot hold frame after frame) |
|
|
| `VICTORY_FACE_SHAPES_WAIT_MS=10000` | how long the faces' blend-shape pipelines are waited for at their first use |
|
|
| `VICTORY_PIPELINE_JOURNAL=1` | notes each pipeline while the driver makes it; one whose making ended the process is named at the next start and refused from then on (`crashed.txt` in the cache's pipeline folder; delete its line to try it again) |
|
|
| `VICTORY_SKIP_PIPELINES=<hash>,...` | omit draws and dispatches, indirect ones too, whose pipeline contains a listed 16-digit shader hash |
|
|
| `VICTORY_GPU_TIMING=1` | each list of a submission run and timed on its own; slow lists logged with their slowest commands |
|
|
| `VICTORY_D3D12_WARP=1` | host device on the software adapter (slow; cannot reset the driver) |
|
|
| `VICTORY_SHADER_LOOP_LIMIT=<n>` | translated shader loops stop after `n` iterations per lane instead of 2^20 (own shader cache entries) |
|
|
| `VICTORY_AUDIO_CAPTURE=<file.wav>` | records what the program plays (our process only) |
|
|
| `VICTORY_XMA_DUMP=<dir>` | saves the first 32 XMA voices' context and input |
|
|
|
|
## Switches added or changed in 0.8.3 and 0.8.3.5
|
|
|
|
The README's table has the switches most players meet. These are the others that 0.8.3 or 0.8.3.5 added or whose
|
|
default changed. "Translation" marks a switch that changes the translated shaders: the shader cache keys on every
|
|
such switch, so changing one translates again (a few minutes, once).
|
|
|
|
| Switch | Default | What |
|
|
|---|---|---|
|
|
| `VICTORY_LOOP_TRIPS` | on | a loop whose trip count the program fixes runs that count, past the stage's iteration cap (translation) |
|
|
| `VICTORY_NULL_VIEW` | on | the words made for an image's descriptor tell a null view from a bound one, as the program's own test expects (translation) |
|
|
| `VICTORY_MEMORY_NEAR` | on | a load by address reuses the copy an earlier load of the same 64 KiB page found; the same bytes are read either way (translation) |
|
|
| `VICTORY_FAULT_NOTES_WAVE` | on | a wave notes each page without a copy once, not each lane (translation) |
|
|
| `VICTORY_WAVE_WIDE_REFUSED` | on | the programs of the profile's `wave_wide_refused` role take the wave-wide form on cards with 32-lane waves; `0`: refused and their dispatches dropped, as before (translation) |
|
|
| `VICTORY_WAVE_WIDE_GENERIC` | off | without a title profile, every stuck wave64 compute program is tried in the wave-wide form first; not tested for lost devices beyond the profile's programs (translation) |
|
|
| `VICTORY_MEET_LOWERING` | off | the programs of the profile's `meet_lowering` role get per-wave meets; acts only on cards with 32-lane waves and with that role (translation) |
|
|
| `VICTORY_NAN_GUARD` | off | colour exports and typed stores turn the NaNs GPUs make into 0 and infinities into +-65504, so one bad pixel does not stay in a blended history (`strict`: every NaN on float targets) (translation) |
|
|
| `VICTORY_HW_RT`, `VICTORY_HW_RT_LIFT`, `VICTORY_HW_RT_CENSUS` | off | hardware ray tracing: the card's own structures (`HW_RT=1`, needs a card with the ray-tracing tier); `HW_RT_LIFT=shadows` lifts the walks of the profile's `shadow_rays` programs to ray queries, and follows the host's decision when the card lacks the tier; `HW_RT_LIFT=report` and `HW_RT_CENSUS=1` only count (translation) |
|
|
| `VICTORY_SHADOW_RAYS_LIT` | off | while no structures are built, the shadow rays of the profile's `shadow_rays` programs are tested as other rays are instead of answering "occluded" (one line a run names them) (translation) |
|
|
| `VICTORY_USER_NODE` | not set | with the structure builder on, an instance or procedural node answers as the hardware does, so the walk handles it; `miss`: a triangle miss, as before (translation) |
|
|
| `VICTORY_STALL_LANES` | on | the analysis of skips that would stall with no lane left knows values read from inactive lanes and VCC branches; `0`: 0.8.2's (translation) |
|
|
| `VICTORY_CUT_LANE_COUNT` | on | an atomic counts the lanes a loop's limit stops; `0`: no count (translation) |
|
|
| `VICTORY_TYPED_STORE_BASE` | on | a full-width typed store at a scalar or built offset runs where that offset is 0 at run time; `0`: refused, as in 0.8.3 (translation) |
|
|
| `VICTORY_AMD_DIMS_APART`, `VICTORY_AMD_FOLD_BITS` | on, AMD cards only | size queries kept apart, and no folding of bit counts and reversals of constants: AMD's compiler mishandled both; tested on no AMD card (translation) |
|
|
| `VICTORY_RT_WALKS` | off | `1`: compute programs whose code tests structure nodes run even while no structure builder runs and the profile names no hit-resolve programs (left out by default then: their walks find nothing) |
|
|
| `VICTORY_AMBIENT_SHAPE` | off | `1`: without the profile's names, the light estimate looks for its passes by the places their tables bind (untrusted: checked against the profile's names it found other programs) |
|
|
| `VICTORY_AMBIENT_FILTER` | `1` | the probe filter of the light estimate (magenta and deep blue); `2`: also neon green, 0.8.3's default |
|
|
| `VICTORY_BCPACK_NEUTRAL` | on | without a BCPack table file, packed textures are filled with flat blocks of their kind; `0`: the requests fail, as before |
|
|
| `VICTORY_PROFILE_ANY_EXE` | on | a title profile made for another copy of the executable keeps its roles and tables and drops its patch groups; `0`: refused |
|
|
| `VICTORY_LAUNCHER_DIR` | set by the launcher | the launcher's folder, one of the places a title profile and table file are looked for |
|
|
| `VICTORY_INTERFACE_CANVAS` | on with a profile that has the group | at a 16:9 output under 3840x2160 the interface keeps the console's 4K canvas (docs/title-profile-format.md); `0`: laid out at the output's size, larger |
|
|
| `VICTORY_DISPLAY_MODE` | the output | `WxH`: the display mode reported to the program; `monitor`: the primary display's mode in pixels |
|
|
| `VICTORY_DPI_AWARE` | on with the fullscreen display | per-monitor DPI awareness, so the window and the swap chain use the screen's own pixels; `0`: off; `1`: for every display |
|
|
| `VICTORY_STREAMLINE_NO_ROUTE` | off | `1`: Streamline and AMD's libraries are loaded on Series X without the profile's upscaler route |
|
|
| `VICTORY_UPSCALE_FALLBACK` | on | a failed DLSS or FSR upscaling records a plain stretch of the scene; `0`: the output keeps the frame before, as in 0.8.3 |
|
|
| `VICTORY_FRAMEGEN_MIN_FPS` | off | `30`: frame generation runs only while 90 % of frames take a 29th of a second or less |
|
|
| `VICTORY_FPS_OVERLAY`, `VICTORY_FPS_SCALE` | off, by height | the frame-rate counter (launcher: "Frame-rate counter"; it goes to the top right while the statistics panel is shown); its scale, 1 up to 1440p and 2 from 2160p, or `1` to `4` |
|
|
| `VICTORY_KEEP_SHOWN` | `1` | `2`: a slot that gets a new texture shows the old one until the new one is up, only when both are read the same way (format family and component mapping) and neither is a render or depth target; 0.8.3's default, without those checks |
|
|
| `VICTORY_NEUTRAL_ALPHA` | `128` | the alpha of the neutral stand-in shown before a texture is up; `127` is 0.8.3's |
|
|
| `VICTORY_QUEUE_SNAPSHOT` | off | `1`: the texture pass works through a copy of its queue (0.8.3's default) |
|
|
| `VICTORY_TEXTURE_STAGE_MS` | `16` | the texture pass's time a frame; 0.8.3 had 24, which the 8 ms cap of `VICTORY_TEXSPK_PASS_MS` hid in most frames |
|
|
| `VICTORY_TEXTURE_TURN_MAX` | `8` | guarded textures are hashed every this many frames at most; `64` is 0.8.3's back-off |
|
|
| `VICTORY_FIRST_USE_ROOM` | on for budgets under 10 GB | a texture first used by a list goes to free space in the texture blocks or to the PC's memory; `1`: every card; `0`: off |
|
|
| `VICTORY_SMALL_WHEN_FULL` | off | `1`: with no room left on the card, textures show their small levels instead of waiting (with "Detail on demand") |
|
|
| `VICTORY_PRESSURE_RELATIVE` | off | `1`: memory pressure judged by the PC's own size, with floors of 1.5 GiB to enter and 2.5 GiB to leave; measured on a 32 GB PC only |
|
|
| `VICTORY_LOOSE_READ` | on with fine windows | the windows' table is read without the shared lock where the windows are finer than 4 MB (`WINDOW_KB`, `WINDOW_TAILS`); `0`: off |
|
|
| `VICTORY_PIPELINE_*`, `VICTORY_SCREEN_WAIT_MS`, `VICTORY_COMPUTE_WAIT_MS`, `VICTORY_FACE_SHAPES_WAIT_MS` | see *Debugging* | the pipeline waits; 0.8.3.5 has 0.8.2's 500 ms budget, and `WAIT_ALL` is off |
|
|
| `VICTORY_THIN_THREADS` | 8, fewer where there are fewer logical processors | the list translator threads; 0.8.3 had 6 or 4 below 16 logical processors |
|
|
| `VICTORY_ASK_PRIORITY`, `VICTORY_XMA_PRIORITY` | the helpers' priority | `2`: the write-watch asking thread, or the audio decoding thread, at the highest priority (0.8.3 had it for the asking thread) |
|
|
| `VICTORY_ASK_NEAR` | 8 MiB | write-watch askings join ranges up to this far apart; `1`: 512 KiB, 0.8.3's |
|
|
| `VICTORY_GUARD_REST` | 3 ms | how long a block the program just wrote rests before it is guarded again, in µs (`500`: 0.8.3's) |
|
|
| `VICTORY_GPU_RO_SKIP` | on | acts only on copies in the card's memory that keep a twin to compare with, and only with `VICTORY_SOFT_VIEWS` |
|
|
| `VICTORY_PLACED_WAIT` | `narrow` | a copy at a placed resource's place waits only for the flights that touch its bytes, and the heaps' sync is redone only when that wait stood; `refuse` and `0` are the older forms, kept for comparison |
|
|
| `VICTORY_DECOMMIT_NOTED` | off | `1`: a decommit is noted for the next write-watch asking, also while none stands |
|
|
| `VICTORY_PAGE_REUSE` | on | once the program's 21 bits of page numbers are used up, freed numbers are given again; `0`: never |
|
|
| `VICTORY_VIEW_SPLIT_ADAPTIVE` | off | `1`: the line between the program's view slots and the per-draw tables moves with what the program uses; it no longer takes the tables' slots |
|
|
| `VICTORY_HID_BESIDE_XINPUT` | off | `1`: Sony pads are read over raw HID while an XInput pad is connected too; off, they are not, since a remapper (Steam Input, DS4Windows) shows the same pad as both |
|
|
| `VICTORY_DSP_PASS` | off | `1`: a mono convolution with a short response that is not computed passes its input through, louder, where it was silent (a phone speaker's voice); stereo ones are never passed |
|
|
| `VICTORY_PATCH_CLWB` | on | CLWB instructions are replaced in place where they can be; the others, and all with `0`, are run by the crash handler, a whole write-back loop at once |
|
|
| `VICTORY_BCPACK_REQUIRE_TABLES` | off | tests only: the BCPack tests fail when `VICTORY_BCPACK_TABLES` names no table file |
|
|
|
|
Every build appends crashes and host GPU failures to `crashes.log` in the program's data folder. Captures and the
|
|
files these switches write hold data from the game's files: keep them on your PC and never attach them to an issue.
|