Super build: performance PRs behind one master switch (VICTORY_PERF_NEXT), SCREEN_EARLY on against driving stalls #4772

Closed
github-bot wants to merge 129 commits from github-bot/gh-4771 into main AGit
Owner

@⁠NICKNAMErutschovkonikovan on GitHub · 2026-12-01 06:56 UTC · original
NICKNAMErutschovkonikovan:super → main · +24113 −816 · 80 files · 129 commits · closed without merging

Refs #4663

What it changes

This is the "super" build of the special version, now brought up to date with upstream main (5fabb46e). The open performance PRs are each kept behind a switch of their own, all under one master switch, VICTORY_PERF_NEXT, which is on by default. A part's own VICTORY_...=0/1 always wins over the master switch. At the start, the log has one line that names every part as on or off, so two runs can be compared from their logs alone. The special-version features from #3590 and #3854 come along with it.

Switch From Default
VICTORY_SUBMIT_SPLIT perf-next (#3854) on
VICTORY_VRAM_WINDOWS_BAR perf-next on
VICTORY_WATCH_UNLOCKED_PROTECT + VICTORY_WATCH_LOCKFREE_PUBLISH #3760 + #3945 on, only as a pair
VICTORY_GUARD_SPIN #3523 200 µs
VICTORY_LANDED_FAST #3753 on
VICTORY_REMAP_COMPACT_EVERY #3877 (interleaved join only) on
VICTORY_SHADER_RO_LOADS #3501 on
VICTORY_SUBMIT_DIRTY_PAGES #3958 off (measured)
VICTORY_MAP_ONCE page-mapping copies at once off (measured)
VICTORY_SCREEN_EARLY existing switch, now a part on, against #4663
  • Watch pair: with only one half on, a car flickered in the game from stale data. A 0 for either half now turns both off, and the log says so.
  • VICTORY_SCREEN_EARLY: #4663 logged screen-budget pipeline waits of up to 3 s, several of them in one frame. We saw stalls of up to 4 s while driving into areas whose pipelines were not made yet. With this part on, passes over the screen are queued when the title creates them, instead of when a draw first asks for them. =0 gives the old behaviour back.
  • Fixes along the way:
    • #3760's protocol:
      • A block that another request is making read-only is not marked clean in the meantime.
      • A landing opens its guards only after the protection changes that are in flight.
      • Views of one page in one range are taken together, with the lock released.
    • #3958: a reference is not cut inside a written page.
    • Upstream's preload_mark is passed through our finish().
    • When LOGGING is turned on, an inherited VICTORY_LOG=off is dropped.
  • Merge with main:
    • #4635 only rewrote how the F1 menu is drawn, so this branch keeps the special version's F1 menu as a whole: German, pages, hidden settings, the names column, the help area and game settings. Porting the anti-aliased look onto it is left for later.
    • #4635's slim F3 panel is taken, with two collapsible_if and two too_many_arguments fixes for clippy.
    • #3958's test now reads the join directly, because the switch is off by default here.

How it was tested

  • GPU and profile: RTX 5090, Ryzen 7 5800X3D, Series X, 2560x1440, DLSS on, frame generation off, no ray tracing. The same save was used for every run.
  • Before, the night runs on v2026.11.30.03, matched B X X B:
    • All parts on: 21.2 fps. All off: 19.9 fps. In this scene the card needs about 35.6 ms a frame.
    • SUBMIT_DIRTY_PAGES was 0.44 fps and 1.3 ms of preparing slower than everything else on, so it is off.
    • MAP_ONCE had nothing to act on in four drives, so it is off.
  • After, on SCREEN_EARLY: four 120 s standing runs, A B B A. =0 gave 18.88 and 19.00 fps; =1 gave 19.16 and 19.11 fps. Runs over 100 ms: 22 and 9 with it off, 9 and 19 with it on. There were no crashes. Driving was not measured, so whether the stalls are gone while driving is not shown here.
  • On the merged tree (90c2bd72): the cache was warmed, then one 120 s run. The world loaded in 60 s and the start line lists every part as planned. 17.92 fps, longest frame 154 ms, 12 frames over 100 ms. That is about 1 fps below the runs before the merge; with a single run this is within the session drift we see (about ±10 %), and it has not been compared A/B yet.
  • cargo clippy --workspace --all-targets --locked -- -D warnings: clean.
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: clean.
  • cargo test --workspace --locked: all pass. The two menu tests that read the settings file (gray_shadow_lift_..., the_language_is_live_...) can collide when run in parallel; they pass on their own and with --test-threads=4.
  • cargo xtask policy: 493 files ok.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #3590 and #3854 (the special version this builds on), plus #3760, #3523, #3753, #3958, #3877, #3945 and #3501 (each one is a switch here). On the same waits in pipeline/make.rs: #3788 (a screen pass holds frames for its 10 s once in all), #3819 (a pipeline's draws wait once a run), #4256 (what a frame waits on is made first) and #4472. This PR does not change their code paths; it only turns on the existing VICTORY_SCREEN_EARLY.

🤖 Generated with Claude Code

**@⁠NICKNAMErutschovkonikovan** on GitHub · 2026-12-01 06:56 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4771) `NICKNAMErutschovkonikovan:super` → `main` · +24113 −816 · 80 files · 129 commits · closed without merging Refs #4663 ## What it changes This is the "super" build of the special version, now brought up to date with upstream `main` (5fabb46e). The open performance PRs are each kept behind a switch of their own, all under one master switch, `VICTORY_PERF_NEXT`, which is on by default. A part's own `VICTORY_...=0/1` always wins over the master switch. At the start, the log has one line that names every part as on or off, so two runs can be compared from their logs alone. The special-version features from #3590 and #3854 come along with it. | Switch | From | Default | |---|---|---| | `VICTORY_SUBMIT_SPLIT` | perf-next (#3854) | on | | `VICTORY_VRAM_WINDOWS_BAR` | perf-next | on | | `VICTORY_WATCH_UNLOCKED_PROTECT` + `VICTORY_WATCH_LOCKFREE_PUBLISH` | #3760 + #3945 | on, **only as a pair** | | `VICTORY_GUARD_SPIN` | #3523 | 200 µs | | `VICTORY_LANDED_FAST` | #3753 | on | | `VICTORY_REMAP_COMPACT_EVERY` | #3877 (interleaved join only) | on | | `VICTORY_SHADER_RO_LOADS` | #3501 | on | | `VICTORY_SUBMIT_DIRTY_PAGES` | #3958 | **off** (measured) | | `VICTORY_MAP_ONCE` | page-mapping copies at once | **off** (measured) | | `VICTORY_SCREEN_EARLY` | existing switch, now a part | **on**, against #4663 | - **Watch pair:** with only one half on, a car flickered in the game from stale data. A `0` for either half now turns both off, and the log says so. - **`VICTORY_SCREEN_EARLY`:** #4663 logged screen-budget pipeline waits of up to 3 s, several of them in one frame. We saw stalls of up to 4 s while driving into areas whose pipelines were not made yet. With this part on, passes over the screen are queued when the title creates them, instead of when a draw first asks for them. `=0` gives the old behaviour back. - **Fixes along the way:** - #3760's protocol: - A block that another request is making read-only is not marked clean in the meantime. - A landing opens its guards only after the protection changes that are in flight. - Views of one page in one range are taken together, with the lock released. - #3958: a reference is not cut inside a written page. - Upstream's `preload_mark` is passed through our `finish()`. - When LOGGING is turned on, an inherited `VICTORY_LOG=off` is dropped. - **Merge with `main`:** - #4635 only rewrote how the F1 menu is drawn, so this branch keeps the special version's F1 menu as a whole: German, pages, hidden settings, the names column, the help area and game settings. Porting the anti-aliased look onto it is left for later. - #4635's slim F3 panel is taken, with two `collapsible_if` and two `too_many_arguments` fixes for clippy. - #3958's test now reads the join directly, because the switch is off by default here. ## How it was tested - GPU and profile: RTX 5090, Ryzen 7 5800X3D, Series X, 2560x1440, DLSS on, frame generation off, no ray tracing. The same save was used for every run. - Before, the night runs on v2026.11.30.03, matched B X X B: - All parts on: 21.2 fps. All off: 19.9 fps. In this scene the card needs about 35.6 ms a frame. - `SUBMIT_DIRTY_PAGES` was 0.44 fps and 1.3 ms of preparing slower than everything else on, so it is off. - `MAP_ONCE` had nothing to act on in four drives, so it is off. - After, on `SCREEN_EARLY`: four 120 s standing runs, A B B A. `=0` gave 18.88 and 19.00 fps; `=1` gave 19.16 and 19.11 fps. Runs over 100 ms: 22 and 9 with it off, 9 and 19 with it on. There were no crashes. Driving was not measured, so whether the stalls are gone while driving is not shown here. - On the merged tree (90c2bd72): the cache was warmed, then one 120 s run. The world loaded in 60 s and the start line lists every part as planned. 17.92 fps, longest frame 154 ms, 12 frames over 100 ms. That is about 1 fps below the runs before the merge; with a single run this is within the session drift we see (about ±10 %), and it has not been compared A/B yet. - `cargo clippy --workspace --all-targets --locked -- -D warnings`: clean. - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings`: clean. - `cargo test --workspace --locked`: all pass. The two menu tests that read the settings file (`gray_shadow_lift_...`, `the_language_is_live_...`) can collide when run in parallel; they pass on their own and with `--test-threads=4`. - `cargo xtask policy`: 493 files ok. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #3590 and #3854 (the special version this builds on), plus #3760, #3523, #3753, #3958, #3877, #3945 and #3501 (each one is a switch here). On the same waits in `pipeline/make.rs`: #3788 (a screen pass holds frames for its 10 s once in all), #3819 (a pipeline's draws wait once a run), #4256 (what a frame waits on is made first) and #4472. This PR does not change their code paths; it only turns on the existing `VICTORY_SCREEN_EARLY`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
VICTORY_FAST_INPUT=1 makes the polling thread sleep 2 ms between reads of
the host's input instead of 8 ms (poll_interval), for less delay between a
press and the reading the title gets. Anything else, or unset, keeps 8 ms.
Read once when the hub starts. Test: fast_input_poll_is_opt_in.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- FAST INPUT (RESTART): VICTORY_FAST_INPUT, ON (2 MS) / OFF (8 MS).
- RENDER PATH (RESTART): VICTORY_MENU_RENDER_PATH, DLSS SR (standard) or
  DLSS5 FEEDER EXPERIMENTAL (feeder); read by scripts\play-foxhound.ps1.
  Both lines sit below the console's picture lines, so the first page of
  the menu is as before.
- SAVE PROFILE 1 / LOAD PROFILE 1, before CLOSE: every setting shown
  (not KEY BINDINGS) written to victory-profile-1.txt beside the settings
  file, and read back; values the menu does not offer are left out, live
  ones apply at once, and the result is saved through the usual save, so
  autosave, save export/import and the rest stay as they are.

Tests: profile_one_round_trips_the_settings; the about/notes checks cover
the new lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- VICTORY_FAST_INPUT='1' in the launcher's settings (F1 turns it off).
- F1's RENDER PATH = feeder starts the same build with the same settings
  file from the feeder's folder (-FeederDir, else VICTORY_FEEDER_DIR, else
  experiment-feeder\runtime), as victory-menu.exe beside its ReShade host;
  missing feeder files stop the start with a message. victory.toml of the
  repository is named through VICTORY_CONFIG unless one is set.
- -SettingsFile, -DataDir, -CacheDir: paths by parameter, none fixed.
- -InspectRoute: says render path, settings file, folder and console.
- .gitignore: the feeder's runtime, ReShade files and the profile file.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
scripts\get-dlss5-feeder.ps1 fills the folder of F1's RENDER PATH = DLSS5
FEEDER EXPERIMENTAL (-To, else VICTORY_FEEDER_DIR, else
experiment-feeder\runtime):
- ReShade 6.8.0 add-on build from reshade.me: the installer is read as the
  zip it carries, never run; ReShade64.dll becomes dxgi.dll.
