Skip to content

Two-die Ryzens and 8 GB cards: frame threads on one die, target reser… - #730

Open
c1miano wants to merge 62 commits into
trustno1-coder:mainfrom
c1miano:claude/laughing-knuth-ibva6s
Open

c1miano wants to merge 62 commits into
trustno1-coder:mainfrom
c1miano:claude/laughing-knuth-ibva6s

Conversation

@c1miano

@c1miano c1miano commented Nov 28, 2026

Copy link
Copy Markdown

…ve sized to the card, a native build

  • cores.rs: where all cores are alike but share more than one L3 (Ryzen 9 9900X/9950X/7900X: two CCDs), the threads a frame waits for and their helpers are kept on the die of the preferred cores, so their hand-overs stay in one L3 (VICTORY_ONE_CCD=0: not). List translators and the title's threads keep both dies; hybrid Intel and single-die Ryzens as before.
  • resource.rs: the room the texture queue keeps for render targets not made yet is 3,072 MiB or three tenths of the card's budget, whichever is less (VICTORY_CARD_ROOM_FOR_TARGETS_MB still wins). Unchanged on 12 GB cards; on 8 GB cards the flat 3,072 left the scene black while textures waited for room.
  • Cargo.toml [profile.native] (fat LTO, one codegen unit) and play-foxhound.ps1 -Build native (RUSTFLAGS=-C target-cpu=native).
  • docs/ryzen-9900x-rtx-3070ti.md: settings to start from on such a PC.

Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP

KyleS98 and others added 16 commits November 24, 2026 19:04
Source only: the x16 adapter pick and the shader fixes that rendered the world. No game data, textures, or executable.

Co-authored-by: Cursor <cursoragent@cursor.com>
…8.5 -> 30.9 fps in the prologue's cell)

With `--console series-s` the title picks FSR 4 where a Series X uses its
own upscaler. Here FSR 4 runs, through the translator, and it is the
dearer of the two. Two functions of the known build that make the choice
now return 6 (the Series X's), so the Series S profile renders with the
title's own upscaler.

Measured on an RTX 3090 Ti (driver 616.92), Ryzen 9 9950X3D, Windows 11,
this fork's launcher settings with `-SeriesS` and no NVIDIA files, in the
prologue's cell at 4,300 to 4,700 draws a frame, medians of the frame
lines of one run each:

                              FSR 4      own upscaler
  frames a second             28.5       30.9
  frame                       35.1 ms    32.4 ms
  title memory copied a frame 88 MB      38 MB
  copied back a frame         21.6 MB    0.8 MB

The picture is the same in both as far as I can tell from screenshots
(hair, the print on the shirt, the walls; the haze through the cell's
window is there with either).

Not applied when the title's FidelityFX path is asked for: DLSS, frame
generation and VICTORY_FSR_PATH take the title's FidelityFX upscaler
(`native_1440p::prepare_upscaler` patches the same function, at +0x7e9421),
so `victory run` then leaves the choice to the title and says so. I have no
NVIDIA files here: that the line is printed and no patch applied with
VICTORY_FSR_PATH=1 is what I checked of that side.

VICTORY_TITLE_PATCHES=0 turns the patches off; VICTORY_TITLE_PATCH=<rva>:
<old hex>:<new hex> adds one for experiments. The patched image is cached
under a name of its own.

From fxceless/victory-fork#798 (same author), where FSR 4's frames were
black on the Series S profile.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…in every launch

On an NVIDIA card a pipeline library is only good for launches that first
make their static samplers in the order of the launches that filled it.

Seen on this tree (RTX 3090 Ti, driver 616.92, prologue's cell): a cache
that launches of the Series S profile with FSR 4 and of the Series X
profile at two sizes had filled; then a launch of the Series S profile
with the title's own upscaler, which makes its pipelines in another
order: the print on the back of the prologue's shirt was missing in every
screenshot of the run. The same build on a library of its own had the
print. With this change the first cache had it again, in two launches.

Seen before on fxceless/victory-fork (its issue #1459, pull request
#1461, same author): one more static sampler unlike the title's own, made
before the title's first root signature and never bound, gave the wrong
picture for the whole run in 20 runs of 20, against 0 of 12 without it.

The reading that fits: the driver numbers a device's different static
samplers in the order they are first made, a compiled pipeline names them
by number, and a pipeline kept in the library keeps the numbers of the
launch that compiled it. I cannot look inside the driver; what I have is
that the case that went wrong comes out right with the order kept.

So the order is kept. The static samplers a cache has seen are listed in
static-samplers.txt beside the library (ten words a line), in the order
they were first made. Before a launch's first root signature each is made
again in that order, alone in a root signature that lives for the run; a
sampler not listed yet goes to the list's end, and its own root signature
is made under the same lock before the one that asked for it.

A library with no list beside it was filled in whatever order its
launches had: it is let go once (said in the log) and its pipelines are
made again. The pipeline book is untouched, so `victory warm` makes them
ahead as before.

VICTORY_SAMPLER_ORDER=0: none of this. VICTORY_EXTRA_STATIC_SAMPLER=1
(diagnostics builds): one more static sampler before the title's first
root signature, for reproducing the fault with the order off.

Tests: three in the module (a sampler's line; a list's order and a line
cut short; on the host device, a new sampler goes to the file's end and a
second start reads the same order back).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…RY_GUARDS_SPIN=<microseconds>; 0, the default: asleep at once as before)

The lock is held a few microseconds at a time and taken thousands of
times a frame by the thread that prepares submissions and the six that
share its refreshes, and by the title's threads in their write faults.
A profile of the prologue's cell (RTX 3090 Ti, Series S profile, 31 fps)
had the preparing thread 2.2 ms of a 32 ms frame asleep behind it, and
each helper as long.

Measured with VICTORY_GUARDS_SPIN=40, one run each way:
- with the title's own upscaler: the preparing thread's time in its
  submissions 31.0 -> 28.8 ms a frame (refreshes 10.1 -> 7.8), the frame
  32.2 -> 31.9 ms; the card is 96 % busy in both;
- with FSR 4: 32.7 -> 32.6 ms, the frame the same.
So no frame-rate gain is shown on this card. Off by default; kept for
measuring where the preparing thread alone is the limit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…start; what it adds; what it is built on)

The README of trustno1-coder/VIctory-NVIDIA, the tree this is built on,
is kept as docs/README-nvidia.md with its links made to work from there.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…eb1b) with its own changes; the earlier snapshot stays in history

