Performance: submission sending on its own thread (VICTORY_PERF_NEXT master switch), AVX2 shadow compare/merge (VICTORY_SIMD), refresh diagnostics #3854

Closed
github-bot wants to merge 86 commits from github-bot/gh-3854 into main AGit
Owner

@⁠NICKNAMErutschovkonikovan on GitHub · 2026-11-30 09:26 UTC · original
NICKNAMErutschovkonikovan:perf-next → main · +20154 −362 · 72 files · 86 commits · closed without merging

Builds on #3590 (branch special-features). The commits of that PR are included here; the new work is the commits on top of 00decd38.

What's new

VICTORY_PERF_NEXT: one master switch for the optimizations below. It adds a restart-only F1 row, "PERFORMANCE OPTIMIZATIONS (RESTART)" (German: LEISTUNGS-OPTIMIERUNGEN), with ON/OFF and help text. Each optimization's own switch (0/1) wins over the master; VICTORY_PERF_NEXT=0 turns all of them off. See switch::perf(name, default) in switch.rs.

VICTORY_SUBMIT_SPLIT is on by default under the master switch.

  • Copies in the card's memory and the sending of the lists move to the sending thread.
  • The submitting thread then works 54–58 ms a frame instead of 62–63.
  • After review, the default yields in two cases:
    • When VICTORY_AB names the switch, A/B decides alone.
    • It stays off when the published path cannot carry something: VICTORY_LATE_FILLS, VICTORY_TEAM_FAST, VICTORY_RESIDENT_LATER or VICTORY_GPU_DIRTY. That case is logged.
  • VICTORY_SUBMIT_SPLIT=1 still forces it as before.

AVX2 paths for the shadow's page compare and merge (VICTORY_SIMD).

  • Values: auto / avx2 / off.
  • The level is chosen once at runtime with #[target_feature]. There is no global target-cpu.
  • changed_runs and back_piece get AVX2 versions. The scalar bodies are kept, and tests compare both.
  • Microbenchmarks (release, best of 9):
    • changed_runs: 4–6x dense, 1.6–2.2x sparse.
    • merge: 2.7–20x.
  • In game the gain is below noise, because these paths are a small part of the frame.
  • There is a restart-only F1 row, "CPU VECTOR CODE (RESTART)".

Diagnostics. A new frame line, "refreshes per frame", in every build. It shows where the refresh time goes: most of it is waiting on the guard lock behind VirtualProtect, not copying.

Measured

Setup: Ryzen 7 5800X3D, RTX 5090, 2560x1440, DLSS Q + FG, city scene that moves by itself, release build. Each run is 2 min in the world, and runs alternate in mirrored order (A B B A) because launches drift by about ±10% over a session.

fps ms/frame preparing
all off (VICTORY_PERF_NEXT=0, VICTORY_SIMD=off) 18.0 55.7 38.4
all on (default) 18.6 54.2 36.0

That is about +3% fps and about 2.5 ms less per frame on the submitting thread.

Tried and dropped:

  • VICTORY_ASK_FIRST, VICTORY_OFF_LINE and copying guarded views first: no gain.
  • Raising the VRAM caps (card buffers 16 GB, texture room 97%): no gain; card use rose only 15.9 → 16.5 GB.

Not done on purpose: coalescing the ~43k upload ranges a frame, because the gaps may hold bytes that shaders wrote.

Tests

  • cargo test -p victory-gpu --release: 1028 passed.
    • shader_cache::tests::every_switch_of_the_translator_is_in_the_key fails, as it already did upstream (VICTORY_SCALAR_SPLITS); cache keys are left untouched.
    • card_steps::tests::shared_scratch_eliminates_flight_settle_end_to_end can fail under parallel GPU load only. It passes alone with the master switch on and off.
  • The build with --features ab compiles.
  • xtask policy: only the pre-existing frame_users.rs finding from upstream.
  • The split commits were reviewed for ordering against fences, lifetimes, deadlocks and device loss. The three findings are fixed in the last commit.

