Expose the cap in MiB as a launcher parameter and keep the existing More override. Restore the runtime default for launches that omit the cap.
Refs: #6
On a PC with 16 GB of RAM (RTX 3060 12 GB, i5-12400F, Series S at 540p)
every run with play-nvidia.ps1 ended a minute or so into the world: the
card's shared memory (the PC's, capped by Windows at half the RAM) reached
7.5 GB, a host list failed to close or be made with 0x8007000E, and the
driver faulted in CopyTextureRegion. About two thirds of that memory were
the windows of title memory outside buffers.
VICTORY_WINDOWS_BAR_MB=3072 puts them in card memory the CPU maps
(D3D12_HEAP_TYPE_GPU_UPLOAD) while the card has room. Same machine: no
crash in 5+ minute runs, shared memory flat at about 4.4 GB, 10-12 fps in
the world instead of 1.6-3. Without a resizable BAR, mapped_card_buffer
returns None and windows stay where they were.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
"read-backs and lists" in the landing line is split into texture
read-backs, buffer read-backs and the flights' card plans and own work.
On a 16 GB machine with an RTX 3060 (Series S, 540p) the texture part
stood at 1-2 ms a frame, and at 124-416 ms in the frames where the world
streamed: texback::land waits for the lock against mapping changes
(watch::title_memory_reading), which the title changes all the time
then, and the landing of every submission waited with it.
The landing thread now only copies a read-back's texels out of its
buffer; waiting for the locks, tiling and writing into title memory go
to a thread of their own, which writes only the newest of several
copies of one allocation (the title reads the frame before at most).
VICTORY_TEXBACK_ASYNC=0 writes them where they land, as before. A new
line gives the writer's waits and work per frame.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Add a per-kind breakdown to the periodic descriptor memory log. Report
occupied and free table slots and their flat memory footprint for all
six view kinds (constant buffer, shader resource, unordered access,
sampler, console sampler, placed memory). Free slots retain their last
occupant's kind until reuse. Both the existing summary and the new
breakdown come from one read of the table, in one pass over `list`
plus one over `free`, with no extra lock acquisition and no temporary
allocation sized by the table.
Two isolated tests (their own local table, no shared state, no raw
pointers, no unsafe code) verify the counts, byte attribution, and
cross-kind reuse: that a freed slot reused for a different kind moves
its count from the old kind's total to the new kind's without
affecting the table's overall size.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Allow local paired compute bytecode on the supported Wave32 host when the normal translation confirms that the shader bindings match. Keep the normal translator and cache as the fallback.
- host.rs: VICTORY_ADAPTER=<part of a card's name, or #index> creates the
host device on that card instead of Windows' default; the log names the
card, or lists the cards when nothing matches. play-nvidia.ps1 -Adapter.
- README: RTX 5060 Ti 16 GB vs RTX 5070 12 GB on the same PC, same build and
settings (Series S 540p): 14.9 vs 19.3 fps. The GPU work is close; the
5060 Ti's slot is PCIe 4.0 x4 with no display, and this layer's copies
dominate.
- README: Series S at 1080p (render scale 1.0) stops at a breakpoint at
start on a 12 GB card too, so it is not video memory; use 720p or lower.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
play-nvidia.ps1 takes -Resolution (2160, 1440, 1080, 720, 540, 480): the
height the world is drawn at before the title's own upscaler. The render scale
is that height over the output height (Series S 1080, Series X 2160); Series S
refuses heights above 1080. The script prints the console and resolution it
starts with.
scripts\play-S-{1080,720,540,480}p.ps1 and play-X-{2160,1440,1080,720,540,480}p.ps1
call it with each, passing -Exe and other switches through. README: "Picking a
resolution", with what each draws, its render scale, which were measured on
the RTX 5070 and what to expect.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Faces: the face network's 16-bit values travel through integer views; they
were read as floats and came back as zeros on NVIDIA. Port of
fxceless/victory-fork pull request 927 (tippythetaidum): emit/halves.rs,
lower.rs, descriptor/host.rs, draw.rs.
- Ray tracing mostly off: scripts/rt_off_hashes.txt lists the 1,000
CS_RaytracingResolve and 34 traced-shadow shaders, skipped by
play-nvidia.ps1 through VICTORY_SKIP_PIPELINES (-RayTracing keeps them).
The structure builder cannot run on NVIDIA, so every ray missed and rooms
went white depending on the view angle. The screen-probe and visibility
traces keep running; skipping them left rainbow glitter.
- Intro video flicker: linear one-level R8 video planes always record their
copy (texture.rs), so frames of the ring no longer show out of order.
- VICTORY_AMBIENT_MOST (ambient.rs), VICTORY_NAN_SCRUB (emit/lower.rs) and
VICTORY_PIPELINE_WAIT_ONCE (pipeline/make.rs, on by default).
- Off by default: VICTORY_CONSTANT_MARKS (port of fxceless pull request
1216), VICTORY_TARGET_VARIANTS (port of fxceless a35c557393), F9 frame
capture (capture.rs).
- play-nvidia.ps1: the speed set by default, -Quality for the slower set
with fewer stretched bodies and less rainbow skin. README updated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The settings that lower the picture (Series S profile, half render scale, the
title's own upscaler, ray walks ended at the root), the ones that are faster
without changing it (memory compares on the card, waiting for shaders, Smooth
Motion), and the code changes that make it work on NVIDIA, with the measured
frame rates of each step. The old list further down now points to it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
What this fork changes for NVIDIA cards, where it stands on an RTX 5070 (Series S, half scale, about 20-22 fps), how to run it with scripts\play-nvidia.ps1, and credits (the 7900 XTX fork first).
scripts\play-nvidia.ps1 -Exe <your copy's executable>: the fork's play set plus PIPELINE_WAIT_MS=10000, DYNAMIC_SLOTS=524288, RENDER_SCALE=0.5, OWN_UPSCALER=1, BVH_MISS=1, CARD_BUFFERS_MIN_MB=1, CARD_BUFFERS_MB=1536, COMPOSE=1, Series S. Starts a victory_sm.exe copy of the build so an NVIDIA App Smooth Motion profile for that exe applies (-NoSmoothMotion: victory.exe; -SeriesX: the Series X profile).
While the BVH builder is off its nodes are stale: VICTORY_BVH_MISS=1 makes every box and triangle test a miss instead of walking them (no hang, about 10 ms a frame less). It is part of the shader cache key.
hooks.rs (1.0.2.1 executable only): VICTORY_RENDER_SCALE (0.2-1.0 internal render scale), VICTORY_OWN_UPSCALER=1 (the title's own temporal upscaler on every profile; Series S needs it with a scale below 1), VICTORY_NO_WATCHDOG. Taken from the victory-perf patches.
NVIDIA caps the shader-visible view heap at 1,000,000 (the title wants 1,245,184), so the dynamic slot pool (2^18) ran out and 1,100-4,800 tables a frame were refused, each a dropped draw (the screen rarely updated). VICTORY_DYNAMIC_SLOTS=524288 takes more of the title's kept-in-place slots (at most half the heap): 0-33 refused a frame.
- present: VICTORY_COMPOSE=1 lays the Series S interface plane (4K) over the game plane (1080p); without it everything before gameplay is black. Ported from fxceless/victory-gta6 PR #1189 (compose.rs; FSR stand-in not ported, use VICTORY_OWN_UPSCALER=1).
- shader cache key includes VICTORY_BVH_MISS.
Measured on an RTX 5070, Series S, half scale: about 20-22 fps, no device loss.
What 53abe45a ("wip wide") brought in: opt bit 64, smem's loads through
raw_dwords, its test and switch test as they are there (the global loads of
this tree were wide already). Yard capture, turn by turn: 18.47 -> 18.45 ms
(12 loops) and 18.23 -> 18.16 (5): nothing, so not on. With the bit off the
code written is that of before.
Not run yet: scalar_buffer_loads_read_the_same_dwords_one_call_or_four and
the gpu tests on the second merge of local/next (2be0515c); the diagnostics
build of 393e74fb finished.
Belobug ae75a66a is this tree's own opt.rs (both from the fork at ba8697aa)
without its first-lane pass; 7263339c is a trace: nothing to take.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Belobug (76387c2d) found draws flickering because the records past a list's
budget were not the same ones from frame to frame. Whether ours are refused
is not known: the count says it (atomics only when there is something to
say). Off by default; the records' order and costs stay what they were.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Theirs compares the handles, which a title may write other views behind;
here the views themselves (resource, host texture, description) are compared.
A call with the same ones saves a host view per target and the driver's call.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Until the list next writes title memory, as for refreshes: up to 64 KiB of
fill less for every repeat. How often this title binds one was not measured.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two queries for an interface, three locks and a name looked up at every
change of pipeline; now one lookup by address.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Dispatches declare the same few ranges again and again: 4,003 to 5,550
steps a frame of fork-b1-fast, each a flush of its copy's pending refreshes
and two locks on the thread that submits (the snapshots alone 1.7 to 2.0 ms
a frame). The ranges and their order stay what they were.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Queue: passes over the screen first (local/next), then what draws asked
for, the early ones, and those known to take long by a quarter of the
workers. start() woke one worker, which could be one of the two that take
passes over the screen alone: the pipeline then waited for the next push.
All are woken now. victory warm goes through the pipelines no run drew with
in no order, 40 a process. victory translate: VICTORY_HOST_RDNA=1.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A page shown at several addresses, and one more view of it being mapped: the
views that were to be opened were looked for before the lock was taken, so one
made clean in between stayed clean with a writable view beside it (a write of
the title's through that one was not told until its block's next told write),
and they were opened one range after another, so for some microseconds one was
writable while others were still known by their bits (told one asking late).
Both are older than the faults' work; VICTORY_OPEN_ONE_VIEW made the first
common. Also: what is known by its bits is not where bytes were just put in
beside the guard (VICTORY_COPY_BESIDE, VICTORY_STORE_BESIDE).
The test of writes through other views failed in 6 of 200 runs, then 4 of 380
with the first mended, 0 of 603 (four tests each) with both.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A page shown at several addresses, and one more view of it being mapped: the
views that were to be opened were looked for before the lock was taken, so one
made clean in between stayed clean with a writable view beside it (a write of
the title's through that one was not told until its block's next told write),
and they were opened one range after another, so for some microseconds one was
writable while others were still known by their bits (told one asking late).
Both are older than the faults' work; VICTORY_OPEN_ONE_VIEW made the first
common. Also: what is known by its bits is not where bytes were just put in
beside the guard (VICTORY_COPY_BESIDE, VICTORY_STORE_BESIDE).
The test of writes through other views failed in 6 of 200 runs, then 4 of 380
with the first mended, 0 of 603 (four tests each) with both.
Co-Authored-By: Claude Opus 5.5 <[email protected]>