Nothing of the earlier tree (3ae2e21) is in the files any more: it is kept
as this merge's second parent, so that main moves forward and nothing is
overwritten. What the new tree is and what it measures is in README.md.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…INDIRECT_REST=1 (off by default since 545f890); two clippy fixes in tests

(cherry picked from commit d763e9c)
…eline cache), not as a sampler-order fix

On this tree pipelines with static samplers skip the library unless
VICTORY_LIBRARY_STATIC_SAMPLERS=1, so the ordering changed nothing that was
loaded in the runs the README cites (pointed out in review of
trustno1-coder#69).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ation, Windows 10 runtime, warm-up restart, MFG Unlocker option

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	README.md
…oven by its shape where the per-lane form cannot follow it

The console compiler loops over a per-lane descriptor by reading the
first active lane's table offset, narrowing EXEC to the lanes with the
same one, loading that entry and dropping those lanes. `track` makes each
lane load its own entry when `Tracer::waterfall` proves the loop. In the
title's programs it mostly cannot: over all 25,760 programs it emits,
44,874 such loops were refused, 37,605 of them because the per-lane form
could not show that the compares select the access's lanes and 209
because it could not show that the retry keeps the lanes still waiting.
In a wave of 64 run as two host waves of 32, every pass of an unproven
loop exchanges the first lane's value and the mask between the halves:
four group barriers a pass.

`Tracer::waterfall_shape` proves the loop by its exact shape instead,
only where `waterfall` refused: one block that branches to itself, with
nothing in it but the first-lane reads, `v_cmpx_eq` of each with the
same lane value, the table loads, waits, accesses that only read, and
`s_andn2_wrexec` of a mask T with itself. T is shown to be EXEC on every
entry from the phis (a move of the loop's own entry EXEC from outside;
the same retry on the back edge), and the first-lane value is read
nowhere past the loop.

It proves 32,106 of the refused loops. The same programs are emitted as
before, and the DXIL validator gives the same results as before for all
of them.

Measured in the prologue's cell (RTX 3090 Ti, Series S profile, one run
each way unless said): where the card is the limit the frame gets 2.5 to
4 ms shorter. With the title's own upscaler (trustno1-coder#68), 30.8 fps before and
33.3, 32.9 and 32.0 after; with DLSS Quality and FSR 3 frame generation,
27.0 rendered before and 30.8 after. On main alone without DLSS, where the
translated FSR 4 path keeps the preparing thread at 27 to 28 ms a frame,
28.5 before and 28.7 after. The costliest program of the frame,
vfx_proj_decal_vbuffer:CS_ProjDecalReduceClassification_Scalarized
(4.1 ms a frame in a timing run), has 27 such loops; its DXIL goes from
149 group barriers to 41.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… waterfall change; the FSR 3 start-up crash and its way round

