144 Commits

Author SHA1 Message Date
4e6cf2276f Source launcher is scripts\play-nvidia.ps1 (was play-foxhound.ps1); the Steam helper exe is gone, Steam starts victory.exe play; the launcher sets play's shader-key defaults so a preloaded cache is hit (#4067)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 08:17:39 -08:00
3fa588eb7e Revert PR #2580 (Stop long freezes on pipeline compiles): the first run from an empty shader cache lost its indirect light
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>
2026-11-29 19:38:01 -08:00
e535816d1b Merge PR #2245 (hussainmussa): Key bindings: three small safeguards from #1365 (focus loss, failed save, default file)
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
2026-11-29 15:14:54 -08:00
c07ab7de93 Merge PR #2580 (Kajcsi): Stop long freezes on pipeline compiles
make.rs: PR's compile grace/hurry taken; wait_loop built on main's wait_for_pipeline (driver_oom exit, boost, timed_out kept) with the grace clamp; compute_left uses main's time_for_frame; tests adapted to make_with(&mut bool)/defer(bool). warm.rs: --waited filter added to main's candidates/to_make flow
2026-11-29 15:08:08 -08:00
c9ffe60aaf Stop freezing on compute and screen-pass compiles
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>
2026-11-29 15:26:14 +01:00
f580ddb71d Launcher: -FgType fsr4, AMD's FSR 4 upscaling and frame generation without DLSS
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>
2026-11-29 11:39:12 +00:00
d59447b2cc Mouse and keyboard: the default bindings.ini is never written over one that is there
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>
2026-11-29 12:43:32 +02:00
1d5e66a8bb Merge branch 'wave-4' into combined
# Conflicts:
#	README.md
#	apps/victory/src/main.rs
#	apps/victory/src/play.rs
#	apps/victory/src/run.rs
#	apps/victory/src/translate.rs
#	apps/victory/src/warm.rs
#	crates/victory-formats/src/bcpack.rs
#	crates/victory-game/src/lib.rs
#	crates/victory-gpu/src/capture.rs
#	crates/victory-gpu/src/compose.rs
#	crates/victory-gpu/src/copystat.rs
#	crates/victory-gpu/src/descriptor.rs
#	crates/victory-gpu/src/descriptor/host.rs
#	crates/victory-gpu/src/device.rs
#	crates/victory-gpu/src/draw.rs
#	crates/victory-gpu/src/host.rs
#	crates/victory-gpu/src/host/card_steps.rs
#	crates/victory-gpu/src/host/menu.rs
#	crates/victory-gpu/src/host/panel.rs
#	crates/victory-gpu/src/host/place.rs
#	crates/victory-gpu/src/host/send.rs
#	crates/victory-gpu/src/host/upcheck.rs
#	crates/victory-gpu/src/lib.rs
#	crates/victory-gpu/src/list.rs
#	crates/victory-gpu/src/memory.rs
#	crates/victory-gpu/src/pipeline.rs
#	crates/victory-gpu/src/pool.rs
#	crates/victory-gpu/src/queue.rs
#	crates/victory-gpu/src/resource.rs
#	crates/victory-gpu/src/shader_cache.rs
#	crates/victory-gpu/src/shadow.rs
#	crates/victory-gpu/src/streamline.rs
#	crates/victory-gpu/src/streamline/fsr.rs
#	crates/victory-gpu/src/texture.rs
#	crates/victory-gpu/src/watch.rs
#	crates/victory-hle/Cargo.toml
#	crates/victory-hle/src/modules/apu.rs
#	crates/victory-hle/src/modules/audio.rs
#	crates/victory-hle/src/modules/display.rs
#	crates/victory-hle/src/modules/dstorage.rs
#	crates/victory-hle/src/modules/fidelityfx.rs
#	crates/victory-hle/src/modules/gameinput.rs
#	crates/victory-hle/src/modules/kernel.rs
#	crates/victory-hle/src/modules/lifecycle.rs
#	crates/victory-hle/src/modules/storage.rs
#	crates/victory-hle/src/modules/xasync.rs
#	crates/victory-hle/src/modules/xg.rs
#	crates/victory-hle/src/modules/xgame.rs
#	crates/victory-hle/src/modules/xgameruntime.rs
#	crates/victory-hle/src/modules/xgamesave.rs
#	crates/victory-hle/src/modules/xgameui.rs
#	crates/victory-hle/src/modules/xmem.rs
#	crates/victory-hle/src/modules/xnetworking.rs
#	crates/victory-hle/src/modules/xpackage.rs
#	crates/victory-hle/src/modules/xstore.rs
#	crates/victory-hle/src/modules/xsystem.rs
#	crates/victory-hle/src/modules/xuser.rs
#	crates/victory-loader/src/windows.rs
#	crates/victory-shader/src/emit/lower.rs
#	crates/victory-shader/src/emit/lower/tests.rs
#	crates/victory-shader/src/emit/mod.rs
#	crates/victory-shader/src/emit/wave64_tests.rs
#	docs/findings.md
#	scripts/play-foxhound.ps1
2026-11-28 21:29:11 -08:00
04c0a9be4c Merge branch 'wave-6'
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>
2026-11-28 20:16:50 -08:00
91475d45f8 Merge branch 'wave-5'
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>
2026-11-28 20:05:05 -08:00
c777d87132 Merge branch 'wave-3' into combined
# Conflicts:
#	apps/victory/src/play.rs
#	apps/victory/src/warm.rs
#	crates/victory-gpu/src/capture.rs
#	crates/victory-gpu/src/descriptor/host.rs
#	crates/victory-gpu/src/host.rs
#	crates/victory-gpu/src/indirect.rs
#	crates/victory-gpu/src/pipeline/make.rs
#	crates/victory-gpu/src/pool.rs
#	crates/victory-gpu/src/queue.rs
#	crates/victory-gpu/src/resource.rs
#	crates/victory-gpu/src/streamline.rs
#	crates/victory-hle/Cargo.toml
#	crates/victory-hle/src/modules/gameinput.rs
#	docs/linux-proton.md
#	scripts/play-foxhound.ps1
#	scripts/play.ps1
2026-11-28 19:52:33 -08:00
49cec75b6e Merge branch 'wave-2' into combined
# Conflicts:
#	README.md
#	apps/victory/src/play.rs
#	crates/victory-gpu/src/ahead.rs
#	crates/victory-gpu/src/descriptor.rs
#	crates/victory-gpu/src/descriptor/host.rs
#	crates/victory-gpu/src/host.rs
#	crates/victory-gpu/src/list.rs
#	crates/victory-gpu/src/streamline.rs
#	crates/victory-hle/src/modules/files.rs
#	crates/victory-hle/src/modules/gameinput.rs
#	crates/victory-hle/src/modules/lifecycle.rs
#	crates/victory-hle/src/modules/xmem.rs
#	crates/victory-shader/src/emit/lower.rs
#	crates/victory-shader/src/emit/mod.rs
#	crates/victory-shader/src/emit/wave64_tests.rs
#	docs/dlss.md
#	scripts/play-foxhound.ps1
#	scripts/play-gta6-framegen.ps1
#	scripts/play.ps1
2026-11-28 19:46:40 -08:00
5dafeea5c7 Merge remote-tracking branch 'pr/1393' into wave-3 2026-11-28 19:24:42 -08:00
404b1e93a5 Merge remote-tracking branch 'pr/1614' into wave-4
# Conflicts:
#	scripts/play-foxhound.ps1
2026-11-28 19:14:15 -08:00
a06751bf38 Merge remote-tracking branch 'pr/1609' into wave-4 2026-11-28 19:12:27 -08:00
657a95ee43 Merge remote-tracking branch 'pr/1602' into wave-4 2026-11-28 19:10:18 -08:00
f0b40bb026 Merge remote-tracking branch 'pr/1558' into wave-4 2026-11-28 18:56:07 -08:00
7f2bd9ccf3 Merge remote-tracking branch 'pr/1701' into wave-5 2026-11-28 18:54:25 -08:00
06478fe051 Merge remote-tracking branch 'pr/629' into wave-1
# Conflicts:
#	crates/victory-gpu/src/host/menu.rs
2026-11-28 18:52:47 -08:00
db0602dd49 Merge remote-tracking branch 'pr/622' into wave-1
# Conflicts:
#	apps/victory/src/main.rs
2026-11-28 18:52:14 -08:00
45ee38b302 Merge remote-tracking branch 'pr/617' into wave-1 2026-11-28 18:51:07 -08:00
4ef4807d7d Merge remote-tracking branch 'pr/542' into wave-1
# Conflicts:
#	apps/victory/src/play.rs
#	scripts/play-foxhound.ps1
#	scripts/play.ps1
2026-11-28 18:47:54 -08:00
2558bd1aff Merge remote-tracking branch 'pr/563' into wave-1
# Conflicts:
#	crates/victory-gpu/src/host/menu.rs
#	scripts/play-foxhound.ps1
2026-11-28 18:47:54 -08:00
caedf8359f Merge remote-tracking branch 'pr/1514' into wave-4 2026-11-28 18:46:25 -08:00
841d0713eb Merge remote-tracking branch 'pr/510' into wave-1
# Conflicts:
#	apps/victory/src/play.rs
2026-11-28 18:46:15 -08:00
87430d7194 Merge remote-tracking branch 'pr/471' into wave-1
# Conflicts:
#	apps/victory/src/play.rs
#	crates/victory-gpu/src/resource.rs
#	scripts/play-foxhound.ps1
2026-11-28 18:45:22 -08:00
67b26d0ea5 Merge remote-tracking branch 'pr/935' into wave-2
# Conflicts:
#	scripts/play-foxhound.ps1
2026-11-28 18:43:57 -08:00
2d5780235f Merge remote-tracking branch 'pr/1495' into wave-4 2026-11-28 18:43:21 -08:00
26ae1a2050 Merge remote-tracking branch 'pr/1491' into wave-4
# Conflicts:
#	scripts/play-foxhound.ps1
2026-11-28 18:43:21 -08:00
a914cdaa9c Merge remote-tracking branch 'pr/502' into wave-1 2026-11-28 18:33:45 -08:00
0e68f36e38 Merge remote-tracking branch 'pr/492' into wave-1 2026-11-28 18:33:43 -08:00
1429cd9cf1 Merge remote-tracking branch 'pr/1211' into wave-3 2026-11-28 18:33:12 -08:00
988fb313f2 Merge remote-tracking branch 'pr/873' into wave-2 2026-11-28 18:30:41 -08:00
4b0ab47508 Merge remote-tracking branch 'pr/869' into wave-2
# Conflicts:
#	scripts/play-foxhound.ps1
2026-11-28 18:30:04 -08:00
4dc86ef96d Merge remote-tracking branch 'pr/1162' into wave-3 2026-11-28 18:29:28 -08:00
bc22954f1c Merge remote-tracking branch 'pr/426' into wave-1 2026-11-28 18:28:50 -08:00
80ca422ca0 Merge remote-tracking branch 'pr/1143' into wave-3 2026-11-28 18:28:45 -08:00
73c5d26e60 Merge remote-tracking branch 'pr/342' into wave-1
# Conflicts:
#	scripts/play-foxhound.ps1
2026-11-28 18:26:51 -08:00
c951b569e5 Merge remote-tracking branch 'pr/321' into wave-1 2026-11-28 18:25:42 -08:00
4ca5b59a21 Merge remote-tracking branch 'pr/774' into wave-2
# Conflicts:
#	scripts/play-foxhound.ps1
#	scripts/play.ps1
2026-11-28 18:25:02 -08:00
7139a68342 Merge remote-tracking branch 'pr/1470' into wave-4
# Conflicts:
#	crates/victory-gpu/src/resource.rs
#	crates/victory-gpu/src/shader_cache.rs
#	crates/victory-shader/src/emit/intersect.rs
2026-11-28 18:25:01 -08:00
eb1815468f Merge remote-tracking branch 'pr/770' into wave-2 2026-11-28 18:24:42 -08:00
6da585516a Merge remote-tracking branch 'pr/758' into wave-2
# Conflicts:
#	scripts/play-foxhound.ps1
2026-11-28 18:24:30 -08:00
b1a374f5eb Merge remote-tracking branch 'pr/210' into wave-1
# Conflicts:
#	apps/victory/src/play.rs
#	scripts/play-foxhound.ps1
2026-11-28 18:23:13 -08:00
bbac61548c Merge remote-tracking branch 'pr/1101' into wave-3 2026-11-28 18:21:59 -08:00
437b73e888 Merge remote-tracking branch 'pr/713' into wave-2 2026-11-28 18:21:43 -08:00
474c8a17ce Merge remote-tracking branch 'pr/1099' into wave-3 2026-11-28 18:21:40 -08:00
b35cc854d0 Merge remote-tracking branch 'pr/142' into wave-1 2026-11-28 18:21:37 -08:00
326b59b545 Merge remote-tracking branch 'pr/1448' into wave-4 2026-11-28 18:21:24 -08:00
0cbaecf2f6 Merge remote-tracking branch 'pr/708' into wave-2
# Conflicts:
#	scripts/play-foxhound.ps1
2026-11-28 18:21:09 -08:00