With it, a first run from an empty cache drew every shadowed surface black
once the compiles had finished, until the game was restarted. v2026.11.29.05
does not do this, and the merge without this PR does not either (trees save,
empty cache, frames at 240, 290 and 330 s). Its switch
VICTORY_PIPELINE_WAIT_COMPILES=1 did not prevent it.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
test-only conflicts: play.rs main's preload-retry test and the PR's default-bindings test both kept; menu.rs the #2225 mouse tests and the PR's bindings-file test both kept
The same session froze 3 to 11 s at a time. Compute pipelines were made on the
title's own thread, and one took 8.5 s in the driver. A pass over the
screen waited its whole 10 s for a build that the memory guard had put
off 6 ms into the wait; nothing asked for it again until the next frame.
- A wait ends when its build is put off for memory. A later frame asks
for it again.
- Passes over the screen and dispatches wait at most
VICTORY_PIPELINE_COMPILE_GRACE_MS (50) once the build reaches the
driver's compiler, or translates a shader afresh. A pipeline already in
the driver's cache comes within that time.
- A dispatch's compute pipeline is made at once on a thread of its own
(at most 4 at a time), no longer on the title's thread.
- New: victory warm --waited. Ahead of a run, it makes the book's compute
pipelines and screen passes that no earlier run drew with, each in a
process of its own. The launcher runs it before the game when
VICTORY_WARM_WAITED=1.
VICTORY_PIPELINE_WAIT_COMPILES=1 restores the old waits.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
play-foxhound.ps1 knew auto, dlss and fsr only: FSR 4 needed VICTORY_PC_FSR,
VICTORY_FSR_FRAMEGEN=4 and VICTORY_DLSS_MODE by hand through -More, and the
launcher then wrote VICTORY_MENU_FG_TYPE=fsr and VICTORY_MENU_FRAMEGEN=0 over
them, so F1 showed FSR 3 with frame generation off and saved that (the next
start had -FrameGen overruled by the saved 0).
-FgType fsr4 now sets them up as `victory play --fg-type fsr4` does
(play.rs): the PC upscaler in place of DLSS, its scene at -Dlss's size and
quality where -Dlss is off, and with -FrameGen FSR 4 frame generation. Without
a mode named, frame generation keeps the scene at the output's size: on an
RX 9070 XT (Series X, 1440p, 2026-11-29) that rendered 2560x1440 with nothing
upscaled and fell from about 22 to 3 fps once a save was loaded. F1 shows
FSR 4 and the frame generation in use, and a saved fsr4 is taken at the next
start. The FidelityFX folder is found once for both.
The settings it builds match the hand-written run's, the F1 values aside; a
DLSS call's are unchanged. Played: provider 4.1.2 upscaling at 1706x960,
generator provider 4.0.2.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first start with MOUSE AND KEYBOARD on writes the default bindings.ini
beside the settings. `victory play` did it in two steps: "not a file?",
then std::fs::write, which empties and rewrites whatever is at that path.
A bindings.ini the first step did not see (a file the system would not
answer for at that moment, or one made in between by a second start or by
the player) lost the keys the player had set. The script launcher had the
same two steps with Test-Path and Copy-Item.
Both now make the file in one step that fails when it exists: create_new
in play.rs (default_bindings), [System.IO.File]::Copy without overwrite
in play-foxhound.ps1. "Already there" is taken as done and the file is
used as it is.
Part of #1365 (the idea is ItsYungFlexer's, from the issue's list of small
input safeguards; create_new is also what their fork uses, the code here
is written against main).
Tested: cargo test -p victory, new test
the_default_bindings_are_never_written_over_a_file_that_is_there (new
file gets the defaults; a custom and an empty file are kept; a missing
folder is an error and makes nothing). The script's copy line was run by
hand in a scratch folder: new file equal to the default, existing file
kept, missing folder quiet. Not tried in the game.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Conflicts resolved in this merge (both sides kept unless said):
- descriptor/host.rs: QueueFlusher::mirror_for_pass carries wave 6's
FOR_PASS/VICTORY_HEAP_LOOK_QUIET mirror; draw.rs uses it for both mirrors.
- draw.rs: wave 6's SharedTables (park/same) on our release(.., retire)
calls; duplicated auto-merged let_go loops removed.
- lower.rs: wave 6's split (emit/descriptor_data.rs, emit/lower/tests.rs);
our size_view_handle call and tests ported into the moved code.
- send.rs: VICTORY_SEND_PASS_ASIDE=1 is folded into away()
(VICTORY_SEND_PASS_AWAY).
- streamline.rs: wave 6's InitOutcome/mfg_loaded inside our NoDlssFg HUD.
- play-foxhound.ps1: one run in one try block (the doubled run removed).
- make.rs: compute_first/quick_first beside most_dropped/hits_first/
longest_first and keep_free; the worker gives back slow, unasked,
early-compute and compute counts.
- host.rs: hot() beside resident_soon/settle/before_send; free_cut and
cut_waiting both tried after cut_for; card_ready made aside with
CardShared kept; the refresh filter keeps our up-front skip with wave
6's batch and front sift; reset waits for the coming pass, then clears.
- shader_cache.rs KEYED: union (38).
- native_1440p.rs, play.rs: wave 6's size() and warmup mark.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts resolved by combining both sides. Notable choices:
- descriptor/host.rs: #704's bitmap DynamicSlots (wave 2) kept; #1627's
retire-on-release ported onto it (release and release_batch take
retire_resources); #1642's Vec<bool> DynamicSlots and its opt-in
VICTORY_DYNAMIC_SMALL_HIGH search are not carried (same type name,
superseded by #704).
- host.rs: #1633's batched card compare (CARD_COMPARE_BATCH) moved onto
wave 3's CardShared split; job entries are taken under a short
CARD_WORK lock (take_card_jobs). Wave 3's lazy hold-back kept. #1520's
spare trim floor applies over both spare pools. fetchmem's step-down
moved into resize_fetch's growth path.
- shadow.rs: VICTORY_WINDOWS_BAR_MB unset is 4096 with a small shared
budget and mapped card memory, else 3072 on a small host, else 0.
- pipeline/make.rs: worker boost (wave 3) combined with asked-only
workers, longest-first priority and fast-core holds.
- texback.rs: VICTORY_TEXBACK_SAME moved into with_tiled_scratch.
- queue/behind.rs: past_folded with the Err(blocked()) returns.
- emit/mod.rs: GROUPS_OF_64 takes both digests ([[u8;16];17]).
- shader_cache.rs: KEYED is the union (36).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>