Measured on the RTX 3090 Ti in the prologue's cell with this build: 32.0
fps without frame generation (Series S, no DLSS), and with DLSS Quality
and AMD FSR 3 frame generation 30.8 rendered and 62.2 shown (F3).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…'s cell shows a dark patch with tile-aligned edges in 3 runs of 5

Measured as the mean brightness of that wall in the last 12 screenshots of
each run: about 40 in three of the five runs with the change, about 64 in
all seven runs without it. Whether the change is wrong or only exposes a
missing wait elsewhere is not known yet; until it is, Neo goes without it.

This reverts commit e9bb461.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… fps, 53 shown with FSR 3 frame generation); that change described as in progress and why

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o 6x: 48 to 132 shown), its trade-off; the wall patch is an older fault seen without the waterfall change too

Measured on the RTX 3090 Ti in the prologue's cell with this build,
Series S, DLSS Quality, --set VICTORY_MFG_UNLOCKER=1, one run each:
2x 23.8 rendered / 48 shown, 3x 23.0 / 72, 4x 22.5 / 92, 6x 21.8 / 132
(frames shown per present exactly 2.00, 3.00, 4.00, 6.00; status 0x0).
The 6x run, without the waterfall change, showed the dark wall patch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he F1 menu, PS4 pads, water light, memory switches, launch and crash fixes

Upstream's own static-sampler order (pipeline/samplers.rs, "Static samplers
made first, in one order") replaces the one this tree carried, which was
inert here: pipeline.rs, pipeline/host.rs and pipeline/library.rs are
upstream's again. README.md stays this repository's.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ve sized to the card, a native build

- cores.rs: where all cores are alike but share more than one L3 (Ryzen 9
  9900X/9950X/7900X: two CCDs), the threads a frame waits for and their
  helpers are kept on the die of the preferred cores, so their hand-overs
  stay in one L3 (VICTORY_ONE_CCD=0: not). List translators and the
  title's threads keep both dies; hybrid Intel and single-die Ryzens as before.
- resource.rs: the room the texture queue keeps for render targets not
  made yet is 3,072 MiB or three tenths of the card's budget, whichever is
  less (VICTORY_CARD_ROOM_FOR_TARGETS_MB still wins). Unchanged on 12 GB
  cards; on 8 GB cards the flat 3,072 left the scene black while textures
  waited for room.
- Cargo.toml [profile.native] (fat LTO, one codegen unit) and
  play-foxhound.ps1 -Build native (RUSTFLAGS=-C target-cpu=native).
- docs/ryzen-9900x-rtx-3070ti.md: settings to start from on such a PC.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
@ArturoWolff

ArturoWolff commented Nov 28, 2026 •

Copy link
Copy Markdown

Independent check of just the adaptive render-target reservation in resource.rs from #730 (018d54fed45716e689ab592d63fdca5349fa4cb3), on RTX 4060 desktop 8 GB / 16 GB RAM, NVIDIA 620.73.4, Linux/GE-Proton11-14. Applied to current .01 (63b902fe1720a5188ee79d94a88c8de0470f6349) with the previously tested Linux backing/DXC adaptations. No CCD affinity, native-profile compiler flags, or other #730 changes. Same cloned starting profile, separate fresh external caches, Series X 1080to1440, 30 cap, DLSS/FG off, requested full lighting/write-back/ordinary waits. The effective settings of the default and adaptive arms match; the intermediate fixed-2560 MiB arm from #609 differs only by that override.