- DLSS5-Feeder 2.0.0 (github.com/jlrouzies-fr/DLSS5-Feeder): addon64 and
  DLSS5_Feed.fx; ReShade.fxh/ReShadeUI.fxh and the Feeder's licence from
  pinned commits.
- RenoDX DLSS 5 consumer 8.5.0-rc10 (rhi-repo release).
Each archive and each file taken from it is checked against the SHA-256
the DLSS AiO Swapper pins; a difference stops before anything is written.
nvngx_dlssnr.dll is never downloaded: -NeuralRuntime or the Streamline
folder, taken only with a valid Authenticode signature of NVIDIA
Corporation (nvngx_dlss.dll from the Streamline folder likewise, if there).
The settings come from experiment-feeder-templates\ (text, .txt for the
asset policy); existing ones are kept unless -ResetConfig.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
How to set up and switch to F1 > RENDER PATH > DLSS5 FEEDER EXPERIMENTAL
(Get-DLSS5-Feeder.cmd, nvngx_dlssnr.dll supplied by the user, Home opens
the ReShade/RenoDX overlay), marked experimental: active once in our tests,
not in every run, no Ray Reconstruction. FAST INPUT: the pad read every
2 ms instead of 8 ms, no measured latency claim, not Reflex.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
nvngx_dlssnr.dll from the RenoDX Discord (dlss-5 downloads), the rest of a
DLSS 5 setup from yumlevi's renodx-dlss-installer; a table of every file of
the DLSS5 feeder with its folder and what puts it there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With DLSS frame generation at 4X this build shows picture faults that
63b902fe, with the same switches, does not; a candidate is #1233
(04a98cb3), which raised the back buffers from 2 to 8. The count is now
host::buffers(): VICTORY_SWAP_BUFFERS=2..8, read once, 8 unless set (so
nothing changes unset); anything else warns and keeps 8, and the start's
log says which count holds. It is used everywhere BUFFERS was, together:
CreateSwapChainForHwnd's BufferCount, ResizeBuffers, and DLSS-G's
numBackBuffers for both slDLSSGGetState and slDLSSGSetOptions. Nothing else
depends on the count (back buffer by GetCurrentBackBufferIndex at each
present, FSR 3's swap chain from the same description, the two HUD-less
copies alternate by copy id). Test: swap_buffers_are_eight_unless_a_count_
from_two_to_eight_is_set.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This reverts commit fabc1bc9dcc39dd9f2b4c83d94d745189b084bfa. The game test
showed the frame generation faults come from aliased render targets
(VICTORY_ALIAS_TARGETS=0 removes them, upstream #1917, #2247), not from the
swap chain's back buffers; the switch is left out to keep the change small.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With the title's render targets aliased onto shared card pages
(alias_rt.rs, on unless VICTORY_ALIAS_TARGETS is exactly "0"), DLSS frame
generation shows flicker and block artefacts (upstream #1917, #2247); in a
4X game test they were gone with VICTORY_ALIAS_TARGETS=0.

- victory play (apps/victory/src/play.rs SETTINGS) and
  scripts\play-foxhound.ps1 start with VICTORY_ALIAS_TARGETS=0.
- F1: ALIASED RENDER TARGETS, OFF (NO FG ARTIFACTS) first ("0"), ON as an
  empty value (unset: the layer's default), applied at the next start;
  placed below the console's picture lines.
- README: why it is off, and how to turn it on.
Tests: play::tests::aliased_render_targets_are_off_unless_the_menu_turns_
them_on, host::menu::tests::aliased_render_targets_start_off_and_on_is_unset.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This reverts commit 6f7ade94 (the revert of fabc1bc9): the switch is kept,
at 8 unless set (upstream's count since #1233), as a test knob.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
VICTORY_SWAP_BUFFERS in the menu: 8 (DEFAULT) first, saved as an empty
value (unset: host::buffers' 8, upstream's count since #1233; neither
launcher sets it), then 2, 3, 4 and 6 for tests; applied at the next
start. README: one paragraph on it. Test: swap_chain_buffers_start_at_
eight_and_offer_only_counts_the_layer_takes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reflex was loaded only with DLSS Frame Generation, set to low latency only
while it was on, and slReflexSleep was never called. Now:

- VICTORY_REFLEX (off, on, boost; unset: on while frame generation is, as
  before) loads Streamline with Reflex and PCL also without frame generation
  or DLSS. Reflex and PCL are asked of the driver each on its own; either
  missing is logged and leaves the other. With frame generation on, off is
  raised to low latency and the log says so.
- slReflexSleep once a frame where the title begins one: its frame-origin
  wait (WaitFrameEventX, frame::wait), after our frame clock and before the
  title has the token, then eSimulationStart. The title's PresentX of the
  planes with that token marks eSimulationEnd and eRenderSubmitStart; our
  host present marks eRenderSubmitEnd, ePresentStart and ePresentEnd. All
  with the same frame number (the planes' token), the token asked for anew
  for each call. victory check's presents keep the old markers.
- F1 NVIDIA REFLEX (RESTART): ON, ON + BOOST, OFF; both launchers start
  with on and find NVIDIA's folder for it also with DLSS off.
- The per-second statistics line says the mode, slReflexSetOptions' answer,
  the sleeps (calls, failures, time asleep) and the markers sent.
- ReflexOptions checked against sl_reflex.h 2.14.16 by const asserts and a
  test; slReflexSleep's signature from the same header.

Not run against the title: the effect on latency is not measured.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
GAME SETTINGS opens the game's own options from <data>\<title id>\storage\settings\settings.xml:
switches with Left/Right or Enter, numbers with a slider (Left/Right by a step) and typed input
(digits, a leading minus only where the range is negative, one point in a decimal; a comma is
refused). Each option has a range kept close to the values seen in a Series X and a Series S
data folder; values outside it are refused with a note. What the launcher sets itself
(uiOverlay, uiResolution, resolutionFullscreen, fsrQuality, videoCardDescription) and the
bookkeeping values are not offered.

SAVE writes only the changed values' bytes (the rest of the file stays byte for byte), through a
file renamed over it, keeping settings.xml.victory-backup the first time. PERSISTENT keeps the
saved values in victory-game-settings.txt beside victory-settings.txt and has the start write them
again (run.rs, after the save import), since the game rewrites the file when it saves its own
settings.

HILFE / HELP (VICTORY_MENU_HELP, live, saved) puts a short note in German and then English under
the line picked, for every main-page line and every game option. The menu font gets Ä Ö Ü ß (and
' ; [ ]) in its 5x7 raster, and lines are drawn by character, not byte.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Off by default (asked_for!, read once). After the "GPU-side dirty bitmap"
idea of upstream issue 756 (shiman1901's RFC); the issue posted no patch,
so no code of it is used.

Analysis (module notes of host/gpu_dirty.rs): of the 15.5 ms of refreshes
measured on an RTX 5090 + 5800X3D (54 ms submitting thread), none is a byte
compare the card could take: sifting reads the journal's notes, asking is
the kernel's dirty bit, the rest is copying title memory, which the card
cannot read. What the card can look at is what shaders wrote, and for copies
with a card side CARD_COMPARE does that already. For copies in the PC's
memory only, the CPU compared every declared range with its snapshot.

With the switch, such a copy (>= 1 MiB declared) gets a hash pass in front
of the submission's lists and one behind them (new GPU_DIRTY compute shader,
CARD_COMPARE's hash, compiled like the other helpers by hlsl::compile_for),
with a bit per 64 KiB piece whose hash changed. At landing the CPU compares
only flagged pieces with the snapshot (shadow::find_where), byte by byte as
before; pieces of a flight without passes are compared as before. The
snapshot stays (merge reference, merge under writes). Published submissions,
small copies, missing memory or pipeline fall back to the CPU. A line per
second gives plans, MB and pieces compared on the card, pieces found
changed, CPU bytes compared vs left out, and the added CPU time.

Not measured in play.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review of 7c8ae01b:

1. The first pass read the copies as root shader resources in the same
   ExecuteCommandLists call as the title's lists, which write them as UAVs,
   with no barrier behind it. It now goes in a queue call of its own
   (gpu_dirty::send_pre, right before the lists, both the late and the
   waited path), where the buffers decay to common before the title's lists
   promote them, and both passes end in a UAV barrier. The D3D12 debug layer
   with GPU-based validation reported nothing for either order on WARP and
   on an RTX 5090 (new ignored test debug_layer_on_the_first_pass, with a
   check that the layer reports at all), so the hazard is neither shown nor
   ruled out by it.
2. A piece found differing whose merge does not take (title memory not
   there) was not looked at again when the next flight did not flag it.
   Such pieces are now kept in OWED and compared at every later landing
   that covers them until found the same, as the CPU's way does.
3. cover() returns at once when no landing flight has a plan: nothing is
   built with the switch off.
4. Fail-safe: a bit past the end counts as set, and a plan without readable
   bits vouches for nothing (its pieces are compared on the CPU).
5. SAFETY notes of Plan, Pool and the pipeline now argue sole ownership and
   immutability, not "free-threaded".

Tests: no_plan_no_cover, owed_blocks_are_compared_until_found_the_same, the
changed bits test, the debug-layer probe (ignored).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- LANGUAGE / SPRACHE (VICTORY_MENU_LANG=en|de, live, saved; unset English):
  the whole F1 menu in English or German, GAME SETTINGS, key bindings and
  the save list included. One table, host/menu/i18n.rs (English -> German,
  patterns for lines made at run time); the settings file keeps its names
  and values. Tests: every literal the menu can show has both languages,
  every page/row/value rendered in German asks for nothing missing, every
  German line fits the box and has its letters.
- HELP: in place of notes pushed under the line picked, the description
  area under the list grows to 10 lines (the box grows downwards, still
  inside 960x540 and up): default and value now, then a plain-language note
  with an everyday likeness, in the language picked only. GAME SETTINGS
  notes rewritten the same way (RDR2 notes marked "same engine, not
  measured here"); lodScale/grassLod above 1.0 marked as outside the
  normal range.
- LOGGING (VICTORY_MENU_LOGGING=0, next start): VICTORY_LOG=off, no log
  file, no crash log, nothing in the console (both launchers); the crash
  handlers stay (they emulate Zen 2 instructions).
- RESHADE/RENODX LOG (feeder): RESHADE_DISABLE_LOGGING=1 at the start
  (checked: ReShade 6.8.0 then writes no ReShade.log).
- Both launchers now carry the menu's own lines (LANG, HELP, LOGGING,
  RESHADE_LOG) over a start; before, a saved HELP came back unset.
- play-foxhound.ps1: the DLSS5 feeder's victory-menu.exe copy is hashed
  with the file shared, a hash that cannot be read never counts as equal,
  a copy that runs (found by its full path) or cannot be replaced stops the
  start with both times and hashes; -InspectRoute shows the copy's state.
  Cause of the stale start: Get-FileHash returns nothing for a file it
  cannot open, and $null -ne $null is False.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Second review of 27590d77:

A. OWED was settled per work item: a second range of the same copy in the
   same 64 KiB block that found it the same cleared what the first found
   differing. Now a landing's compares are tallied per copy over all its
   ranges; a block is let go only when one range held all of it (whole
   block within the copy) and no range found it differing. A block compared
   only in parts stays owed (extra 64 KiB compares, never one too few).
B. OWED no longer grows over a run: a copy's entries go when its snapshot is
   given back (Shadow::copy_back_done; the next snapshot is the copy as it
   is, so the CPU's way would not find the difference either) and when the
   copy is dropped (gpu_dirty::forget, a relaxed load while nothing is
   owed); a cover copies only the entries of the landing's copies instead
   of the whole map.
C. The second pass is no longer among the submission's lists: it goes in a
   queue call of its own right after them and before the flight's signal
   (gpu_dirty::send_post), in the late path and behind the last group of
   the waited path, so the fence covers both. firsts/cuts are untouched.

Tests: owed_blocks_are_compared_until_found_the_same (two ranges in one
block, part compares, not kept), forgetting_a_copy_clears_what_it_owed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
No textual conflict. The F1 line joins the new menu system: German name
(GPU-ÄNDERUNGSSUCHE (NEUSTART)) and note in i18n.rs, a HELP note with
its default (OFF) in both languages: it only helps copies in the PC's
memory that shaders write to, likely little on cards with much memory, not
measured in the game; its line per frame in the log says whether it pays.
The launchers pass VICTORY_GPU_DIRTY from the menu's file as any switch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The ranges were estimates from two files' values; now they are the bounds
the title gives these settings (its parser's limits, numbers only), hard
limits it clamps to: e.g. lodScale 0.75-1 step 0.05, grassLod 0.5-1.4,
vehicleHDCount 0-10, water reflection to 4096, desiredFPS 30-500 step 10,
frameRateLimit 0-144, manualMipBias -10..10. Each option has its default
(game_settings::Spec::default) and where its range comes from (Bound):
a minimum read as zero is "likely 0, not certain", a step the title does
not give is ours, two texLodScale_Mat_* defaults below the title's minimum
start the range at the default and say so, decorationResolutionShift has
none and keeps an assumed range. HELP shows the title's default and the
value now, then "range as the game's program defines it". The marking of
lodScale/grassLod above 1.0 is gone with it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
36 quality settings the title has but its settings.xml does not hold
(textureQuality, shadowSoftShadows, waterQuality, taa, pedDensity, ...),
under ADVANCED, as named levels (LOW, MEDIUM, HIGH, ULTRA, CUSTOM,
SPECIAL / NIEDRIG ... SPEZIAL); the file holds the number. Only names the
title's data confirms; the six guessed ones say "name guessed", hash-only
ones and ai/motion are left out. Each has the title's default and its own
limits (numbers only, game_settings::ADVANCED); CUSTOM and SPECIAL are
offered past them, undocumented, "at your own risk".

One not in the file shows the title's default "(DEFAULT)". SAVE adds only
those changed, at the end of their group (a group the file lacks before
the root closes), as the file writes values; every other byte stays.
PERSISTENT keeps and re-adds them at the start. RESET ADVANCED takes every
one out of the file and the kept values. Whether the title reads them from
the file is not tested, and the notes say so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two lines of our own at the top of GAME SETTINGS (F1), working at once and
saved at once into the settings file (VICTORY_FOV, VICTORY_LENS_FLARE):

- FIELD OF VIEW: a factor 0.70..1.50 (1: the game's own), slider and typed
  input with the page's strict decimal rules. An xmm entry hook on
  grcViewport::Perspective (0x1451d15d0) multiplies tan(fov/2) by it, for
  perspectives of the output's shape only (Kemerd's VIctory-NVIDIA-RT
  method, GPL-3); a field copied on from a widened viewport is not widened
  again. Not limited to third person: every camera of that shape.
- LENS FLARES: off applies the title's own timecycle modifier
  PhotoMode_LensFlaresMin (joaat 0x17e9ad94) at strength 1 every frame,
  through a routine before the modifiers' frame update's first call
  (0x140494dcb), with the title's own lookup and apply. Whether the build's
  data holds the modifier shows at run time (MISSING, logged once).

Every place is checked against the bytes it was found with; another build is
left alone and the line says NOT ACTIVE. callhook gains hook_entry_xmm
(the routine sees and may change xmm0-5). The page opens without
settings.xml too, for these lines. VIGNETTE and DEPTH OF FIELD are not
offered: no place that switches them was found for certain.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
streamline/rr.rs: kFeatureDLSS_RR (1001) loaded beside DLSS SR when VICTORY_RR=1, DLSS
is on and sl.dlss_d.dll / nvngx_dlssd.dll are in the Streamline folder (signature
checked). slDLSSDGetOptimalSettings / slDLSSDSetOptions, DLSSDOptions v3 laid out from
sl_dlss_d.h of 2.14.16 (offsets asserted in abi.rs tests). Per upscaling RR replaces SR
(NVIDIA: RR overrides SR completely) only when every guide is found: diffuse and
specular albedo, normals, roughness (own texture or normals' alpha), optional specular
motion vectors, named by VICTORY_RR_GBUFFER (pass by its render target formats, then the
slots), at least render size, format as NVIDIA's guide allows (linear, RGB16F/32F
normals), shader-readable, and HDR colour. Otherwise SR records the frame as before and
the log says once per change which guide is missing and why; 30 refused evaluations in
a row turn RR off for the run. Required tags as Streamline lists them are logged.

streamline/rr/gbuffer.rs: draw::State::set_targets reports each binding (one OnceLock
read when neither switch is set). VICTORY_RR_PROBE=<frames> starts at the first binding
of 3+ colour targets of 640x360 or more, counts every binding of that many frames
(formats per slot, sizes, textures, depth, order in frame) and writes
rr-gbuffer-<time>.txt (VICTORY_RR_PROBE_DIR, else %LOCALAPPDATA%\victory\rr-probe),
then stops. Not run in the game yet.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The menu line sets VICTORY_RR (default OFF), with its three-line note and a HELP note
in German and English (a restorer with the original, not just the faded photo; needs
the G-buffer named first, falls back to DLSS SR and says why; not measured in the
game). The launchers pass it from the settings file as any switch.
get-nvidia-sdks.ps1 -RayReconstruction also takes sl.dlss_d.dll and nvngx_dlssd.dll
from NVIDIA's Streamline 2.14.16 archive, signature-checked like the rest.
docs/dlss.md lists VICTORY_RR, VICTORY_RR_GBUFFER, VICTORY_RR_PROBE(_DIR).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
cpu_affinity.rs: every AMD X3D processor (desktop and laptop), the
V-Cache CCD read from Windows (the logical processors under the larger
level-3 cache, GetLogicalProcessorInformationEx RelationCache), never
guessed from the name. VICTORY_X3D=auto|<model>|manual (with
VICTORY_X3D_CPUS, checked strictly); unset is off and changes nothing.

With it on and such a CCD found: the title's self-pinned threads
(victory-hle SetThreadGroupAffinity) take their processor numbers from
that CCD first, and our threads a frame waits for
(cores::select_fast_cores) select its CPU sets on processors of one core
class. One CCD (5800X3D, 7800X3D, 9800X3D) or V-Cache on both: nothing
moves. A model picked moves only if Windows reports its V-Cache cores.
Not measured whether it is faster.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
X3D OPTION (menu/x3d.rs): OFF (default), AUTOMATIC, every X3D model,
MANUAL (logical processors typed, checked strictly; Left/Right offers
this PC's level-3 groups). Shows this PC's processor and L3 groups and
says plainly that a one-CCD model gains nothing.

VRAM PRESETS (menu/vram.rs): tiles NVIDIA and AMD, the card DXGI reports
(DedicatedVideoMemory) picked first, a list of current cards with their
memory, STANDARD, and VRAM MANUAL (EXPERT): 19 memory switches the build
reads (budget cap, texture line, upload per frame, levels on demand,
small textures, slot eviction, render target reserve, card copies,
ray tracing arenas, spare blocks, residency), each with a note in German
and English, its default, its value now and this start's, and the
presets' values for 8/10/12/16/32 GB marked measured or start value.
Presets set every switch of the page or STANDARD; STANDARD takes the
lines out of victory-settings.txt (menu/store.rs), so nothing changes
until a preset is picked. Saved at once, applies at the next start.

menu.rs, i18n.rs, help.rs: two lines that open the pages, their notes,
and the pages' word tables read beside i18n's own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The card detected took its size from DXGI's DedicatedVideoMemory rounded
to the nearest GB. A card reports a little less than it is sold with, and
the more it has the more is missing: an RTX 5090 reports 32,187 MB of its
32 GB (dxdiag, 2026-11-29), 581 short, so the page said
`DETECTED: ... RTX 5090 31 GB` and Enter on it set the 24 GB preset
instead of the 32 GB one. Rounded up now (card_gb); the same card reads
32 GB and gets the 32 GB preset (test this_card_is_read on that PC).

Found in review of x3d-vram.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
cpu_affinity::mode_of trims the value, takes it in any case and reads 0
and off as unset; the page compared the saved line as written. A line
typed by hand into victory-settings.txt (VICTORY_X3D=7950X3D, =AUTO)
therefore moved threads in the run while the page marked OFF as chosen,
with the model's name beside it under NOW. The saved value and this
start's are put into the run's form first (canon).

A list typed past the input's 40 characters was refused as ONLY DIGITS,
COMMA AND MINUS; it says TOO LONG now.

Found in review of x3d-vram.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MODELS says it holds every AMD processor with 3D V-Cache for desktops
and laptops. The Ryzen 5 7500X3D (AM5, Zen 4, 6 cores on one CCD, 96 MB
of level-3 cache) was not in it, so on one the page found no model of
this PC. One CCD: the option does nothing there, as for the 7600X3D.

The other fifteen were checked against what is sold: the 9850X3D
(8 cores, 96 MB) and the 9950X3D2 (16 cores, V-Cache on both CCDs,
192 MB) exist as listed. A 9600X3D was looked for and not found on sale
(2026-11-29), so it stays out.

Found in review of x3d-vram.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Found reading 9d870446 against the disassembly of the image its places
were found in (read only; nothing of this was tried in a run):

- The frame before's field kept the game's own. With a frame before it
  (the usual case) the camera's frame reaches grcViewport::Perspective
  through 0x140875af0, which stores the frame before's field at +0x6e8
  from the camera's own value and has Perspective keep it; 0x144fa2370
  builds the frame before's projection from it. The hook changes xmm1
  only, so that projection had the game's field while its picture had
  been drawn with the factor: the two projections the title reprojects
  between differed by the factor in every frame. The routine gives
  +0x6e8 the factor too, on that call alone (told by the return address
  above 0x140875af0's frame).
- Fields worked out from a widened viewport got the factor again: the
  "one of ours" test knows a field's bits, not where it comes from. The
  mirror's view (cut out of a copy of the camera's viewport by its
  tan(fov/2)), the copy with 1.3 times the field that the title sets up
  while the camera's is below 40 degrees (with a factor under about
  0.75 it came out narrower than the picture), and the measure against
  the 51.28 degree reference (widened only with the factor set at the
  start, on a 16:9 output). Those calls, and two that pass a viewport's
  stored field on, are left alone by their return addresses; each is
  checked as that call before the hook goes in, else the line says
  NOT ACTIVE.
- install read its places wherever they would be: an image that ends
  before them (another title, a smaller build) was read past its end
  instead of being left alone and logged. It takes the image's size and
  reads nothing outside it.
- widened(): an output shape that is not finite passed the shape test
  for every perspective.

Tests: the routine on the camera's call, the mirror's, the calls left
alone and any other; the same through the real thunk on code laid out
as the title's (the caller's caller found above the frame); an image
too small. The viewhook tests run one at a time: they share the
routine's statics.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
rr::gather took the addresses of the last G-buffer binding (gbuffer::LATEST, up to
four frames old, and a list recorded on another thread can reach its upscaling before
this frame's G-buffer pass is bound) and asked resource::is_resource of each. That
reads the first word of what is at the address: a texture the title released since is
freed memory that may still hold the table pointer, and host_resource then locked a
mutex and made a host copy inside it (a title that makes its targets anew releases exactly
these). resource::held_texture pins the texture under the table of live
textures, as alias_of does (fork PR #1336): one that left the table, or is being
released, is "gone" and the frame goes to DLSS SR. The pins live in Guides until the
upscaling is recorded; the host copies were held by the list already.

Guides is no longer Send by an unsafe impl: nothing sends it, and it now holds title
pointers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
sl.dlss_d drops NGX's answer (dlss_dEntry.cpp of 2.14.16: evaluateFeature's result is
not looked at, dlssdEndEvent returns ok), so slEvaluateFeature(kFeatureDLSS_RR) is ok
for an evaluation the driver refused: rr::evaluate took the frame as done, the 30
refusals in a row that turn Ray Reconstruction off were never counted, and the output
kept what it had. The refusal is only in Streamline's log, as
"[sl.dlss_d] NGX evaluate feature failed 0x...", and log_message counted every such
line for DLSS SR: after 90 of them DLSS and frame generation were given up for the run
and the title's own upscaler took over, for a fault of Ray Reconstruction alone.

Lines that name sl.dlss_d now go to rr::refused_by_ngx: 30 of them turn Ray
Reconstruction off for the run and DLSS SR upscales, as for the refusals Streamline
returns. In all, not in a row: an evaluation NGX took is not said, and the log thread
is behind the frame. DLSS SR's own count no longer sees them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
rr::fallback says a reason once per change, but "the G-buffer pass ... was last seen
N frames ago" carried the count, which grows with every frame: a warning per
upscaling for as long as the pass stayed away (a pass named for another quality
setting: every frame of the run). The count is out of the text.

VICTORY_RR_PROBE: PROBE_DONE was read before the probe's lock was taken, so a binding
recorded on another thread that waited for the lock while the report was made got the
report again and wrote and logged it a second time. The probe itself now knows it is
done, under its lock, and lets go of what it counted.

abi.rs: the space cb781738 took out of SlDlssgSetOptions' line is back.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
places_written_after_sending_are_learned and fills_done_on_the_cpu_are_learned_too
each learn the second page of a 16 KiB block of their own, in late::PAGES, which is
the process's, and free the block. When the allocator gives the second test the
first one's block, its opening assertion finds the page learned already. On
ray-reconstruction with --test-threads=1 it did in both runs made (card_steps.rs:2118;
special-next's binary happened to get another block). Test-only: late::forget, called
by both for their own two pages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The console build hides 21 rows of its settings menu (Camera > First Person,
Controller > First Person Aim and Look) by a condition record [0, 0, 0x1d, 1]
whose feature 0x1d has no case in the title's feature query (always 0). The
new line (VICTORY_HIDDEN_SETTINGS=1, default off) sets those records' want
byte to 0, one byte of .data each, after checking the visibility routine, the
query's switch and jump table, both vtable slots and every row's label and
setting hash. Mouse rows stay hidden. The game keeps and saves the values
itself. Row names for the camera rows are not supplied (text lookup not
found); found in the image only, not tested in the game.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two more lines of our own at the top of GAME SETTINGS (F1), after FIELD OF
VIEW and LENS FLARES, saved at once into the settings file
(VICTORY_VIGNETTE, VICTORY_DOF; 0: off, unset: the game's own).

- VIGNETTE: an entry hook on the title's vignette packer (0x14067e270,
  rdx the vignette's 0x40 bytes, strength at +0x30, its two callers
  0x14067e13d and 0x14290dad4). Off: the packer reads a per-thread copy
  whose strength is 0, the empty vignette's (0x145079db0); the title's
  own values are untouched. Covers the timecycle's vignette (both slot
  objects 0x147659a80 / 0x147659b90) and every screen effect's. Live.
- DEPTH OF FIELD: the depth of field's kind is decided once at its setup
  (0x145745070 takes +0xa4, set to 2 by 0x14123aeb0, into +0x1b8; 0 is
  the title's own "setup failed: none" and skips it every frame). Off at
  the start: the immediate's low byte becomes 0, checked first. Not live
  (0x1428e8050 resizes its targets only for a kind other than 0), so the
  line says NEXT START until a restart.

Every place is checked against the bytes it was found with; another build
is left alone and the line says NOT ACTIVE. Help (DE/EN) says what is
covered: cutscenes and scopes lose their depth of field too; the gradient
at the top and bottom is not the vignette; the game's three sliders of
default 5 (0x14a9450e0/+4/+8, likely Visual Effects) scale only effect
vignettes. Read in the image and its decompile, not tried in a run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review of 8e2ccaf7 against the image (game_scarlett_master.exe 1.0.2.1, read
only; nothing run).

The note after the switch said SAVED, APPLIES WHEN THE GAME'S MENU OPENS NEXT
in every state, also with the rows not found (the line marked NOT ACTIVE),
where nothing of the game is changed. Then it now says SAVED, BUT NOT ACTIVE:
NOTHING CHANGES IN THE GAME. The note is a function of the rows' state and the
save's answer (hidden_note), tested in each state; the key test takes either
note, as the state is shared by the tests beside it.

hiddenrows' module text: the visibility at 0x1423a36d0 is the virtual of the
row classes made from a descriptor (40 vtables), not of every row class. The
rows the title makes in code have a twin (0x14239ee60, the record in the row
itself); none of them asks for feature 0x1d. Added what the review found: the
query has no caller but these two, and a row's state is worked out again at
each listing, which is why a change shows from the next one.

Nothing of what is written into the title is changed.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Review of e8fc2992. The module said kind 0 "gives the picture its fallback
(0x141fb3c60)". Read again in the image: that function is reached from
0x1428e8500 only (the call at 0x1428e8732, through the pointer the setup
stores), which runs only for a kind other than 0, and its stand-in texture
is for a kind other than 2 and 4. With 0, the pass at 0x1428fe780 takes its
variant without a depth of field (0x1428ead60 gives 0), as in a frame whose
values were not taken.

All sixteen places of the code that name the object (*0x149e24e70) were
looked at: every one that reads the kind for a frame's work asks "not 0"
first (0x140006170), the three in the frame's own function 0x1417bd7f0
among them.

Also said now: the byte changes the kind asked only, the setup's own work
stays (it reads +0xa8 and +0xb0), so nothing a reader could reach is
missing, unlike after a setup that really failed; and that the setting is
not tried with DLSS or frame generation on.

Comment only, no code changed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	crates/victory-gpu/src/host/menu.rs
#	crates/victory-gpu/src/host/menu/game.rs
#	crates/victory-gpu/src/host/menu/i18n.rs
#	crates/victory-gpu/src/view_fx.rs
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A line under UNLOCK HIDDEN SETTINGS. Enter closes the F1 box (once Enter is
let go, 300 ms at least, so the game does not take it as a press) and a
narrow numbered list of the 21 rows stands at the picture's right edge, 20 px
from it and the top, by the back buffer's own size: Camera > First Person
(1-9, named in our words after VI-Patch's names for the same label hashes)
and Controller > First Person Aim (10-21: their label hashes are their
twins', so the game names them, each name twice; 11 has its twin's setting
hash). F1 brings the box back at that line. With the rows off or not found
only the note says so. In the F1 menu's language, every text in i18n's table
(every_shown_text_has_both_languages reads names.rs too).

The order is the rows' descriptors' in .data, which their accessors and
vtables follow; the page's own order and the place between the shown rows
were not found in the image, and the list says so. Drawn by copies as the box
is, line by line only as wide as the text: not see-through (a copy cannot
blend).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The pictures of the G-buffer held RGB only and scaled floats to their largest value: the
alpha channels (where a title keeps roughness or flags) and the true ranges of float targets
were not to be seen. With VICTORY_DUMP_TARGETS each target now also gets <name>.txt (each
channel's low, high, mean, deviation, share of zero, the most common 8-bit values; also in
the log), <name>-alpha.png for four-channel targets and <name>-r/-g.png for two-channel ones.
VICTORY_DUMP_CHANNELS=0 leaves them out; VICTORY_DUMP_RAW=2 saves the raw rows of targets
wider than 1500 texels (the 1706-wide G-buffer). Diagnostics builds only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Read from the title's own shaders (outside the repository): the G-buffer pixel shaders'
exports and the tiled lighting that reads them. Slot 0 (sRGB view of typeless f27) is diffuse
albedo; slot 1 holds gloss in red and a world-space octahedral normal of 12+12 bits in green,
blue and alpha (the lighting unpacks it with & 0xfff, bfe 12,12 and 1/2047.5); slot 2 is F0
stored as sqrt(1 - sqrt(1 - F0)) (read as x^2 (2 - x^2); 0.04 is the 0.14 the pictures
showed); slot 4 is the title's motion vectors, slots 3 and 5 material parameters.

- The map takes encodings: normals:<n>oct24, roughness:<n>gloss, specular:<n>f0|f0sq.
  Unset, VICTORY_RR_GBUFFER is pass:29/28/28/28/34/28,albedo:0,specular:2f0sq,normals:1oct24,
  roughness:1gloss; none turns it off.
- rr/convert.rs: a compute pass before the upscaling makes linear albedo, specular albedo
  (NVIDIA's EnvBRDFApprox2, N.V taken as 0.5: no camera rotation is known) and normals with
  roughness in alpha (RGBA16F, ePacked) in textures of ours; checked on WARP against the
  title's own encoding.
- The G-buffer pass counts only at the DLSS render size with depth of that size (the same
  formats at 1024x1024 no longer take its place).
- A change between Ray Reconstruction and SR resets the history in that frame's constants,
  and SR after a refused Ray Reconstruction gets its own reset answer.

Not yet seen running in the game.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review of 98d79b83.

The box gave way to the list at the start of a frame, before that frame's
keys: an F1 or Esc pressed in the wait's last frame (the box still shown)
was then read with the list up, so F1 brought the box straight back instead
of closing it and Esc went to nobody. The frame's keys come first now, and
any other key in GAME SETTINGS before the box closes drops the list (Up and
Enter within the wait turned UNLOCK HIDDEN SETTINGS off and the list of rows
the game's menu no longer has still came; F1 came back to another line).

F1 from the list opened the box without what the usual opening reads again:
the title has the keys while the list stands, F8 among them, and VEHICLE
AUTO-CENTER showed the value from before. One function for both openings.

A test holds every line's box inside the picture and inside the box's own
picture for sizes down to nothing (640x360 has the whole list); the frame's
key order has none, it reads the process's key queue and open flag.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Found in the review of rr-guides. A frame Ray Reconstruction was meant to take and Streamline
refused got its constants a second time, with SR's own reset. Streamline takes constants once
a frame: other ones for the same frame and viewport are put in place of the first, but
answered eErrorDuplicatedConstants (27; ViewportIdFrameData<3, true>::set in sl.common's
commonInterface.h of 2.14.16, with an error in its log). record_guided returned on that
answer, so neither upscaler took the frame and the output kept what it had: wherever the two
resets differ, which is every refused frame once anything was upscaled, 30 times in a row
before Ray Reconstruction is given up.

- The second slSetConstants happens only where SR's reset differs from the one set, 27
  counts as set (constants_set_again), and SR takes the frame whatever the answer.
- rr::evaluate is split: rr::prepare sets Ray Reconstruction's options and refuses what
  needs no evaluation (a render outside its range for the mode, slDLSSDSetOptions) before
  the constants are set, so such a frame goes to SR with constants set once, for SR.

Read in Streamline's source, not seen in the game: no start has had Ray Reconstruction
evaluate yet.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Found in the review of rr-guides. The target pictures of 2026-11-29 (frame 9446, every other
texel) have 78% of the frame at zero in the albedo, normal and F0 slots alike: the sky,
which no G-buffer shader writes. The pass decoded it like geometry: black albedo, gloss 0 as
roughness 1, and the normal zero decodes to. NVIDIA's integration guide for Ray
Reconstruction (3.4.1 to 3.4.4) asks for albedo 0.5 there ("a common integration error is to
leave sky pixels un-cleared"), specular albedo 0, normal 0 and roughness 0. The pass writes
those where the colours of all three slots are zero (alpha is not asked; no texel of that
frame was zero in the normal slot only), checked on WARP with a fifth texel.

The same pictures answer the shortcut about vegetation, noted at BUILT_IN: the 27,266
written texels with vegetation's F0 hold a 12-bit y that is an 8-bit number widened in 99.9%
(9.6% for F0 0.04, 6% by chance): 8-bit normals in the same 24-bit packing, which oct24
reads rightly. Only 44 texels had a normal without albedo and F0. The alpha byte and a frame
with impostors in view are not measured.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Found in the review of rr-guides; the built-in map reaches neither.

- A map whose guides go through the pass for another reason (an sRGB albedo, F0) while its
  normals are kept plain skipped the format check tagged normals get: 8-bit or 10:10:10:2
  normals were read as their unsigned bytes. They are refused with the reason now
  (Map::plain_normals_refused).
- specmv:<slot> was dropped without a word when the pass made the guides. It is prepared
  before the pass is recorded, so that nothing is refused after it, and tagged beside what
  the pass makes.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Found in the review of rr-guides. D3DCompile refuses `cbuffer Pass`: "error X3000: syntax
error: unexpected token 'Pass'" (the effect files' `pass`, in any case of letters), for every
reading of the inputs. crate::hlsl then tries DXC, which is only there where VICTORY_DXC
names it or the Windows SDK is installed (beside its dxil.dll). The test on the software
adapter passed on this PC that way and said nothing; on a PC without the SDK the pass is "not
compiled or not made", Ray Reconstruction never has its guides, and DLSS SR upscales.

The buffer is named Constants. The system's compiler now takes all 18 readings (cs_5_1, the
root signature inside), and a test asks it for each.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
A line in GAME SETTINGS under SHOW MENU NAMES (VICTORY_WEATHER_FIX=1, off by
default, live, saved at once). An entry hook on the weather's update
(0x142370f50) does what VI-Patch's PS5 "Weather fix" (ZiZc3, findings by
idarius and TaPiOn-) does, one to one: when the game is not changing the
weather itself, the first of five story flags that is set picks a season and
one of its lists, and the game's setter (0x142370890, under the script lock
as its native takes it) puts the weather there; kept for 600 updates, tried
eight times. Every place is this build's, found by its structure (the same
block of globals as on the PS5, every offset the same) and checked byte by
byte at the start; another build says NOT ACTIVE. Once a minute the log says
the weather's season and list, on or off. Not tried in the game.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review of 10f2ff98 against the image (own disassembly, 2026-11-30).

Switched off, the hook kept what it had aimed at. A season settled before
the switch (its 600 runs over) was then never set again when the switch
went back on, whatever a script or a loaded save had done to the weather in
between: the line says APPLIES AT ONCE, and nothing happened. Off now
forgets the aim, so on again starts as VI-Patch starts. On, the logic is
VI-Patch's as before.

The module's notes say what was read for the review: the update's one
caller and that it is left out while the game is paused, that no lock is
taken on the way from the weather's step to the hook and the setter does
not call the update, that
what the setter writes the update's thread writes anyway, that the script
lock is the natives' alone, and that the network event takes the weather's
own lock, the loaded save none. Also the two natives that set the season or
the list alone, which do not go through the setter.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two lines in GAME SETTINGS under WEATHER FIX. MANUAL WEATHER: Left/Right
picks GAME DECIDES (default) or one of 20 weather types of the game's
weather data (the AM_ types its indirection list leads to, named after their
precipitation, atmosphere, cloud and thunder modifiers); Enter orders it.
WEATHER CHANGE: at once, or over 10, 30, 60 seconds (VICTORY_WEATHER_CHANGE,
saved). The weather itself is not saved, nor is it in the game's save.

Done the way a mission's script does it: in the weather update's hook (the
update's thread), under the script lock, through the set-weather native's
own function 0x143e950f0 with "held" (0x142371e60 at once, 0x142370eb0 over
time); GAME DECIDES through the let-go native's 0x143eb8510 (or 0x142370e70
for a change still under way). Nothing is done while a mission holds the
weather; a mission's own weather later wins and ours is let go (ENDED).
WEATHER FIX keeps out while ours is held or under way. Every place checked
byte by byte at the start; another build says NOT ACTIVE. Not tried in the
game.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	crates/victory-gpu/src/copystat.rs
#	crates/victory-gpu/src/host/menu.rs
Read again in the image (2026-11-30), three places where the menu took its own
weather for a mission's:

A weather asked over time while one of ours is held: the game's change
(0x142370eb0) leaves the asked state (0x14ab461cc) at the one held until the
change ends and it holds the new one. That was read as "not ours": ENDED at
once, and after the change the new weather stayed asked for good, GAME DECIDES
did nothing and every weather asked said MISSION. What is ours is now kept as
the game shows it: the type held, or the change to it over what was asked when
it began.

GAME DECIDES where the season's list has no state of the type (most of the
20): the game's let-go (0x142370c10) changes over 45 s to a type it picks and
keeps ours asked until then. A weather asked meanwhile said MISSION. That time
is ours too: it can be replaced, and if the change ends with ours asked still
it is let go again, so nothing stays asked that the menu cannot let go.

The look at what is asked and the call are both under the script lock now (no
native between the two), and the menu stores WAITING before what it asks, so
the hook's answer is the last word.

The two switches passed as 0 are written down as read: the sixth's bit 0
(0x14ab461ac) is asked by the sky's update each frame, the seventh zeroes the
ground's wetness and puddles (0x14ab46220, 0x14ab4622c); neither is part of
what is asked or held. The weather types are in common.rpf, not data.rpf
(168 types, the 20 each there once). HELP and README say the 45 seconds.

Not tried in the game.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ported from the frame-diagnostics copy onto the current timeline:
- VICTORY_WAKE_DIAG: long single-handle waits and the signals of handles
  waited on, as calls with result, last error and stack (wake-detail).
- VICTORY_FENCE_DIAG: console fence sets, lock/store/wake timed apart.
- VICTORY_HOST_FENCE_DIAG: the host queue's fence signals (all four
  submission paths, the sent-ahead one included) and the relay's and late
  helper's waits, step by step, with the waiting thread's CPU time.
- VICTORY_SAMPLE_ALL, VICTORY_SAMPLE_TIDS_FILE, VICTORY_SAMPLE_REGISTERS:
  every thread, or the threads named in a file, sampled.
- Captures numbered (timeline.001.json, with the stall mark kept), up to
  600 frames, never written over; a warning when GPU timestamps run out;
  the present span split into Streamline, DXGI call and completion.

All of it is behind the diagnostics feature and a timeline; the switches
are read with asked_for!. A release build is unchanged but for the host
queue's Signal going through a wrapper that only calls it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Which files the title opens through files' bindings, DirectStorage and
save blobs, and which parts it reads and writes, as runs in a
tab-separated file (VICTORY_FILE_TRACE_FILE, else file-trace.tsv in
VICTORY_DIAG_SESSION). Paths, offsets, sizes and threads only.

Without the diagnostics feature file_trace::on is false at compile time,
so every check goes with it, and WriteFile stays the host's (it is bound
to a pass-through in diagnostics builds alone). Ported onto the current
files.rs, beside title_io's buffered opens and read statistics.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The starter copies the save data (checked file by file), the feeder's
runtime and an empty cache into a run folder outside the repository
(-RunsDir, default %LOCALAPPDATA%\victory\frame-diag-runs) and starts the
diagnostics build through play-foxhound.ps1 with a series of timelines and
the detail switches asked for. Paths are parameters, relative to the
repository by default.

play-foxhound.ps1 takes -LogDir (carried over a restart from F1); with its
-FeederDir, -DataDir, -CacheDir and -SettingsFile it does what the copy's
play-frame-diag-internal.ps1 did, so that copy of the launcher is not
added.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
VICTORY_FILE_TRACE=1 alone wrote file-trace.tsv into the current folder,
and scripts\play-foxhound.ps1 starts the game from the repository's folder
(the feeder path from its runtime folder, inside it by default): which
files the title has, their sizes and the parts it reads would have landed
in the source tree. The destination goes through
victory_core::ensure_outside_repo now; a file inside is refused with a
warning and nothing is traced. START_FRAME_DIAG.ps1 names a file in its
run folder and is not affected.

Checked without the title, through the bound functions in the crate's own
tests (diagnostics, VICTORY_FILE_TRACE=1): with the switch alone no file
in the tree, with VICTORY_FILE_TRACE_FILE outside it the opens and runs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- [IO.Path]::GetFullPath counts a relative path from the process's folder,
  which a cd in the window does not change. With -SaveData .\save and
  -RunsDir .\runs after a cd, the save data was found in one folder and
  copied from the other (robocopy code 16), and the run folder was made
  under the process's folder, not where the check against the repository
  had looked. The paths are made absolute from PowerShell's folder first.
- play-foxhound.ps1 inherited this script's $ErrorActionPreference 'Stop',
  so it ran otherwise than started by itself; under Windows PowerShell 5.1
  that ends it at the first line a program writes to an error output the
  launcher redirects (`shader-model 2>$null`; seen with a stand-in, on
  this PC victory.exe writes none there). Set back before the call.
- The feeder's folder without a backslash at its end, for robocopy.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two log lines in ReadFile and three assertions in the tests were rewrapped
without being changed (AGENTS.md: no reformatting of lines not otherwise
changed). They are as on special-next again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The refresh's changed runs of a page (changed_runs) and the merge of what
shaders wrote with what the title wrote meanwhile (back_piece) get AVX2
paths, picked once at start by crate::simd: VICTORY_SIMD=auto (the
default: AVX2 where the CPU has it), avx2, or off (the code from before).
No global target-cpu: the build still runs on CPUs without AVX2. Each path
is tested against the plain one on lengths 0..300 and pages, at unaligned
starts. The 64 KiB piece compare stays a slice != (memory bound).

On a Ryzen 7 5800X3D (simd_costs, release), old -> AVX2 per piece:
changed_runs 4 KiB 1.6-4.9x, 64 KiB 1.6-6.0x where bytes changed, about
the same where none did; back_piece merge 4 KiB 2.2-10.9x, 64 KiB
1.7-20x.

F1 row CPU VECTOR CODE (RESTART) / CPU-VEKTORCODE (NEUSTART), with its
German text and help.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
crate::switch::perf(name, default): an optimization's own variable set to 0 or 1 wins; unset or empty, it is on when VICTORY_PERF_NEXT is (unset or anything but 0) and its default says so. VICTORY_PERF_NEXT=0 turns all of them off, as before them.

F1: "PERFORMANCE OPTIMIZATIONS (RESTART)" / "LEISTUNGS-OPTIMIERUNGEN (NEUSTART)", ON (unset) and OFF (0), with its note in both languages and the HILFE/HELP text.

Tests: the master switch and an optimization's own variable, both ways.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
"refreshes per frame": in front of submissions the sifting, the asking ahead and the copying on the threads, with the copies' time summed over the threads and each flush's longest one; among the steps the flushes of many and the others; of every refresh that asked the write watch, the asking and the copying (MB); the kernel's copies of title memory; and the write watch's answers by the way they came (the journal asked ahead, memory whose owner tells, the bits, the kernel or the guards), the last split into waiting to hold the range, the kernel, the guards, and the wait for the guards' lock. The two diagnostics-only lines for the front and the flushes of many are folded into it.

What it showed (5800X3D + RTX 5090, the city, 2026-11-30): the ~8,000 refreshes a frame known to copy nothing cost ~1 ms of sifting; the 12-13 ms are the ~950 that copy, 64-72 ms over the threads, of which ~50 ms asking the write watch, ~35-40 ms of it the ~215 copies of guarded views in watch::guard, 26-34 ms of that waiting for the guards' lock (VirtualProtect, one at a time); the copying itself ~11-13 ms for 50-57 MB.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The split of preparing and sending (ported from Biskwit/VIctory-reloaded, until now opt-in here) is on unless VICTORY_SUBMIT_SPLIT=0 or VICTORY_PERF_NEXT=0; =1 still turns it on alone. Its other conditions stay (the relay's second stage, its fetches on the copy queue, the sends taken at preparing).

Measured on a Ryzen 7 5800X3D + RTX 5090, 2560x1440 DLSS Q + FG, the city scene, release, 2 min a run after 30 s, on and off in turn: 16.2 and 16.1 fps on, 14.8 and 15.9 off (about +5%); the line's thread works 54-58 ms a frame instead of 62-63 (recording the sends to copies in the card's memory, 4 ms, and putting the lists on the queue, 2.7 ms, moved to the sender). Earlier runs that were not in turn showed more (18.5-18.7 on against 16.4 off), but the off case drifted up over the session to 18.0: those numbers are not a fair comparison. No new warning or error kind in the log; dropped draws as without it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The published path carries none of those; asked for with VICTORY_SUBMIT_SPLIT=1 it stays as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A line beside "host copies in the card's memory", in every build: the
copies of title buffers and of windows by where their bytes are (two
sides with the CPU's in shared memory or in the process, one side in
shared memory, one side in card memory the CPU maps), arenas, texture
staging and the lists' upload chunks, with the card's own and the shared
use. On the RTX 5090 (budget 31,419 MB) it told the 8 GB of shared memory
apart: 5,118 MB the CPU's sides of 834 windows (held to 5,120 MB on the
card by the windows' cap), 660 MB of 99 windows the card read over the
bus, 1,093 MB the CPU's sides of 3,468 title buffers, 156 MB staging,
205 MB upload chunks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With VICTORY_PERF_NEXT, a card whose budget is 20 GiB or more and whose
memory can be mapped (GPU_UPLOAD) takes windows outside buffers into
card memory the CPU maps, up to a quarter of its budget, unless
VICTORY_WINDOWS_BAR_MB says otherwise; VICTORY_VRAM_WINDOWS_BAR=0: as
before. Small cards and small hosts are as they were.

RTX 5090, Ryzen 7 5800X3D, 1440p, 120 s each, OFF ON ON OFF ON OFF:
17.8 18.6 18.4 17.6 18.5 17.1 fps (17.5 against 18.5, +6 %), 56.3 53.9
54.8 56.8 54.6 58.7 ms. Memory, OFF: the card's own 15.6-15.9 GB, the PC's
shared with the card 7.8-8.1 GB, committed 35.1 GB; ON: 14.7-15.0 GB,
3.8-4.0 GB, 30.0-30.3 GB. All 912 windows (5.65 GB) lie on the card alone:
the 5.1 GB of their CPU sides and their sends are gone, and so is the
second copy on the card. No new kinds of warnings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR #2607 (`2fe2d4cc`) compacts the unpublished suffix of `RemapQueue` whenever
the queue reaches `REMAP_LIMIT` (32,768). Under sustained disjoint write/landing
storms in live gameplay (hundreds of thousands of evictions per session), the
queue stays at `REMAP_LIMIT` and every subsequent `remapped()` call allocates a
`Vec`, drains, sorts (`O(N log N)`), and re-pushes up to 32,768 entries while
holding the global `REMAPPED` mutex, inflating `landing` "opening or noting
guards" time 10x-25x (1.3-1.95 ms in v28.03/v29.01 -> 26.5-53.9 ms/frame in
v29.05).

Fix (`crates/victory-gpu/src/descriptor/host.rs`):
- Skip impossible `unpub_len < 2` compactions (the single-entry tail was already
  checked for overlap by the back-entry fast path).
- Add `compact_after` cooldown backoff after overflowing or non-shrinking
  (< 25% reduction) compactions, doubling by `unpub.len().max(2)` and resetting
  to `0` on `snapshot()`, while keeping `evicted` strictly monotonic.
- Preserves full burst compaction for compressible overlapping bursts while
  bounding disjoint overflow storms to amortized O(log N) under `REMAPPED`.

Tests:
- All existing PR #2607 tests pass (`remap_history_compacts_unpublished_bursts_without_evicting`,
  `refresh_remapped_advances_cursor_when_no_slots_match`,
  `remap_history_delivers_extended_ranges_and_detects_eviction`).
- Added 3 regression tests covering 100k disjoint overflow storm, repeated
  overlapping/publish cycles, and 4-writer + reader concurrency/lock-hold latency.

AI-Assisted: Developed and verified with AI assistance (Antigravity / Gemini).
(cherry picked from commit 223f22f0c8)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ported from PR #1358 (1b4b50c9): relay_land() ran bury(last) before
LINE_LANDED.notify_all(), dropping ~20,000 retired COM references a frame on
the relay thread (3.75-8.75 ms; one release has blocked 411 ms on a
5800X). bury() now hands the drained prefix to a lazily spawned
victory-bury thread (at most 64 batches waiting; more, or no thread: dropped
inline as before). Objects are let go later, never sooner. Here behind its
own switch of VICTORY_PERF_NEXT, VICTORY_BURY_THREAD=0: inline as before.

(cherry picked from commit 1b4b50c9a2)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- victory-bury catches a panic in a drop and goes on, so the batches behind
  it are not held for ever; start and a failed spawn are logged.
- The comment says VICTORY_RELAY_TIMING=1 drops on the relay thread again.
- The compaction back-off of 223f22f0 is a switch of VICTORY_PERF_NEXT
  (VICTORY_REMAP_BACKOFF); off, a full queue compacts on every record.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Conflicts resolved keeping every special-next feature and taking upstream's
new structure and defaults:
- play.rs: our ALIAS_TARGETS=0 / REFLEX=on beside upstream's bench set
  (CARD_ALL, UAV_FOLD, waits, lazy compare, #3838 copy-back classes).
- descriptor/host.rs: upstream has the RemapQueue back-off (223f22f0) itself;
  VICTORY_REMAP_BACKOFF stays only as an opt-out (=0), on also with
  VICTORY_PERF_NEXT=0.
- host.rs: burying thread is upstream's now; our panic guard, start log and
  VICTORY_BURY_THREAD=0 opt-out kept (no longer tied to PERF_NEXT).
  refresh_front on upstream's chunked jobs with our FRONT/FRONT_ONE timing;
  host fence signal through signal_host_queue with upstream's fail();
  present on upstream's present_aside/own path with our timeline spans;
  census line and upstream's range-memo line both kept.
- menu.rs: upstream mouse control, failed_at retry, launched values and
  safe save on top of our pages (GAME SETTINGS, X3D, VRAM, names, i18n);
  clicks open the same pages as Enter, right click/wheel work there too;
  mouse hit test uses our box geometry (placed/TALL); upstream's
  backbuffer size was only set after a failed buffer, now every frame.
- shadow.rs: upstream's 4096 MB windows default from 14 GiB, ours
  (VRAM_WINDOWS_BAR, a quarter of a 20 GiB+ budget) as the larger value.
- streamline.rs: our Reflex Presenting plus upstream's FG input snapshot.
- watch.rs, files.rs, kernel.rs: upstream helpers (not_write_watched,
  p.shown(), fast count) with our split timing, file trace and X3D order.
Semantic fixes after the merge: card_steps test forget duplicate, census on
Buffers.map, writes_way projection type, card_pass test args, play finish.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With VICTORY_SUBMIT_SPLIT=1 the next submission's card_take can make a
copy's "before" hash buffer (Card::before, a lock-free OnceLock) while
card_record records the sync list of the one before it. card_record asked
for that buffer separately for the sends' transitions
(send::Own::record), for the fallback path's transition to a read state and
for the hash passes, so a pass could be recorded over a copy still in
COPY_DEST or UNORDERED_ACCESS with no barrier to a read state.

The buffers are now looked at once, right after the sync list is taken,
and that one answer goes to the sends, the transitions and the hash
passes. A copy whose buffer appears later is hashed whole by the take
that made it, which is behind this list on the queue. The compare lists
recorded later in card_record are unchanged.

Port of Biskwit/VIctory-reloaded 4d3eae2 (GPL-3.0-or-later).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
`slots_showing` took the slot's `Made` key with `?`, but `Made` has keys
for the title's `count` slots only while `kept` also has the dynamic
ones: a host texture shown by a dynamic slot was no longer reported, so
it was no longer blocked and could be chosen (freeing nothing, as the
dynamic slot holds a reference, while the title made a second copy).
Those slots are reported again with key 0, as before the key was carried;
they are never put back to waiting, only counted as blocking. Test:
`a_dynamic_slot_showing_a_texture_still_blocks_its_eviction`.

`SLOT_LOOKING` is now cleared by a drop guard, so a look that panics does
not stop every later look.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit b23c0c4038)
- HARDWARE RAY TRACING (VICTORY_HW_RT): German label and description,
  HELP text in both languages.
- WATER LIGHT HELP: off is now the default on 32-lane hosts (#739), the
  old "an empty value counts as ON" no longer holds.
- German for upstream's new notes (reset failed, key wait lost focus).
- Mouse click test reads the visible rows after each click (our action
  list is longer, so the window scrolls).
- thin.rs: the occlusion query calls (#3715) are counted as work in
  bindings_record_no_work.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The bench set of c71899d9 (CARD_ALL, UAV_FOLD, WAIT_SHARE, QUIET_WAITS,
COMPILE_MEMORY=0, TEXTURE_SOFT_MB, LAZY_COMPARE_MB, LAZY_NARROW,
TABLE_SAME, CARD_CPU_FILE, the #3838 copy-back classes) stood only in
`victory play`'s SETTINGS; the launcher the starters use set none of it.
Also SAMPLED_MARKS / SAMPLED_EVICT=0, BVH_MISS and NAN_SCRUB as play.rs.
Lines saved in victory-settings.txt (F1) still win; the copy-back classes
are ignored under VICTORY_HW_RT=1 by the layer itself (9a427c14).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Port of upstream PR #3760 (2789218a, 8bdc117b): a refresh that guards a
range marks the blocks read-only and being changed (PROTECTED,
g.protected, PROTECTING) under the guards' lock, lets the lock go for the
VirtualProtect calls of the blocks and of the other views of their pages,
and takes it again to note the result. Mutators that open, unmap or free
guarded memory take PROTECT_GATE for writing; faults on a block being
changed wait for it (spin, yield, sleep).

Adapted to this branch:
- guard_unlocked (the PR's guard_with_pub) follows this branch's guard():
  the lock-free known-view check, the clean-or-held fast path that only
  reports blocks written beside the guards, no VICTORY_KEEP_GUARD_LOCK,
  soft runs read only when something is protected, and soft views noted in
  Guards::soft as protect_here/protect_alias do.
- publish_range (this branch's publish) gets a word-at-a-time form that
  skips blocks in PROTECTING; the PR's publish_pairs/any_publishable are
  not needed with it.
- The switch is read through switch::perf (part of VICTORY_PERF_NEXT, on
  by default, own 0/1 wins) once, in a OnceLock. Off, guard(), publish and
  every mutator run exactly as before: the gate is not taken and faults do
  not look at PROTECTING.
- #3756 (EPOCH_GATE) overlaps and is not taken.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream PR #3523: a thread that finds the guards' lock held tries it
again for some microseconds before it sleeps on it. Here a part of
VICTORY_PERF_NEXT (switch::perf), on by default with the 200 us the PR
measured with (preparing 5 to 10 ms shorter at every scene weight on its
rig); VICTORY_GUARD_SPIN=0 sleeps at once as before, 1 is the default,
any other number that many microseconds (at most 1000).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream PR #3753 (c9d75052): a copy's landing pages are noted in a
lazily made bitmap of atomic words instead of a vector behind a lock;
take_landed of a range where nothing landed copies it at once, with no
lock, no allocation and no cutting into 64 KiB pieces, and mixed ranges
skip whole zero words. The switch keeps the PR's name and is read through
switch::perf once (part of VICTORY_PERF_NEXT, on by default; =0 the
locked vector as before). Merged beside this branch's range memo.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream PR #3958 (fa6e1799, 90737366, merged on main 495ce2e3): a flush
asks each reference's write-watch coverage and copy stamps
(Shadow::refresh_span, watch::refresh_span) and drops clean references or
cuts a guarded multi-page range to its first and last written page; full
ranges stay where coverage is not sure or shader writes are in flight. A
single-page range copies only its written 4 KiB parts. The relay's
retirements reuse each flight's writes joined at submission.

Adapted: the PR's switch name is kept and read through switch::perf once
(part of VICTORY_PERF_NEXT, on by default). The PR left the single-page
copy and the relay's reuse unswitched; here both are behind the switch
too, so VICTORY_SUBMIT_DIRTY_PAGES=0 runs the previous selection, copy and
retirement exactly. Merged beside this branch's Flight::dirty.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
From upstream PR #3877 (c0e1710f): before a full RemapQueue compacts or
drops its oldest range, it tries to join the new range into one of its
last eight unpublished ranges (landing threads alternate on nearby
ranges, so the last one alone rarely matches). Published history and the
heaps' cursors stay as they are; at most seven entries move.

Not taken: the PR's first commit (3d3d9a81), which compacts a full queue
at most every quarter of its length. This branch already has upstream's
RemapQueue back-off (223f22f0, VICTORY_REMAP_BACKOFF), which bounds the
same storms of compactions that free nothing with an adaptive cooldown;
both gates on one compaction would only compact less and drop more
history. The two compose: the join runs before the back-off's compaction.

The PR's switch name is kept; it is read through switch::perf once (part
of VICTORY_PERF_NEXT, on by default; =0 as before). Its numeric meaning
(ranges between compactions) is gone with the quarter rule.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Port of upstream PR #3945 (788a64fc) onto this branch's watch, which has
publish_range instead of publish and #3760's guard_unlocked:
- Guards::clean and Guards::held keep copies of themselves in atomic bits
  (CLEAN, HELD). Unlike the PR, which converted call sites one by one, the
  two sets are a type (Mirrored) whose every change goes through methods
  that update the copy, so no site can be missed (#3760's word writes
  included); the copy is cleared before the PUBLISHED.clear that follows.
- publish_range reads them with no lock and a SeqCst re-check (the PR's
  Dekker barrier), word by word, skipping blocks in PROTECTING.
- title_memory_written for physical-page writes and views_mapped leave the
  guarded blocks read-only and only not clean (with the other views of
  their pages), instead of opening them and guarding them again.
- open_unlocked: a VirtualProtect that failed or found memory not ours
  opened nothing, and the guard is kept (the PR's fix of `took`).
Not taken: the batched cover_run of the locked guard() (with #3760 on, the
unlocked guard covers in one pass already) and the reordering in
protect_alias.

New switch (the PR has none), read through switch::perf once: part of
VICTORY_PERF_NEXT, on by default; =0 runs all of the above as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
From upstream PR #3501, its commit 9830be7c (the one its author measured
against the card's time: 2.74 ms less GPU time, CS_Gather 44 % shorter,
RTX 4070 SUPER, 1440p):
- The optimiser takes rawBufferLoad of the host's stride and address
  tables always, and any SRV load in a program with no resource write, as
  pure: merged across blocks (GVN) and hoisted out of loops (LICM). The
  memory they read is written by nothing in the program, so the values are
  the same ones.
- A scalar load from a view the program picks from the heap reads its raw
  twin at once where every view has one (VICTORY_PORT_CBV), and otherwise
  is one if/else diamond instead of two guarded blocks.
- VICTORY_RDNA_FLOAT gains the opt-in bits LEGACY_PLAIN (16) and
  TRIG_PLAIN (32); they are not in the default set, which is unchanged.

New switch VICTORY_SHADER_RO_LOADS (the PR has none): own 0/1 wins, else
it follows VICTORY_PERF_NEXT (the translator reads both, as switch::perf
does on the host side). Off, the optimiser's classes and the scalar loads'
form are exactly the previous ones. The shader cache keys it when off
(both names listed in its key test's ELSEWHERE), so the default key and
the off key never share translations.

Not taken from #3501: fdiv arcp for v_rcp (d1c205c0, and its LICM fix
1892a33d): it changes results in the last bits, which the image rule here
does not allow without a check mode; Ibfe/Ubfe (7b2ee617), the Wave32 and
translation-speed commits (04d91440, 010c12dc) and the SLOT_SAMPLED
de-duplication (c2ab0192, 2d113517: 14 conflicting hunks, and it only
matters with VICTORY_SAMPLED_MARKS=1).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The F1 line PERFORMANCE OPTIMIZATIONS (VICTORY_PERF_NEXT) now says, in its
long help (German and English) and its short note, that it switches all
parts of this build's optimizations, that each has a switch of its own
that wins, and that the log names them. At the start the log has one line
with the master switch and every part on or off as the run has it
(switch::PERF_PARTS: SUBMIT_SPLIT, VRAM_WINDOWS_BAR, WATCH_UNLOCKED_PROTECT,
GUARD_SPIN with its microseconds, LANDED_FAST, SUBMIT_DIRTY_PAGES,
REMAP_COMPACT_EVERY, WATCH_LOCKFREE_PUBLISH, SHADER_RO_LOADS), so the
night's matched runs can be read back from their logs alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tried before the back-off's compaction, the join kept a full queue from
ever compacting: it stayed full of unpublished ranges, and the next
disjoint range after a snapshot dropped published history
(remap_history_repeated_overlapping_and_publish_cycles_never_evict). Now
the join runs where upstream PR #3877 put it, in front of the drop of a
throttled full queue (or after a compaction that freed no room), never in
place of a compaction the back-off allows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
daaddd07 wrote a NUL byte into the source, which made git treat the file
as binary (and it is text by policy). Same bytes in the key.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream since v2026.11.30.01: PIPELINE_WAIT_ALL (66124155), 512 MB kept
below 4 GiB for the title's 32-bit reservations (ec3ac62b), the race fixes
of PR #3750, the send trim of PR #3994, port constants off unless set
(ffe92c57), native output 2560x1440 (cbb4fe61), an old shader cache
deleted at the start of `victory play` (5baad7e3), and play defaults
without the #3838 copy-back classes and without COMPILE_MEMORY=0
(78978f86).

The launcher is scripts\play-nvidia.ps1 now (84bd61e2): this branch's
changes to play-foxhound.ps1 (render path and DLSS5 feeder, -SettingsFile,
-DataDir/-CacheDir/-LogDir, -InspectRoute, F1 logging switches, Reflex,
fast input, unaliased render targets, the .01 bench set) are carried
over into it, without VICTORY_UNIFIED_BACK/WC_PIECES/WC_NO_BACK_PC/
WC_NO_BACK_MIN_BYTES and VICTORY_COMPILE_MEMORY=0, as play.rs has it now.
play-foxhound.ps1 is gone as upstream has it; every mention of it names
play-nvidia.ps1 (the F1 menu's default check reads that script).
victory-settings.txt still wins over the launcher's set.

No overlap with the performance parts of this branch: upstream's .02
touches neither the guards, the landing bitmap, the remap queue, the
page selection of submissions nor the optimiser's load classes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
guard_unlocked (upstream PR #3760) lets the guards' lock go for its
VirtualProtect calls. A block it found guarded and not clean could be
opened meanwhile (a fault's opening takes no gate) and be noted read-only
again by another asking, for which it is another view of a page of its
own: in the guards' notes at once, PROTECTING set, the protection changed
only later. The first asking found it in the notes again, took it for
read-only and noted it clean, though it stayed writable until the other
asking's VirtualProtect. What the title wrote in between faulted nowhere
and was told to nobody: the copy kept the bytes from before until the
block was next written.

Such a block is not noted clean while another asking's PROTECTING bit is
set for it, on both ways to clean (at once, and after the other views'
own changes); the asking after tells it as written and notes it clean.
The PR has the same gap.

The test opens the gap in its own order by a hook of the test build
(MEANWHILE_IN_TEST), run when guard_unlocked has let the lock go.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream PR #3760 has every opening of guards by our hand wait for the
protection changes made outside the guards' lock (PROTECT_GATE, taken for
writing). Its landing opens them through writing(), which takes the gate.
Here a landing opens them in landing_open_guards, which this branch told
apart from writing() and the port (00eaffb3) left without the gate: the
one opening by our hand that could take a block out of the guards' notes
while its VirtualProtect was under way on another thread. It takes the
gate now, as writing() does; with the switch off nothing is taken.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With two views of one page in the range asked about, guard_unlocked
(upstream PR #3760) made both read-only and then counted each as another
view of the other's page while its own PROTECTING bit for it was still
set: being changed by someone, so neither was covered and neither came
clean. The next asking told both as written once more, and their bytes
were read again, before they were clean; guard(), with the lock held,
takes both at once.

A block of the range itself that this call made read-only, and that is
still noted so, counts as read-only for the other views of its page.
Another asking's change in flight still does not.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
watch::refresh_span (upstream PR #3958) cut a reference to its first and
last written page. Where such a page is the reference's own first or last
and the reference holds it in part, the refresh of the cut never notes
the page taken (Shadow::copy_stale notes whole pages, and stamps the cut,
not the reference): the reference stayed written and was picked again at
every flush from then on, each time for a refresh that copied nothing (an
asking, the copy's lock, a place among the flush's jobs), until its own
pages were next written. That is a reference beside one the title writes,
sharing a 64 KiB page with it, once another copy's asking has noted the
write.

Such a reference is refreshed whole, as before the PR: its stamp then
covers the page and it comes to rest. A cut of whole pages stays a cut.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The logging-off early return split prepare's tail into finish(); upstream's
Ready gained preload_mark, so finish() now carries it too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
In the game, LOCKFREE_PUBLISH=0 with UNLOCKED_PROTECT=1 made a car flicker
(stale data). Both now read one switch::watch_pair(): on only when each is
on as perf() reads it, so a 0 for either turns both off. The start logs a
line when one forced the other off, the performance parts line shows the
forced one as off(pair), and the F1 help (DE+EN) says so. Unit test for the
coupling.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
VICTORY_MAP_ONCE (victory-hle's page-mapping copies at once) is read like
the other performance parts: its own 0/1 wins, else the master switch and
switch::MAP_ONCE_DEFAULT, which stays false until the night runs decide. It
is on the performance parts line. VICTORY_SUBMIT_DIRTY_PAGES takes its
default from switch::SUBMIT_DIRTY_PAGES_DEFAULT (true, as before). Each
default is one line to flip.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
F1 LOGGING OFF sets VICTORY_LOG=off, and VICTORY_LOG is kept across starts
(play-nvidia.ps1's $paths, play.rs's KEPT). A restart from the menu after
turning logging on again inherited the earlier start's off. Both launchers
now remove an inherited VICTORY_LOG=off when the menu has logging on; any
other level someone set stays. Test for play.rs's check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
#4662 (RTX 3090, v2026.11.30.03) logged screen-budget waits of up to 3 s,
several in one frame; we saw the same stalls of up to 4 s while driving
into areas whose pipelines were not made yet. With SCREEN_EARLY a pass over
the screen is queued when the title creates it, not only once a draw asks.
Its own 0/1 still wins; the log's perf line names it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 06:59:44 +00:00
Author
Owner

@⁠CowboyBingus on GitHub · 2026-12-01 07:11 UTC · original

What exactly does this PR intend to do? The majority of these switches have active PRs open.

**@⁠CowboyBingus** on GitHub · 2026-12-01 07:11 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4771#issuecomment-7303755542) What exactly does this PR intend to do? The majority of these switches have active PRs open.
github-bot changed title from Super build: all performance PRs behind one master switch (VICTORY_PERF_NEXT), SCREEN_EARLY on against driving stalls (#4662) to Super build: performance PRs behind one master switch (VICTORY_PERF_NEXT), SCREEN_EARLY on against driving stalls 2026-12-01 09:10:58 +00:00
Upstream since v2026.11.30.03: Clippy and the asset policy pass on main
again, the anti-aliased F1 menu and slim F3 panel (#4634), SSE4a
replacement off by default, LDS wave32 coalescing (#4320), the 0x403
fixture, CONTRIBUTING and agent rules, README.

Kept from this branch: the special version's F1 menu as a whole (German,
pages, hidden settings, names column, help area, game settings), since
#4634 rewrote its drawing only; its F3 panel is taken. The launcher keeps
our logging switch, folders, Reflex and the measured defaults.

After the merge: the #3958 test reads the join without the switch (off
by default here since the night runs), the PERF_NEXT help fits its area
again, and #4634's panel and canvas pass clippy.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠NICKNAMErutschovkonikovan on GitHub · 2026-12-01 12:53 UTC · original

Fair point. I'll split it up: every change gets a single-change pull request of its own from current main (the measured defaults such as SCREEN_EARLY on, the fixes to #3760 and #3958, the watch pair, and each of the F1 menu's additions and its look). Where an open pull request already carries a change, I'll test that one instead of opening a second. Once they are open, I'll close this one and link them here.

**@⁠NICKNAMErutschovkonikovan** on GitHub · 2026-12-01 12:53 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4771#issuecomment-7311792970) Fair point. I'll split it up: every change gets a single-change pull request of its own from current `main` (the measured defaults such as SCREEN_EARLY on, the fixes to #3760 and #3958, the watch pair, and each of the F1 menu's additions and its look). Where an open pull request already carries a change, I'll test that one instead of opening a second. Once they are open, I'll close this one and link them here.
Author
Owner

@⁠tillo88 on GitHub · 2026-12-01 16:39 UTC · original

Measured this PR (head 90c2bd72, VICTORY_PERF_NEXT at its default) merged on top of v2026.11.30.03, against the release as it is. Note that the merge brings this branch's whole update to main 5fabb46e onto the release, so this measures the release plus all of that, not the performance parts alone. The start line confirmed the parts: "SUBMIT_SPLIT=on VRAM_WINDOWS_BAR=on WATCH_UNLOCKED_PROTECT=on GUARD_SPIN=200us LANDED_FAST=on SUBMIT_DIRTY_PAGES=off REMAP_COMPACT_EVERY=on WATCH_LOCKFREE_PUBLISH=on SHADER_RO_LOADS=on MAP_ONCE=off SCREEN_EARLY=on".

fps submitting thread ms refresh ms p95 ms p99 ms
v2026.11.30.03, 21 runs (mean, range) 32.01 (31.49–32.46) 20.51 6.43 48.3 63.7
with #4772 (the only complete measured run) 29.41 17.81 5.90 46.9 55.2
  • Speed: one complete run at 29.41 fps, -8.1%, below every one of the 21 base runs (slowest 31.49). That is well outside this route's spread (sd 0.21 fps), but it is a single run, and it can come from anything in the merged tree, not only the parts behind VICTORY_PERF_NEXT.
  • The submitting thread was shorter (17.8 vs 20.5 ms a frame), as expected with SUBMIT_SPLIT on, and refresh time lower (5.90 vs 6.43 ms), while p95/p99 were lower than the base mean. So the lost time is not on the submitting thread; I can't tell from these logs where it went. An A/B with VICTORY_PERF_NEXT=0 on the same build would separate the parts from the rest of the merge.
  • Crashes: measured run 2 stopped at +2:36 after the log starts with a host command list did not close (0x80070057), about 20 s after the prison → plane cutscene cut. That is the known crash of #2237; the bare release stops at or near that cut in 9 of 42 runs on this bench, so this does not point at the PR.

Setup: Ryzen 7 9800X3D, RTX 5070 Ti 16 GB (driver 621.40), 32 GB RAM, Windows 11, release build, Series X 1440p, DLSS Quality, frame generation off, ray tracing off. Same save restored before each run (start of the game), prison cutscene, plane cutscene, first boat section, about 6 minutes; warm-up run not counted for speed.

Measured unattended on a replay bench (same save, recorded controller input via VICTORY_INPUT_REPLAY); numbers and text prepared with Claude.

**@⁠tillo88** on GitHub · 2026-12-01 16:39 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4771#issuecomment-7317989757) Measured this PR (head 90c2bd72, `VICTORY_PERF_NEXT` at its default) merged on top of **v2026.11.30.03**, against the release as it is. Note that the merge brings this branch's whole update to main 5fabb46e onto the release, so this measures the release plus all of that, not the performance parts alone. The start line confirmed the parts: "SUBMIT_SPLIT=on VRAM_WINDOWS_BAR=on WATCH_UNLOCKED_PROTECT=on GUARD_SPIN=200us LANDED_FAST=on SUBMIT_DIRTY_PAGES=off REMAP_COMPACT_EVERY=on WATCH_LOCKFREE_PUBLISH=on SHADER_RO_LOADS=on MAP_ONCE=off SCREEN_EARLY=on". | | fps | submitting thread ms | refresh ms | p95 ms | p99 ms | |---|---|---|---|---|---| | v2026.11.30.03, 21 runs (mean, range) | 32.01 (31.49–32.46) | 20.51 | 6.43 | 48.3 | 63.7 | | with #4772 (the only complete measured run) | 29.41 | 17.81 | 5.90 | 46.9 | 55.2 | - **Speed:** one complete run at 29.41 fps, **-8.1%**, below every one of the 21 base runs (slowest 31.49). That is well outside this route's spread (sd 0.21 fps), but it is a single run, and it can come from anything in the merged tree, not only the parts behind `VICTORY_PERF_NEXT`. - The submitting thread was shorter (17.8 vs 20.5 ms a frame), as expected with `SUBMIT_SPLIT` on, and refresh time lower (5.90 vs 6.43 ms), while p95/p99 were lower than the base mean. So the lost time is not on the submitting thread; I can't tell from these logs where it went. An A/B with `VICTORY_PERF_NEXT=0` on the same build would separate the parts from the rest of the merge. - **Crashes:** measured run 2 stopped at +2:36 after the log starts with `a host command list did not close (0x80070057)`, about 20 s after the prison → plane cutscene cut. That is the known crash of #2237; the bare release stops at or near that cut in 9 of 42 runs on this bench, so this does not point at the PR. Setup: Ryzen 7 9800X3D, RTX 5070 Ti 16 GB (driver 621.40), 32 GB RAM, Windows 11, release build, Series X 1440p, DLSS Quality, frame generation off, ray tracing off. Same save restored before each run (start of the game), prison cutscene, plane cutscene, first boat section, about 6 minutes; warm-up run not counted for speed. Measured unattended on a replay bench (same save, recorded controller input via VICTORY_INPUT_REPLAY); numbers and text prepared with Claude.
Author
Owner

@⁠tillo88 on GitHub · 2026-12-01 16:58 UTC · original

Measured this PR (head 90c2bd72, VICTORY_PERF_NEXT at its default) merged on top of v2026.11.30.03, 3 runs in two batches, against the release as it is. Note that the merge brings this branch's whole update to main 5fabb46e onto the release, so this measures the release plus all of that, not the performance parts alone. The start line confirmed the parts: "SUBMIT_SPLIT=on VRAM_WINDOWS_BAR=on WATCH_UNLOCKED_PROTECT=on GUARD_SPIN=200us LANDED_FAST=on SUBMIT_DIRTY_PAGES=off REMAP_COMPACT_EVERY=on WATCH_LOCKFREE_PUBLISH=on SHADER_RO_LOADS=on MAP_ONCE=off SCREEN_EARLY=on".

fps submitting thread ms refresh ms p95 ms p99 ms
v2026.11.30.03, 23 runs (mean, range) 32.01 (31.49–32.46) 20.47 6.42 48.2 63.4
with #4772, run 1 29.41 17.81 5.90 46.9 55.2
with #4772, run 2 28.97 18.46 6.58 45.6 53.1
with #4772, run 3 28.91 18.53 6.66 46.6 54.3
  • Slower: -9.1% fps (29.10 vs 32.01). All three runs are below every one of the 23 base runs (slowest 31.49); the base sd is 0.22 fps.
  • Mean frame time went from about 32.4 to 35.5 ms. The submitting thread was shorter (18.3 vs 20.5 ms a frame, as expected with SUBMIT_SPLIT on), refresh time about the same, and the frame line's preparation time about the same (16.7–17.0 vs ~16.5 ms). p95/p99 were lower than the base mean. So the lost time is not on the submitting thread or in preparation; I can't tell from these logs where it goes.
  • This can come from anything in the merged tree, not only the parts behind VICTORY_PERF_NEXT. I have queued an A/B with VICTORY_PERF_NEXT=0 on the same merge to separate them; it will run on the next release (v2026.12.01.01-test is now out).
  • Crashes: 2 of 5 valid runs (warm-ups included) stopped with a host command list did not close (0x80070057): one at +2:15 after the log starts, one second after the masked twin [mesh 480d53fc48107a50, pixel f41ec9d9437c021c-mask] was made at the prison → plane cutscene cut, and one at +2:36, about 20 s after it. That is the known crash of #2237; the bare release stops at or near that cut in 8 of 47 runs on this bench (11 of 47 counting other points), so 2 of 5 does not point at the PR. One more warm-up stayed on the game's menu (the save did not load on the first start of a new build) and is left out of everything.

Setup: Ryzen 7 9800X3D, RTX 5070 Ti 16 GB (driver 621.40), 32 GB RAM, Windows 11, release build, Series X 1440p, DLSS Quality, frame generation off, ray tracing off. Same save restored before each run (start of the game), prison cutscene, plane cutscene, first boat section, about 6 minutes; warm-up runs not counted for speed.

Measured unattended on a replay bench (same save, recorded controller input via VICTORY_INPUT_REPLAY); numbers and text prepared with Claude.

**@⁠tillo88** on GitHub · 2026-12-01 16:58 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4771#issuecomment-7318557536) Measured this PR (head 90c2bd72, `VICTORY_PERF_NEXT` at its default) merged on top of **v2026.11.30.03**, 3 runs in two batches, against the release as it is. Note that the merge brings this branch's whole update to main 5fabb46e onto the release, so this measures the release plus all of that, not the performance parts alone. The start line confirmed the parts: "SUBMIT_SPLIT=on VRAM_WINDOWS_BAR=on WATCH_UNLOCKED_PROTECT=on GUARD_SPIN=200us LANDED_FAST=on SUBMIT_DIRTY_PAGES=off REMAP_COMPACT_EVERY=on WATCH_LOCKFREE_PUBLISH=on SHADER_RO_LOADS=on MAP_ONCE=off SCREEN_EARLY=on". | | fps | submitting thread ms | refresh ms | p95 ms | p99 ms | |---|---|---|---|---|---| | v2026.11.30.03, 23 runs (mean, range) | 32.01 (31.49–32.46) | 20.47 | 6.42 | 48.2 | 63.4 | | with #4772, run 1 | 29.41 | 17.81 | 5.90 | 46.9 | 55.2 | | with #4772, run 2 | 28.97 | 18.46 | 6.58 | 45.6 | 53.1 | | with #4772, run 3 | 28.91 | 18.53 | 6.66 | 46.6 | 54.3 | - **Slower: -9.1% fps** (29.10 vs 32.01). All three runs are below every one of the 23 base runs (slowest 31.49); the base sd is 0.22 fps. - Mean frame time went from about 32.4 to 35.5 ms. The submitting thread was shorter (18.3 vs 20.5 ms a frame, as expected with `SUBMIT_SPLIT` on), refresh time about the same, and the frame line's preparation time about the same (16.7–17.0 vs ~16.5 ms). p95/p99 were lower than the base mean. So the lost time is not on the submitting thread or in preparation; I can't tell from these logs where it goes. - This can come from anything in the merged tree, not only the parts behind `VICTORY_PERF_NEXT`. I have queued an A/B with `VICTORY_PERF_NEXT=0` on the same merge to separate them; it will run on the next release (v2026.12.01.01-test is now out). - **Crashes:** 2 of 5 valid runs (warm-ups included) stopped with `a host command list did not close (0x80070057)`: one at +2:15 after the log starts, one second after the masked twin `[mesh 480d53fc48107a50, pixel f41ec9d9437c021c-mask]` was made at the prison → plane cutscene cut, and one at +2:36, about 20 s after it. That is the known crash of #2237; the bare release stops at or near that cut in 8 of 47 runs on this bench (11 of 47 counting other points), so 2 of 5 does not point at the PR. One more warm-up stayed on the game's menu (the save did not load on the first start of a new build) and is left out of everything. Setup: Ryzen 7 9800X3D, RTX 5070 Ti 16 GB (driver 621.40), 32 GB RAM, Windows 11, release build, Series X 1440p, DLSS Quality, frame generation off, ray tracing off. Same save restored before each run (start of the game), prison cutscene, plane cutscene, first boat section, about 6 minutes; warm-up runs not counted for speed. Measured unattended on a replay bench (same save, recorded controller input via VICTORY_INPUT_REPLAY); numbers and text prepared with Claude.
github-bot closed this pull request 2026-12-01 18:36:36 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:32 UTC · original

Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:32 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4771#issuecomment-7321114683) Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!4772
No description provided.