20 Commits

Author SHA1 Message Date
1be0981903 Fix input, loader, cache and smaller faults from the 0.8.3 review
Input and audio:
- Sony pads on raw HID are not read while an XInput pad is connected:
  behind a remapper (Steam Input, DS4Windows) the same pad was read
  twice, so remapped buttons still fired and rumble went twice.
  VICTORY_HID_BESIDE_XINPUT=1 reads both.
- Rumble for the one pad goes to the slots the last poll found, instead
  of asking every slot again under the input lock.
- VICTORY_DSP_PASS passes through mono convolutions only; stereo
  reverbs were passed as a five times louder dry copy.

Loader: a CLWB that cannot be replaced in place (it crosses a 16-byte
boundary, or VICTORY_PATCH_CLWB=0) goes to the crash module's handler,
which runs a whole write-back loop in one exception, instead of one
exception per cache line.

Pipelines and caches:
- The early-start list with runs goes to a file of its own; the plain
  list of keys is still written, so a 0.8.2 on the same cache folder
  finds its early pipelines again. The first start of this version on
  a folder counts as a first start, so the first-start hold applies.
- A pipeline library with no count file beside it (an earlier
  version's) is rebuilt once it is 64 MiB or more.
- The pipeline journal drops this process's notes when the run ends
  on purpose: a pipeline being made at exit was refused for good.
- `victory caches` keeps the folders of builds before the translator
  stamp, which 0.8.2 still reads, unless --older is given.
- The play script's prepare stamp includes the title profile's state,
  so a profile installed later translates again.

Logs and smaller fixes:
- Newer queues' methods 0xb8 and 0xc0, and the two device pipeline
  methods that are not implemented, are said once by what they are
  taken for; the repeated words lines stay in diagnostics builds.
- VICTORY_VIEW_SPLIT_ADAPTIVE leaves the per-draw tables their slots:
  its first sync raised the line over all of them, and every draw that
  needed a table was dropped.
- The STREAM_BOUND comment: a root view past its window reads whatever
  lies beyond, not zeros.
- The tiles test compiles its own shader with the run-time compiler; a
  debug build stopped on it as a shader not built with the crate.

Build and launcher:
- BCPack tests say when the format's own tables were not given, and
  fail with VICTORY_BCPACK_REQUIRE_TABLES=1; CI runs them where the
  repository variable VICTORY_BCPACK_TABLES names a file, and warns
  where it does not.
- The launcher asks Windows for AVX2 before a start: victory.exe is
  built for it and stops before its own check can say why.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 02:43:39 +05:30
a22cdef1d1 Launcher: three steps, and honest about the title profile
The window now has three steps: the game's folder, the title profile and
the settings (a preset and the display mode). Every option is under "All
settings", in groups. A choice that needs the title profile, the Streamline
SDK or the FidelityFX DLLs is greyed or marked with the reason. A line under
the settings says what the next run will be and what will not apply, and
Play asks before it starts without those choices.

- The profile check runs off the window's thread, reads its answer as it
  comes with a working time limit, and runs again at Play. TITLE_PROFILE_DIR
  and BCPACK_TABLES from Further switches reach it. A profile*.toml in
  Downloads or on the desktop is offered for install.
- Without a profile, the output, upscaler, FSR frame generation, frame rate
  and water switches are not passed, and the two known leave-out programs
  are left out by default.
- FSR gets its own quality row (it always used Quality). The FidelityFX
  check is per feature: the upscaler DLL, or the loader and frame
  generation DLLs.
- New rows: a frame-rate counter, and PC memory (the 16 GB window settings
  as one opt-in).
- The VRAM list offers only limits under the card's memory. Software ray
  tracing asks first on cards under 12 GB.
- The launcher no longer sets KEEP_SHOWN, QUEUE_SNAPSHOT,
  TEXTURE_STAGE_MS, PRESSURE_RELATIVE or the 16 GB window settings, and
  the layer's texture passes default to 16 ms again. The play script
  follows, and its 1920x1200 output is gone.
- Settings carry a version. After an update, Recommended is offered once.
  A value an older launcher does not know is stored beside its key, so the
  older launcher can still read the file.
- Recommended and the presets use one memory rule for the Series X
  profile. On cards without DLSS they pick FSR with a mode, and they say
  when the profile is missing.
- The log's first line adds the profile's state, the choices, and what was
  not passed and why.
- The loading window's Skip now says what skipping costs, and the F1 menu
  scrolls its rows.
- VICTORY_D3D12_CHECK in Further switches takes effect.
  FOXHOUND_TEST_DIR points the launcher at another settings folder.
- The profile status line names its file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 00:38:16 +05:30
297b05be21 Launcher in two columns on wide screens, and a 1920x1200 (16:10) output
- Launcher: on a screen wide enough at its scaling, the settings lists take a column of their own on the
  right, so the whole window fits a 1366x768 screen without scrolling; Further switches, the help text and
  Play stay on the left. A smaller screen keeps the single column, which scrolls. Long option names no
  longer run into their lists. Launcher version 0.8.3.2.
- Resolution 1920x1200 (16:10) on the Series X profile (VICTORY_NATIVE_OUTPUT=1920x1200): fewer pixels than
  1440p, so the whole scene is drawn. The native output's height is now a value like its width. New and not
  yet tested widely.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 15:38:45 +05:30
2f1fb79bae Launcher: four texture and memory settings on for everyone
A slot written with another texture keeps showing the one it showed until the new one is up (VICTORY_KEEP_SHOWN=2), memory pressure is judged by the PC's own size on PCs with more than 16 GB of RAM (VICTORY_PRESSURE_RELATIVE=1; a PC with 16 GB keeps the old rule, as it was not measured there), the texture queue is taken as a snapshot (VICTORY_QUEUE_SNAPSHOT=1), and texture passes may take 24 ms instead of 16 (VICTORY_TEXTURE_STAGE_MS=24). Short drives at the Recommended settings on a 12 GB RTX card, median / slowest tenth of the frame rate: 19.9 / 17.1 fps without them, 22.9 / 20.2 with the first, 25.1 / 18.9 with all four.

Set in the launcher (its base switches, and the RAM test it already makes for PCs with 16 GB) and the play script; the code's own defaults are unchanged, so each is turned back in "Further switches" (KEEP_SHOWN=1, PRESSURE_RELATIVE=0, QUEUE_SNAPSHOT=0, TEXTURE_STAGE_MS=16). None of them changes a shader's translation, so changing one does not make the shaders prepare again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 13:11:43 +05:30
f418ce584f README: title profiles, what changed since the profile move, and the switches a player needs
From review, each finding checked against the code:
- A1 the optional Windows 10 runtime download named where "neither program goes online" is said;
  A2 licence: no file outside it; A3 status: the profile move is done; A4 DLSS default balanced,
  modes listed; A5 native outputs need a profile's patch group; A6 patches come from the profile,
  each checked by length and BLAKE3; A7 -Dlss list (the script's ValidateSet also takes
  ultraperformance).
- B1 a Title profiles section (obtained separately; loading, without one, developer switches);
  B2 Quick start step "Load your title profile" and the Ray tracing row; B3 Ultra Performance, with
  Recommended still on Performance for 6 and 8 GB; B4 the black screen under Proton and the
  d3dcompiler_47 workaround; B5 where the logs are; B6 the missing switches, VICTORY_LOCK_TRIM among
  them (VICTORY_FIT_AS described as the size it takes).
- C1 switch rows no longer say what one program draws; C2 the 6 GB row's basis.

Text only, plus play-foxhound.ps1's -Dlss ValidateSet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 05:37:28 +05:30
29f64bc3a8 Title profiles stage 2: roles read once, no lock or allocation per draw
From review of f2c12d0f.

- victory-gpu title.rs reads every role of the profile once, at the first
  question, into a table that is then only read (hash sets, the listed
  hashes, the names); Profile::roles() lists them. The bake check and the
  interface composite ask whether their role has any shader once, in a
  OnceLock, which is where the line that they are off is said: nothing
  locks or allocates per draw any more.
- Test strings carry made-up shader hashes; an orphan comment in the play
  script and the interface composite's old description are gone; the
  README hunk is dropped (the docs branch covers it).

Not compiled yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 05:14:11 +05:30
4c76205b09 Title profiles stage 2 (GPU crate, launcher): shader roles from the profile, none in the tree
Every shader identity the GPU crate and the launcher held now comes from
the title profile's roles (victory-gpu title.rs: plays, hashes, name, and
a line said once when a feature finds no shaders for it):