Loading-stage observation Fixed 3072 (default) Fixed 2560 Adaptive #730
Last reported DXGI budget (MiB) 6743 6670 6800
Last actual in use (MiB) 3190 3190 3894
Last amount still reserved for targets (MiB) 2625 2116 1596
Last texture-admission line excess (MiB) 411 10 30
Last uploaded texture slots 19993 18958 25847
Last uploaded MiB 846 924 1387
Last total tracked queue slots 22148 21408 20029
Last slots due 2 1 1
Last uploaded whole awaiting recheck 13407 14127 16398
No-room samples / total 2/9 2/9 1/10
Observed use above DXGI budget 0/9 0/9 0/10
Minimum available system RAM (MiB) 2331.2 2214.0 2252.7
Actual exit 5 5 5

The adaptive arm kept admitting textures later in loading, consistent with the budget-scaled intent. It eventually hit the admission line again. Clarification from the detailed queue reports: the headline "waiting" count is the total tracked queue, including many already-uploaded slots awaiting periodic rechecks, not a count of outstanding first uploads. The last due counts were only 2 / 1 / 1. The sample count and workload are not scene matched, so the uploaded-slot and byte counts are not a throughput or in-world FPS measurement. All three launches reached loading artwork then the same black overlay/first-story failure documented in #628, with no guard stop, OOM increment, recorded kernel GPU fault or reported device/fence error. The adaptive arm elapsed 136.293 s, versus 124.983 s default; no actual world was reached. Post-load render-target requirements and fidelity are still unqualified.

This supports trying the budget-scaled reservation instead of a universal 3072 MiB, but does not support calling it a fix for the #628 progression failure or recommending a new general Series X default without a post-load check. It is a single-factor complement to the multi-setting Series S report in #609, not the same experiment. Thanks for the proposal.

AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).

claude and others added 10 commits November 28, 2026 05:40
… reached half of 3,072)

On an RTX 3070 Ti, Series S, five minutes in the world: targets levelled
off at about 1,420 MB, under half of the 3,072 MB reserve, so 1,650 MB
stayed kept for the whole run while about 2,000 textures waited for room.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
…ard's time by command

VILauncher only builds the plain release; this lets it measure with
VICTORY_GPU_TIMING=1 and VICTORY_D3D12_DRED=1. To be reverted after it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
Back to the plain release build after the measurement of the card's time
by command (2026-11-28).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
…TIVE_BARRIERS=1, off by default)

Every title barrier group became a wait for every earlier shader write:
about 750 a frame on an RTX 3070 Ti, whose timing run showed 9,000
commands of 4 microseconds on average with the card at 100 % of its time
and half its power. With the switch, a group is read as D3D12's barrier
groups and left without the wait when every barrier goes from reads to
reads or has nothing before; anything else, or anything that does not
look like that layout, keeps it. The log counts both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
Measured on an RTX 3070 Ti: only about 4 % of the title's barrier groups
order no write (5,186 of 131,072), and with those left without a wait the
title stopped submitting for most of each frame (3.5 fps, the card idle
85 % of the time, frames of 280-500 ms). The waits stay as they were.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
…_WAIT=1, off by default)

The scratch buffer's move to indirect arguments already orders the
clamp's writes before the execution reads them; the budget only clamps
change, atomically. 169 commands a frame were clamped between two waits
for every earlier shader write on an RTX 3070 Ti (timing run).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
A launcher that builds and starts the layer by itself showed neither, and
a switch that never reached the layer looked like one that changed nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
In the release build with the play settings no indirect command is
clamped one at a time (the switch's line never came in a run that had it
on, 2026-11-28): the wait it left out is not on the frame's path there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
…keyboard's pad its keys

