Options: VICTORY_RESIDENCY_LIMITED, VICTORY_FSR_RESET, VICTORY_GAMERTAG, VICTORY_AMBIENT_FLOOR, and play-foxhound -PreloadAll / -SkipRayWork #3073
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3073"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Adriwin06 on 2026-11-29T19:52:59Z.
What it changes
5 small changes of the same kind, one commit each, so each can be reviewed, reverted or left out on its own:
Residency: VICTORY_RESIDENCY_LIMITED=1/0 forces the smaller PC's host budgets on or off
The host-memory budgets for a PC with 32 GiB of RAM or less were chosen
only from the installed RAM. VICTORY_RESIDENCY_LIMITED=1 forces them on
(a 64 GiB PC that runs other programs beside the title), =0 forces them
off; unset, the RAM decides as before. A forced value is logged once.
Ported from readmet3xt-lab/foxhound@6c67166 (foxhound PR #31, Ingenioeren),
GPL-3.0-or-later.
FidelityFX: VICTORY_FSR_RESET=1 runs the title's own upscaling with its history reset
Off by default. With VICTORY_FSR_RESET=1 every upscaling dispatch the
title makes through its own FidelityFX loader has its
resetflag setfor that dispatch (no temporal accumulation), so stale history cannot
stay on screen as trails; the flag is put back after the dispatch has
read it, so frame generation still reads the description as the title
made it. The switch also routes the title's loader through ours when
neither Streamline nor the PC path would.
Ported from readmet3xt-lab/foxhound@6c67166 (foxhound PR #32, Ingenioeren),
GPL-3.0-or-later.
XUser: VICTORY_GAMERTAG names the signed-in user
The user's name was always "Player". VICTORY_GAMERTAG sets it, cleaned
to a console gamertag's rules: ASCII letters, digits and spaces, trimmed,
at most 15 characters, and "Player" again when nothing is left.
Test: xuser::tests::gamertag_sanitizes_to_xbox_rules.
Ported from readmet3xt-lab/foxhound, GPL-3.0-or-later.
Ambient: VICTORY_AMBIENT_FLOOR= keeps bounce-lit interiors from going pitch black
Off by default (unset or 0). With VICTORY_AMBIENT= and
VICTORY_AMBIENT_FLOOR=, the resolve holds its diffuse
indirect-light estimate at least at a warm fill (1.0, 0.98, 0.94 times
the level), shaded in creases by the same openness term, so an interior
lit only by bounced light is not pitch black. The level is a root
constant of its own (
fill, word 14 of 15), written by the resolveonly;
leastkeeps its meaning as a multiple of the estimate.Tests: ambient::tests (the passes compile, the constants' names).
Ported from DoubleGhosty/cool_fox@98c3333, GPL-3.0-or-later.
play-foxhound: -PreloadAll warms every pipeline the title declared, -SkipRayWork leaves out ray-tracing feeds
-Preload warms only the pipelines earlier runs used (2,305 of 88,563
known after a few runs here), so scenes not reached before still made
theirs as they came (0.3 s median, 2 s p90 each) and drew without them
meanwhile. -PreloadAll passes
victory preload --all.-SkipRayWork sets VICTORY_RT_SKIP_DEAD=1 and VICTORY_RT_SKIP_GATHER_COPY=1
when VICTORY_BVH_BUILDER is not 1, so a run without ray tracing skips
the BVH-skinning, probe-trace and probe-gather passes that only feed it.
How it was tested
-PreloadAllwas used in runs of the title from that fork (the pipeline counts in its commit are from those runs);-SkipRayWorkonly sets two switches main already reads; the script parses (PowerShell parser, no errors).cargo testpassed for the crates it touches:cargo test -p victory-gpu --lib -- residency::: 7 passedcargo test -p victory-hle --lib -- fidelityfx: 6 passedcargo test -p victory-hle --lib -- xuser: 8 passedcargo test -p victory-gpu --lib -- ambient::: 14 passedcargo clippy --workspace --all-targets --locked: no finding that main does not already have (main has 34 of its own, which is why the Clippy step of CI is red on main itself).cargo xtask policy: no new finding (main fails it on crates/victory-loader/src/heap_sites/frame_users.rs).cargo clippyalso with--all-featuresadds no finding, andcargo test --workspace --lockedfails only tests main also fails on this machine: the five shader tests that fail on main here too (WARP's SM 6.2 and the validator) (barycentric_tests::first_half_values_render_on_hardware_and_warp, hw_tests::split_lds_wave32_read_after_read_barrier_coalescing_and_parity, intersect_tests::flat_global_stores_and_atomics_fence_uavs_at_group_barriers_across_waves, rect::tests::rectangles_are_drawn_whole, rect::tests::the_rectangle_stage_is_a_geometry_shader) and xtask's repository_passes_policy (frame_users.rs). 2208 passed, including five that fail on main (three BCPack oracle tests, the menu save race, the shader key test).Checked for overlap
🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Copilot on 2026-11-29T19:56:29Z.
Code review location:
crates/victory-hle/src/modules/fidelityfx.rs; line 158With only VICTORY_FSR_RESET=1 enabled, imports now reach the interposer, but
wrap()still returns the original address whenever Streamline is not serving.kernel::GetProcAddresscalls that wrapper, so dynamically resolvedffxDispatchbypasses the reset entirely; dynamically resolved context creation also skips the bookkeeping the reset path requires. Use the same activation predicate inwrap()so reset-only mode works for both lookup routes.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Copilot on 2026-11-29T19:56:29Z.
Code review location:
scripts/play-foxhound.ps1; line 253This checks the builder setting before
-Moreoverrides are applied. If saved settings enableVICTORY_BVH_BUILDERand a run uses-SkipRayWork -More VICTORY_BVH_BUILDER=0, neither skip flag is set even though the final run has the builder disabled. Set the flags whenever-SkipRayWorkis requested and letDeadRtPolicy::from_envincrates/victory-gpu/src/pipeline/make.rsenforce its existing builder-off guard;-Morecan then still override either flag.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-29T19:56:30Z.
Review: COMMENTED
🟡 Changes recommended
Reset-only mode still bypasses dynamically resolved FidelityFX calls, and -SkipRayWork can omit skip flags when later overrides disable the BVH builder.
2 open issues
What changed in this PR
Adds optional runtime controls to VIctory-NVIDIA’s GPU and console API layers, plus launcher switches for broader pipeline preloading and skipping unused ray-tracing work.
Changes:
-PreloadAlland-SkipRayWorkto the PowerShell launcher.scripts/play-foxhound.ps1crates/victory-hle/src/modules/xuser.rscrates/victory-hle/src/modules/fidelityfx.rscrates/victory-gpu/src/residency.rscrates/victory-gpu/src/ambient.rsReview effort: Balanced
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Adriwin06 on 2026-11-30T00:54:42Z.
Code review location:
crates/victory-hle/src/modules/fidelityfx.rs; line 158Fixed in
8837ce51:wrap()andInterposenow share one predicate (interposing(): Streamline serving, the PC upscaler, orVICTORY_FSR_RESET=1), so with the reset alone aGetProcAddressedffxDispatch/ffxCreateContextgoes through ours too. Regression test:modules::fidelityfx::tests::reset_alone_serves_lookups_as_imports, run in a child process because the switch is read once.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Adriwin06 on 2026-11-30T00:54:45Z.
Code review location:
scripts/play-foxhound.ps1; line 253Fixed in
1ab421b8:-SkipRayWorknow sets both skip flags unconditionally.DeadRtPolicy::from_envalready ignores them whileVICTORY_BVH_BUILDER=1is in force (make.rs,!builder_on && ...), so the final setting after-Moredecides, and-Morecan still override either flag.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.