Update: big cards, relay thread, review fixes

VICTORY_VRAM_WINDOWS_BAR (on by default, off with =0).

  • On cards with a budget of 20 GiB or more and card memory the CPU can map (Resizable BAR), the windows are kept once, in GPU_UPLOAD card memory. Up to a quarter of the budget is used.
  • Before, each window was kept twice: once on the card and once in the PC's memory that the card shares.
  • Memory the PC shares with the card: 7.9 → 3.8 GB. Committed memory: about 5 GB less.
  • fps with frame generation, 3 runs each: 17.8 / 17.6 / 17.1 → 18.6 / 18.4 / 18.5, about +6%.
  • Smaller cards behave as before.

Upstream fixes taken over. Both are switches of VICTORY_PERF_NEXT:

  • 223f22f0 (VICTORY_REMAP_BACKOFF) backs off the RemapQueue compaction. "opening or noting guards" falls from 4.8 to about 1 ms.
  • PR #1358 (VICTORY_BURY_THREAD) moves the COM drops of bury() to a thread of their own.
    • The relay thread's remaining part falls from 13–15 ms to about 4 ms.
    • Objects are only ever released later than before, never sooner.
    • A drop that panics is caught, and the thread goes on.

Measured without frame generation. Same saved game for every run, 6 runs, alternating:

fps frames over 100 ms
before 18.39 247
after 18.84 215

Screenshots of the same scene are equivalent.

Tried and dropped (no gain or worse frame pacing):

  • VICTORY_PORT_CONSTANTS=1: the card reads the title heap over the bus and runs 3x slower.
  • Batched slot release: no gain.
  • VICTORY_PORT_GUARD: frames over 100 ms rose from 14 to 50.
  • VICTORY_JOIN_PARTS=16: −4%.
  • VICTORY_WAIT_SPIN=500: −1%.
  • VICTORY_RANGE_LOCK=1: no gain.

The remaining bottleneck is the submitting thread's preparation, 35–37 ms a frame; the GPU needs only 2–4 ms.

Tests: cargo test -p victory-gpu --release -- --test-threads=1: 1033 passed. The only failure is the known upstream every_switch_of_the_translator_is_in_the_key.

🤖 Generated with Claude Code