The title takes its camera from a pad's right stick and from nothing else:
with the pointer captured (F1's MOUSE CAPTURE, `VICTORY_MOUSE_CAPTURE=1`) and
2,700 pixels of motion delivered as the GameInput mouse device, the camera
stood still, and it turned at once with the stand-in pad's stick (the
prologue's cell, Series S profile).

The captured mouse is now the stand-in pad's right stick and triggers as
well (`VICTORY_MOUSE_LOOK=0`: the mouse device alone, as before). A stick is
a speed and a mouse a distance, so the pixels the hand has moved are owed
and paid off: `VICTORY_MOUSE_LOOK_SPEED` pixels a second (2400) are the whole
stick, any motion starts past the title's dead zone
(`VICTORY_MOUSE_LOOK_DEADZONE`, 20 percent), and a flick faster than the
stick can turn is kept and turned after (`VICTORY_MOUSE_LOOK_BANK`, 350 ms
of full stick at most). `VICTORY_MOUSE_LOOK_CURVE` and
`VICTORY_MOUSE_LOOK_VERTICAL` (percent; negative: the other way up) shape
it. The left button is the right trigger, the right button the left one,
the middle button a press of the right stick. The pointer is put back to the
middle after each sample where its motion is the stick
(`VICTORY_MOUSE_WARP=1` or `0` asks for either): left alone it stops at the
window's edge, and the stick with it.

`VICTORY_PAD_KEYS=<key>=<button>,...` gives the keyboard's stand-in pad keys
of the start's own; `pc` is a layout for keyboard and mouse (Left Shift A,
Space X, F Y, R B, Tab LB, Q RB, Left Ctrl L3, C R3, V View; W/A/S/D, Enter,
Backspace, Esc and the arrows stay what they were), and more can follow it.
A key named there is that button alone.

Checked in the game (2026-11-28; a shared save in the first house, Series S
profile, RTX 3090 Ti) with the pointer moved by a script: 700 pixels a
second to the right for 2.5 s and to the left for 5 s turned the picture to
the right and to the left (screenshots before and after each), and W made
the character get up and walk. The feel (dead zone, speed) has not been
tuned by a hand on the mouse. 32 tests of the module pass, seven of them
new.

AI-assisted (Claude Code, Claude Fable 5.2).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ions through mimalloc

The release profile inlines across crates (thin LTO, one codegen unit a
crate) and the compiler may use AVX2, BMI and FMA (x86-64-v3; the title's
own code needs AVX2 already). The layer's own allocations come from
mimalloc, which keeps blocks per thread, where they came from the process
heap that the title's threads and the drivers share (feature `mimalloc` of
victory-gpu, on by default for the `victory` program; `--no-default-features`
builds as before). The allocator that counts blocks stays in front of it.

Measured together with the next commit (prologue's cell, Series S profile,
DLSS off, RTX 3090 Ti, Ryzen 9 9950X3D, medians of five-second readings over
four minutes): 31.7 -> 31.9 frames a second, the thread that prepares
submissions 29.3 -> 28.7 ms a frame. Small here; trustno1-coder/VIctory-NVIDIA
trustno1-coder#537 (hqjake) and trustno1-coder#11 (Dastano) proposed the same and measured more on
slower processors.

AI-assisted (Claude Code, Claude Fable 5.2).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
KyleS98 and others added 5 commits November 28, 2026 08:19
VICTORY_AMBIENT_ON (the diffuse light), VICTORY_AMBIENT_SPECULAR_ON (the
reflections) and VICTORY_AMBIENT_AIR_ON (the air), on unless 0. In a
diagnostics build VICTORY_AB=<seconds>,<switch>.. turns them on and off while
the title runs, so one view is seen with and without a part: the first house
of a shared save starts in a room of its own choosing each time, and two runs
do not show the same thing. VICTORY_AMBIENT_SPECULAR_ALPHA is read the same
way (it was read from the environment at every dispatch of the miss program).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…unded (VICTORY_AMBIENT_ALPHA)

The title lights its transparent surfaces and particles from a volume before
the eye (32x16x64, a mean and a direction a cell) that rays of its own fill:
CS_GatherAlphaVBuffer, CS_ShadeAlpha, CS_VarianceFilterAlpha,
CS_SpatialFilterAlpha. Without the ray-tracing structures those rays find the
sky from everywhere, and in a room the dust in the air is lit as under the
open sky: white specks all over the picture.

VICTORY_AMBIENT_ALPHA=<multiple> bounds that volume, right after the last
program that writes it, by a multiple of the light around, with the pass that
bounds the air's light. Unset or 0: as the title has it.