- the stand-in for indirect light: names from ambient.resolve, radiance,
  air and miss; a role the profile does not give follows nothing;
- cold pipeline making: rt_resolve and probe_ray_activation by name,
  scene_input and bake made at creation, face_shapes;
- the bake uploads: bake and bake_geometry;
- the culling census: pass.0 to pass.8, printed under their role names;
- the interface composite (frame generation and the bake check): one
  function, interface_composite role;
- left out by default: the leave_out role, plus water.leave_out with
  VICTORY_WATER_LEAVE_OUT=1 (the launcher's water "nopatches" setting
  sets it); VICTORY_LEAVE_OUT still adds hashes. The launcher and the
  play script carry no hashes any more.

Without a profile each of these is off or follows nothing, and says so
once. The values are kept in the private profile before this removes them.

Not compiled yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 05:14:11 +05:30
1c3ff5bc7c Docs and script help: 'the program' for the title; no test-PC details
architecture, findings, fork-ray-tracing, replay, saves and multi-frame-generation, and the help comments and messages of play-foxhound.ps1 and play.ps1: 'the title' becomes 'the program', and the test PC is a 12 GB RTX card with 32 GB RAM. Platform terms (title id, title profile) are kept. Texts only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:55:09 +05:30
425173895f build-launcher: pass the layer's flags whole when a path holds a space (CARGO_ENCODED_RUSTFLAGS)
`cargo build` splits RUSTFLAGS at every space and cannot quote, so with a
checkout under `C:\Users\John Smith\Downloads\foxhound` - or a profile whose
name holds a space - the compiler is handed `--remap-path-prefix=C:\Users\John`
and `Smith=~` separately and stops with

    error: --remap-path-prefix must contain '=' between FROM and TO