**@⁠NICKNAMErutschovkonikovan** on GitHub · 2026-11-30 09:26 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3854) `NICKNAMErutschovkonikovan:perf-next` → `main` · +20154 −362 · 72 files · 86 commits · closed without merging Builds on #3590 (branch `special-features`). The commits of that PR are included here; the new work is the commits on top of `00decd38`. ## What's new **`VICTORY_PERF_NEXT`: one master switch for the optimizations below.** It adds a restart-only F1 row, "PERFORMANCE OPTIMIZATIONS (RESTART)" (German: LEISTUNGS-OPTIMIERUNGEN), with ON/OFF and help text. Each optimization's own switch (`0`/`1`) wins over the master; `VICTORY_PERF_NEXT=0` turns all of them off. See `switch::perf(name, default)` in `switch.rs`. **`VICTORY_SUBMIT_SPLIT` is on by default under the master switch.** - Copies in the card's memory and the sending of the lists move to the sending thread. - The submitting thread then works 54–58 ms a frame instead of 62–63. - After review, the default yields in two cases: - When `VICTORY_AB` names the switch, A/B decides alone. - It stays off when the published path cannot carry something: `VICTORY_LATE_FILLS`, `VICTORY_TEAM_FAST`, `VICTORY_RESIDENT_LATER` or `VICTORY_GPU_DIRTY`. That case is logged. - `VICTORY_SUBMIT_SPLIT=1` still forces it as before. **AVX2 paths for the shadow's page compare and merge (`VICTORY_SIMD`).** - Values: `auto` / `avx2` / `off`. - The level is chosen once at runtime with `#[target_feature]`. There is no global target-cpu. - `changed_runs` and `back_piece` get AVX2 versions. The scalar bodies are kept, and tests compare both. - Microbenchmarks (release, best of 9): - changed_runs: 4–6x dense, 1.6–2.2x sparse. - merge: 2.7–20x. - In game the gain is below noise, because these paths are a small part of the frame. - There is a restart-only F1 row, "CPU VECTOR CODE (RESTART)". **Diagnostics.** A new frame line, "refreshes per frame", in every build. It shows where the refresh time goes: most of it is waiting on the guard lock behind `VirtualProtect`, not copying. ## Measured Setup: Ryzen 7 5800X3D, RTX 5090, 2560x1440, DLSS Q + FG, city scene that moves by itself, release build. Each run is 2 min in the world, and runs alternate in mirrored order (A B B A) because launches drift by about ±10% over a session. | | fps | ms/frame | preparing | |---|---|---|---| | all off (`VICTORY_PERF_NEXT=0`, `VICTORY_SIMD=off`) | 18.0 | 55.7 | 38.4 | | all on (default) | 18.6 | 54.2 | 36.0 | That is about +3% fps and about 2.5 ms less per frame on the submitting thread. Tried and dropped: - `VICTORY_ASK_FIRST`, `VICTORY_OFF_LINE` and copying guarded views first: no gain. - Raising the VRAM caps (card buffers 16 GB, texture room 97%): no gain; card use rose only 15.9 → 16.5 GB. Not done on purpose: coalescing the ~43k upload ranges a frame, because the gaps may hold bytes that shaders wrote. ## Tests - `cargo test -p victory-gpu --release`: 1028 passed. - `shader_cache::tests::every_switch_of_the_translator_is_in_the_key` fails, as it already did upstream (`VICTORY_SCALAR_SPLITS`); cache keys are left untouched. - `card_steps::tests::shared_scratch_eliminates_flight_settle_end_to_end` can fail under parallel GPU load only. It passes alone with the master switch on and off. - The build with `--features ab` compiles. - `xtask policy`: only the pre-existing `frame_users.rs` finding from upstream. - The split commits were reviewed for ordering against fences, lifetimes, deadlocks and device loss. The three findings are fixed in the last commit. ## Update: big cards, relay thread, review fixes **`VICTORY_VRAM_WINDOWS_BAR` (on by default, off with `=0`).** - On cards with a budget of 20 GiB or more and card memory the CPU can map (Resizable BAR), the windows are kept once, in GPU_UPLOAD card memory. Up to a quarter of the budget is used. - Before, each window was kept twice: once on the card and once in the PC's memory that the card shares. - Memory the PC shares with the card: 7.9 → 3.8 GB. Committed memory: about 5 GB less. - fps with frame generation, 3 runs each: 17.8 / 17.6 / 17.1 → 18.6 / 18.4 / 18.5, about +6%. - Smaller cards behave as before. **Upstream fixes taken over.** Both are switches of `VICTORY_PERF_NEXT`: - 223f22f0 (`VICTORY_REMAP_BACKOFF`) backs off the RemapQueue compaction. "opening or noting guards" falls from 4.8 to about 1 ms. - PR #1358 (`VICTORY_BURY_THREAD`) moves the COM drops of `bury()` to a thread of their own. - The relay thread's remaining part falls from 13–15 ms to about 4 ms. - Objects are only ever released later than before, never sooner. - A drop that panics is caught, and the thread goes on. **Measured without frame generation.** Same saved game for every run, 6 runs, alternating: | | fps | frames over 100 ms | |---|---|---| | before | 18.39 | 247 | | after | 18.84 | 215 | Screenshots of the same scene are equivalent. **Tried and dropped (no gain or worse frame pacing):** - `VICTORY_PORT_CONSTANTS=1`: the card reads the title heap over the bus and runs 3x slower. - Batched slot release: no gain. - `VICTORY_PORT_GUARD`: frames over 100 ms rose from 14 to 50. - `VICTORY_JOIN_PARTS=16`: −4%. - `VICTORY_WAIT_SPIN=500`: −1%. - `VICTORY_RANGE_LOCK=1`: no gain. The remaining bottleneck is the submitting thread's preparation, 35–37 ms a frame; the GPU needs only 2–4 ms. Tests: `cargo test -p victory-gpu --release -- --test-threads=1`: 1033 passed. The only failure is the known upstream `every_switch_of_the_translator_is_in_the_key`. 🤖 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]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 09:29:23 +00:00
Author
Owner