Seen in the first house of the story (a shared save, RTX 3090 Ti, Series S
profile), flipped on and off in one view (VICTORY_AB with
VICTORY_AMBIENT_ALPHA_ON, diagnostics build): specks without, none with, at 1
and at 4. On the deck outside that house the picture is the same with and
without.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…yes and floors indoors)

Indoors the traced reflections came out of CS_TemporalResolve2_Opaque and
CS_TemporalResolve1_Alpha far brighter than the room: eyes, glossy floors
and glass glowed with the sky's light (issue trustno1-coder#163). Bounding the miss rays
does not help: the glow enters after them. With VICTORY_AMBIENT_REFLECT=<n>
and VICTORY_AMBIENT_REFLECT_IN naming those programs, a pass after each
resolve holds every texel of its R9G9B9E5 image to n times the light around
(the ambient estimate's four points about it, a fifth of the room's mean),
hue kept. Off unless both are set. Resolves dispatched with no groups, or
after a count buffer, are left alone (a hold would rewrite older contents).

Ported from TaynanGT/Vice-Tay#99 (fc9ef8a, fa90adf), itself from Serph91P's
avatarmanz/VIctory-7900XTX#314 (6c7e3a87); idea and switch name from
beloooo (VIctory-Belobug-AMD 44dcd437).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 8db298b)
…nly for that (VICTORY_LAZY_COMPARE_MB, VICTORY_LAZY_NARROW; off by default)

The constants heap (174 MB) is declared written by the skinning passes in
every submission, so it was compared whole after each of ~12 submissions a
frame (2.2 GB of the card's reads to find ~2.6 MB written), and every
constant fill from it counted as blocked by flights and was planned onto
the card (`card_steps`, 7-12 ms a frame on the submitting thread).

VICTORY_LAZY_COMPARE_MB=<MiB>: of a card copy at least this large, a
submission compares only the pieces found written lately
(VICTORY_LAZY_HOT compares, 64), the left-out pieces about to be sent up
(their rehash is held back, so the compare still sees older shader
writes), and the next VICTORY_LAZY_SWEEP (128) left-out pieces in turn.
Those compares store their hashes (mode 2). The write-back itself is
unchanged: what is found is fetched and merged as before.

VICTORY_LAZY_NARROW=1 (with the above): where submission steps wait for
flights or are done on the card in their order (late_blocked, card_steps,
cut_for, the relay's wait), such a copy counts as written only on those
pieces. Refreshes still see every declared write.

Accepted: a piece written for the first time reaches title memory, and is
read as the title has it, only once the sweep finds it (~2 frames).

Series S, DLSS Performance, 30 fps cap, RTX 4070, same walk, one build:
frame time by draws per frame, switches off -> on:
4-6k 53.7 -> 50.4 ms, 6-7k 56.8 -> 54.4, 7-8k 59.2 -> 57.1,
8-9.5k 62.7 -> 58.8; submitting thread 49.5 -> 45.8 ms, its planning of
steps on the card 7.4 -> 1.7 ms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit f7cc776)
… them

VICTORY_SKIP_A to VICTORY_SKIP_D take shader hashes as VICTORY_SKIP_PIPELINES
does; each group is skipped only while its switch (VICTORY_SKIP_A_ON ..) is
on, and VICTORY_AB flips those while the title runs. Diagnostics builds only.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
465d6a0eac added a commit to 465d6a0eac/VIctory-NVIDIA-Experiment that referenced this pull request Nov 28, 2026
KyleS98 and others added 6 commits November 28, 2026 10:11
… memory stack off

Neo's launcher settings after the merge of upstream's main (63b902f), each
measured on an RTX 3090 Ti and a Ryzen 9 9950X3D, Series S profile, DLSS off:

- VICTORY_AMBIENT_REFLECT=1 with VICTORY_AMBIENT_REFLECT_IN naming the two
  resolves (Ahyildiz's change, trustno1 trustno1-coder#818), and VICTORY_AMBIENT_ALPHA=4.
  In the first house of a shared save, flipped on and off inside one run and
  one view: without them a terrarium's glass is a white box, a table top, a
  patch of floor, a microwave's door and a wall clock are white, and white
  specks stand in the air; with them none of that. On the deck outside the
  picture is the same but for a glass door, darker with the hold. In the
  prologue's cell 39.3, 39.0 and 38.8 frames a second with them against 39.5
  and 39.3 without: nothing.
- Upstream's memory stack (VICTORY_SLOT_EVICT, VICTORY_ALLOCATOR_TRIM,
  VICTORY_BUDGET_PACK), which its main now turns on, is left off: 38.5 frames
  a second with it in that cell, 39.4 without, and the process held as much
  memory either way (36 to 41 GB by run).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The merge of upstream's main joined its rule (a letter of the stand-in pad
counts by where it is on the keyboard, and a letter in none of the pad's
places presses nothing) with Neo's keys from the start (VICTORY_PAD_KEYS)
too loosely: a letter in none of the pad's places still pressed what the
tables name for that letter. Upstream's test for a Dvorak keyboard's S said
so.