which `-Package` reports as "the layer did not build". CARGO_ENCODED_RUSTFLAGS
carries the same flags separated by U+001F, a character no path can hold, so
each flag reaches the compiler whole. Costs nothing on a path without spaces.

Reported in #349.
2026-12-02 02:53:19 +05:30
c72950c48e CARD_WORDS_KEPT off by default until its kernel-page fault is fixed
Its default-on commit (6db057d) undone: the code's default, the launcher's
base list, the play script and the README. The test of a reset in the next
kernel page fails on the write-watched path (pages never written go up
whole and the reset does not), so the cure waits for that fix and its
review; VICTORY_CARD_WORDS_KEPT=1 turns it on as before. The fix for
self-guarded memory (4c58d9f0) stays in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:45:03 +05:30
de6002baaa VICTORY_CARD_WORDS_KEPT is on by default (=0: whole pages, as before)
Measured on 2026-12-02: with it, a street start's small write-combined
copies no longer had older values sent over the words shaders wrote on
the card (the up-copy check: 1.4 million words a start in one of them
without it; with it, only words the title itself changed there), and the
frame rate stayed as without it, on the street (23.9 against 23.5 fps) and
in a room; two starts with it ran clean. The heap of 128 MiB and more is
still left out (=2 takes it). The launcher, the play script and the README
say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 01:40:37 +05:30
c9c23fbc21 A 3440x1440 output profile for Series X (PR #284)
VICTORY_NATIVE_ULTRAWIDE=1 (the launcher's Resolution row, play-foxhound.ps1 -Res 3440) makes the output and scene 3440x1440; the 1440p patch takes the width, and the frontend's projection correction reads the output size (VICTORY_OUTPUT_SIZE) and no longer compares against 2560x1440. The 2560x1440 path is as before. Run on a 3440x1440 display by its author.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 16:26:37 +05:30
1477e1c1ab BCPack: the rANS models credited to Microsoft's MIT silicon-rans; dictionary use logged
The 128 probability models in bcpack-tables.bin are, value for value, the
freq_table of Microsoft's MIT-licensed rANS reference decoder: its notice is
in THIRD_PARTY_NOTICES.md (also packaged), the README and the asset policy.
The asset policy's exception now covers only the rest of the tables.

The decoder counts block references (none, recent blocks, dictionary) and
dstorage logs once a minute at info how many came from the dictionaries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 07:00:46 +05:30
9bbfbb7bcf v0.8.2: launcher defaults to DLSS Balanced and the submission CPU options; release notes
Launcher (0.8.2.0) and scripts/play-foxhound.ps1: DLSS Balanced by default
(Recommended keeps Performance at 4K), and VICTORY_SUBMIT_SPLIT,
VICTORY_ASK_FIRST, VICTORY_OFF_LINE in the base switch set. README: what is
new in v0.8.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 13:20:01 +05:30
5b6187df28 Report take-to-fault intervals in performance-counter order
Port of https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3587 to readmet3xt-lab/foxhound. The regression runs independently of the NVIDIA-only test suite.
2026-11-30 10:43:18 +08:00
8f5ec49d68 Windows 10: Direct3D 12's newer runtime from a D3D12 folder; Windows 11 keeps its own
Windows 10's own Direct3D 12 stops at Shader Model 6.5 and refuses the
root signatures with directly indexed descriptor heaps that every
translated shader uses. victory.exe now exports D3D12SDKVersion and
D3D12SDKPath, so Direct3D 12 loads Microsoft's newer runtime (the D3D12
Agility SDK's D3D12Core.dll) from a D3D12 folder beside it. The version is
set first thing in main (d3d12.dll is delay-loaded so it reads that value):
the folder's D3D12Core.dll version when there is one, else Windows' own
(System32's, at most 614). So Windows 11 without the folder keeps its own
runtime; the first version of this (reverted before v0.8.1) asked for 620
and stopped there with D3D12_ERROR_INVALID_REDIST.

`victory get-d3d12` (scripts\get-d3d12.ps1) fetches the runtime from
nuget.org and keeps it only when Microsoft signed it; on Windows 10 without
it the launcher offers to fetch it before the first start.

From foxhound PR #26 by Schrubbdiwupp (tested on Windows 10 22H2 with an RTX
5070 Ti). The version matching follows trustno1-coder/VIctory-NVIDIA's
apps/victory/src/main.rs (GPL-3.0-or-later). A launcher comment's path held
two control characters; fixed.

Co-Authored-By: Schrubbdiwupp <23741214+Schrubbdiwupp@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 07:41:13 +05:30
a4a8ad2600 FoxHound v0.8: smoother heavy scenes, in-world speaker sound, Recommended settings, fewer crashes near full VRAM
- Heavy scene stutter: the write-fault handler no longer asks Windows whether a block another thread is opening is
  writable (VICTORY_FAULT_ASK=1: as before), and plane uploads read without the runtime's mapping lock first
  (VICTORY_PLANE_PIN=1: as before). In a heavy scene the handler's time fell from 29-30 ms to 7 ms a frame (summed
  over the title's threads); the submitting thread's waits for those uploads, 4.9 ms a frame, are gone.
- Sound of in-world speakers, and reverb (issue #24): the audio DSP's mono 1024-frame
  convolutions are computed (port of VIctory-NVIDIA eca45ac by Yve; VICTORY_DSP_CONVOLVE, VICTORY_DSP_GAIN).
- Card memory (issues #27, #29): no room for new textures while the card's memory in use is within 256 MB of its
  budget, whatever lies free inside texture blocks (VICTORY_ROOM_REAL, now on; =0 as before).
- Launcher: a "Recommended settings" button (card, its memory, monitor resolution and refresh rate, RAM, threads,
  GPU scheduling), offered once at the first start; a warning when a page file Windows manages cannot grow to what
  the game needs (issue #9); a stale capture trigger is removed at game start. Launcher 0.8.0.0.
- Speed work ported from VIctory-NVIDIA (authors named in the README): AVX2 refresh compares, a lock-free check
  for pending card writes, write-watch askings that hold only their pages, a shorter texture queue lock hold,
  fewer allocations per draw, pooled card-compare buffers, no pipeline library save in the middle of a burst,
  NaN-safe light probes, a texture pass cap that scales on cards over 12 GB. Frame time on the test PC did not
  measurably change.
- A frame-time line in the log each second (median, p95, p99, longest, frames over 50/100 ms; port of shawn's).
- The package is built with fat LTO, one code unit and x86-64-v3.
- Diagnostics and tools: `victory replay` works again (resources re-made resident), replay switches to fill
  textures white, leave lists out and read buffers by heap slot; capture_image and gpu_copy_probe examples;
  counters for the two unimplemented pipeline creation methods.

Known: small in-world screens that show a video are black; heavy scenes still fall under 30 fps.
2026-11-29 02:48:31 +05:30
ef191d68d5 foxhound 0.2.0-pre.5: 8 GB cards, DLSS and Frame Generation on Series S, profiles
- 8 GB cards (#5, #15, #19): the launcher's "Auto" texture loading loads every
  level (on demand under 11 GB left textures blurry or missing on a full card);
  a texture the card has no room for is made in the PC's memory, which the card
  reads over the bus, instead of staying black (VICTORY_TEXTURES_IN_PC=0: as
  before). No aliasing barrier for such textures (the runtime refuses it).
- DLSS and Frame Generation on the Series S profile; 3x/4x Multi Frame
  Generation on RTX 50 (untested); Frame Generation's latency markers where the
  title starts and ends a frame, looked up by frame; DLSS jitter counted.
- Series S: half the render-target reserve (1,536 MB).
- Profiles (#11): up to four players, each with saves, settings and gamertag.
- First start (#19): the last whole picture stays while the scene's pipelines
  are made (VICTORY_FIRST_HOLD).
- THIN bake draws translated at the title's call (#17, VICTORY_THIN_BAKE=2),
  from edsuuu/VI-BR-PORT c354528, found by MrEjecutor.
- Underwater transmission on wave32 hosts (PR #16 by JokerAttack).
- Frame recorder gives up after VICTORY_RECORD_LIMIT_S (#18, 20 s).
- Write faults without the guards' lock (#8, VICTORY_FAULT_UNLOCKED=1).
- Refused resource and heap creations named in the log (#9).
- Card steps: adjacent places read by one copy (6,300 -> 1,781 copies a frame).

Co-authored-by: JokerAttack <360460127+JokerAttack@users.noreply.github.com>
Co-authored-by: edsuuu <111332935+edsuuu@users.noreply.github.com>
Co-authored-by: MrEjecutor <183461587+MrEjecutor@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 16:27:30 +05:30
373785ec28 foxhound 0.2.0-pre.4: card choice, long-session slowdown, memory
- One graphics card for the launcher, warm-up, game and DLSS: the one with the
  most memory of its own (VICTORY_ADAPTER names another). DLSS was greyed out
  on PCs with integrated graphics (#14).
- Texture sweep: textures whose copy was let go leave the looks until used
  again; each look cost more the longer a session ran (#12).
- Preludes from a shared pool while their submission runs (about 190 alive
  instead of about 1,100).
- Launcher: a warning before Play when RAM and page file are under 52 GB.
- A frame's texture passes within VICTORY_TEXSPK_PASS_MS together and helpers
  woken per submission (VICTORY_PASSES_HOT), from PR #13; the launcher sets 8
  and 1.
- Example list_memory: what command lists and upload buffers cost.

Co-authored-by: Dastano <197081+Dastano@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 02:36:57 +05:30
95031b8b0d foxhound 0.2.0-pre.3
The project as of 0.2.0-pre.3, in one commit. Changes since pre.2:

- Placed views: unused fields the title leaves with leftover bytes are cleared,
  so equal views share one host view; memory stays flat in long play (was about
  3 GB more every 20 minutes and a slower frame each minute).
- Controls: two keys for every pad function, mouse look and mouse buttons, read
  by the game from a controls file and changed at once from the launcher's or
  the F1 menu's "Controls".
- The game's window handles F1/F2, the display mode and the mouse; the launcher
  reads no keys and changes no other program's window.
- Static samplers made first, in one order, so the driver finds its saved
  pipelines again (also when DLSS loads).
- Windows 10: a clear message (Shader Model 6.6 with directly indexed heaps).
- A changed game executable (FPS patch) is named in the launcher's error.
- Patch sites checked by BLAKE3 hash: no bytes of the title in the source.
- The screen probes' ray activation runs (magenta casts, issue #2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 01:20:32 +05:30