@⁠tillo88 on GitHub · 2026-11-30 12:44 UTC · original

Measured this PR as it is (defaults: VICTORY_PERF_NEXT on, so the submission split and VICTORY_SIMD=auto → avx2; the log confirms both) on top of v2026.11.29.05, 2 runs, against 18 runs of the release as it is.

fps ms/frame submitting thread ms refresh ms p95 ms p99 ms
v2026.11.29.05, 18 runs (mean) 29.40 37.4 31.4 8.21 57.3 138.7
with #3854, run 1 26.27 41.1 30.6 8.76 61.3 165.8
with #3854, run 2 25.82 41.7 31.1 8.74 62.3 163.6

Slower here: −11% fps (26.05 vs 29.40), and both runs are below the slowest of the 18 baseline runs (27.79). The submitting thread's time per frame is about the same as the release's, and refreshes are only ~0.5 ms longer, so the ~4 ms per frame that was added does not show up in the submitting thread as measured by the frame-rate log. Note this branch also carries #3590's commits, so the loss may come from those rather than the new ones. For comparison, #3809 (submission split plus the lazy-compare and table-same switches on, on the same release) measured +3.9% on this bench. No crash in either run.

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.

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-11-30 12:44 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3854#issuecomment-7278867135) Measured this PR as it is (defaults: `VICTORY_PERF_NEXT` on, so the submission split and `VICTORY_SIMD=auto` → avx2; the log confirms both) on top of **v2026.11.29.05**, 2 runs, against 18 runs of the release as it is. | | fps | ms/frame | submitting thread ms | refresh ms | p95 ms | p99 ms | |---|---|---|---|---|---|---| | v2026.11.29.05, 18 runs (mean) | 29.40 | 37.4 | 31.4 | 8.21 | 57.3 | 138.7 | | with #3854, run 1 | 26.27 | 41.1 | 30.6 | 8.76 | 61.3 | 165.8 | | with #3854, run 2 | 25.82 | 41.7 | 31.1 | 8.74 | 62.3 | 163.6 | **Slower here: −11% fps** (26.05 vs 29.40), and both runs are below the slowest of the 18 baseline runs (27.79). The submitting thread's time per frame is about the same as the release's, and refreshes are only ~0.5 ms longer, so the ~4 ms per frame that was added does not show up in the submitting thread as measured by the frame-rate log. Note this branch also carries #3590's commits, so the loss may come from those rather than the new ones. For comparison, #3809 (submission split plus the lazy-compare and table-same switches on, on the same release) measured +3.9% on this bench. No crash in either run. 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. Measured unattended on a replay bench (same save, recorded controller input via VICTORY_INPUT_REPLAY); numbers and text prepared with Claude.
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]>
github-bot closed this pull request 2026-12-01 10:13:33 +00:00
Author
Owner

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

Replaced by #4772: its parts (SUBMIT_SPLIT, VRAM_WINDOWS_BAR and the rest) are there, each behind its own switch under VICTORY_PERF_NEXT, on top of current main.

**@⁠NICKNAMErutschovkonikovan** on GitHub · 2026-12-01 10:12 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3854#issuecomment-7307823333) Replaced by #4772: its parts (SUBMIT_SPLIT, VRAM_WINDOWS_BAR and the rest) are there, each behind its own switch under VICTORY_PERF_NEXT, on top of 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!3854
No description provided.