Now the tables' letters go by their place alone. A key the start gave a
button goes by its place if it is one of the pad's places, and by what it is
otherwise (the PC layout's R and V have no place in upstream's table). Neo's
tests build their keys as a keyboard sends them, with the place; one more
case checks an AZERTY keyboard under the PC layout.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… speed

The first house without its white glow and specks, the merge of upstream's
main, and docs/speed-methods.md: every speed method tried on 28 November in
the prologue's cell with what it measured (frame rate and frame times), what
did nothing, what was not built and why its gain is bounded, and what the
frame waits for now.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…LASSES=1, off by default)

Mixed in the same 64 MiB blocks, thousands of 64 KiB textures and the few
large ones leave holes as they come and go: 1.0 to 1.7 GB free in the
texture blocks throughout the runs on an RTX 3070 Ti (8 GB), which the
texture queue counts as room while a large texture finds no range in it.
With the switch, pieces up to 256 KiB and larger ones are cut from blocks
of their own; an emptied block takes either class.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
From the same base (63b902f), measured on an RTX 3090 Ti and a Ryzen 9
9950X3D (30.7 to 39 frames a second in the prologue's cell): translated
shaders that wait less, the layer's own threads on the die the title does
not use (VICTORY_OWN_CPUS=auto), a queue of retired objects to each
thread, write faults that ask about one page and open their block
without the lock, no keep-awake loop on the card, thin LTO and mimalloc,
the reflections' hold and the transparent light's bound indoors, the
title's rate 60.

Here: VICTORY_ONE_CCD stands aside when VICTORY_OWN_CPUS names processors
(its best-ranked die is likely the title's own), and the README keeps
this fork's text with Neo in its credits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
@urielbeaupre

Copy link
Copy Markdown

A data point for the two-die placement on a Ryzen 9 7900X (6+6 cores, two CCDs) with an RTX 4070 Ti 12 GB, Series S profile, DLSS off, same save, warm caches.

I couldn't merge the PR branch as a whole onto my test base (it brings in about 1,000 other commits), so I cherry-picked only 018d54f, "frame threads on one die, target reserve sized to the card". I put it on main 63b902f plus #1038 and #1184. One build; VICTORY_ONE_CCD alternated; a warm-up run first (not counted). The log confirms the placement in the "on" runs ("the thread is kept on one die", 16 threads). Cutscene = seconds 60–110 after input, after = 110–165:

run VICTORY_ONE_CCD cutscene fps CPU preparing after scene change
on1 1 35.9 20.8 ms 21.8
off1 0 41.0 18.6 ms 24.3
on2 1 38.6 19.4 ms 24.5
off2 0 38.5 20.5 ms 23.3

Average: on 37.3 / 23.2, off 39.8 / 23.8. On this CPU there's no gain from keeping the frame's threads on one die. If anything it's slightly slower in the cutscene, though the second pair was even, so part of that is noise. My guess is that six cores on one die are tight for the submit thread, its helpers and the list translators together on a 6+6 part, while a 9900X/9950X with more cores per die has room. It might be worth keeping it off by default for 6-core-per-CCD parts, or measuring there before turning it on.

🤖 Generated with Claude Code

A launcher that keeps the cache in a folder of its own may empty it: on an
RTX 3070 Ti started by VILauncher, 7 of 11 sessions began with no
translation and no pipeline library (about 2,250 shaders translated and
800 pipelines made again, the first cutscene black for a minute). A folder
it does not know of keeps them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
…y their shape out

On an RTX 3070 Ti, after the merge of VIctory-Neo, the skin of a face in
a cutscene came out as coloured stripes (as nothing in a run before),
where the build before drew it right. The switch, part of the shader
cache's key, tells whether it is that proof.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
465d6a0eac added a commit to 465d6a0eac/VIctory-NVIDIA-Experiment that referenced this pull request Nov 28, 2026
…ocked write faults on in the launcher

An RTX 3070 Ti reports a 7,249 MB budget and had no windows on the card: a GPU Trace of the open world put 176 MB a
frame of the draws' reads on the bus (draws 42 ms of a 108 ms frame at base clocks), 95 MB and 30 ms with 1024 MiB
of windows on the card. With trustno1-coder#730 and relay-lean (fps-stack2), interleaved pairs against main: 14.8 / 14.5 and
15.3 / 14.4 fps standing; walking with frame generation 14.7 / 14.4, shots clean.

(shadow::window_tests::card_limits_scale_with_local_vram_budget already fails on main: default_card_limits_mb
gives (0, 512) where it expects (16, 512).)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SGw6DM2fQu3WKmCUhFxrrM
465d6a0eac added a commit to 465d6a0eac/VIctory-NVIDIA-Experiment that referenced this pull request Nov 28, 2026
…-lean and unlocked faults in main (+4.7 % standing); Nsight findings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SGw6DM2fQu3WKmCUhFxrrM
claude and others added 10 commits November 28, 2026 18:35
…ERFALL_SHAPE=1 turns it on)

On an RTX 3070 Ti it drew the skin of a face in a cutscene as coloured
stripes (as nothing in another run); with it off the same shot was right.
The shader cache's key holds its effect, not its switch's text, so that a
translation cached with it on (VIctory-Neo's default) is not served
without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
…s are one die; the 9900X guide's final settings

On a Ryzen 9 9900X (dies of twelve) four of the title's sixteen
processors lie on the other die, and the layer's threads crowded there
beside them: frames of 3,500 to 5,000 draws took 63.9 ms with auto and
44.7 ms without (RTX 3070 Ti). auto now leaves such a processor as it is.
docs/ryzen-9900x-rtx-3070ti.md: what was measured on that PC, the settings
it ended with, and what did not work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
…hape in compute programs only

Neo's proof in every stage drew a face's skin as coloured stripes on an
RTX 3070 Ti; without it heavy cutscenes lose 3 to 5 frames a second to
the card. compute keeps it where no face is drawn (Neo's 3.5 ms program
was a compute one). The mode is part of the shader cache's key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
A policewoman's skin came out as coloured noise in a cutscene with the
proof in compute programs alone (the skin is made in a compute pass), for
4 frames a second in scenes of 2,000 to 3,500 draws and nothing in
heavier ones. Off, the default, is the only setting that draws every face.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
…n (60 shown in light cutscenes, 43-52 in heavy ones)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
(cherry picked from commit 60a6ca8)
(cherry picked from commit e09f44a)
(cherry picked from commit e41744e)
…s off by default (VICTORY_LDS_BOUNDS_EXEMPT=faces turns it on)

On an RTX 3070 Ti, with trustno1-coder#938's 25 face programs exempt, a policewoman's
skin came out as coloured noise in a cutscene; with VICTORY_LDS_BOUNDS_EXEMPT=0
every face was right (two sessions each). The shader cache's key holds the
list in effect, not the switch's text, so translations cached with the
exemption are not served without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
…d keep to VICTORY_SHADER_CACHE_DIR

victory preload translated into the default cache and warm built from it,
so a preload filled a folder the runs started by VILauncher (with
VICTORY_SHADER_CACHE_DIR) never read. They all keep to the same folder now.
PRECACHE.cmd finds the victory.exe VILauncher built (the driver keeps
pipelines by program path), asks once for the game folder and runs the
preload into C:\VictoryCache.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
…play does

A launcher that starts victory run itself (VILauncher) had no way to load
the mod: only victory play loaded it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULB8X6uKz9YY1ZUqZ9W4YP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants