Commit Graph
638 Commits
Author SHA1 Message Date
Jeremy Goldberg fdc8bbc566 fix(gpu): include buffer comparisons in GPU timings
Keep diagnostic end markers after the comparison while retaining its separate queue call and the existing fence.

Refs: #1
2026-11-26 09:44:27 -05:00
trustno1-coder 7480e961a5 Merge pull request #2 from jeremygold02/codex/d3d12-ambient-depth-srv
fix(gpu): resolve D3D12 error 646 in ambient depth binding
2026-11-26 06:09:57 -08:00
trustno1-coder ebf3d3c9e5 Merge pull request #1 from jeremygold02/codex/d3d12-buffer-compare-state-decay
fix(gpu): resolve D3D12 error 538 in buffer comparisons
2026-11-26 06:09:53 -08:00
Jeremy Goldberg c05b44b34a fix(gpu): bind ambient depth only to a matching SRV
Only the resolve pass uses depth. Require the correct descriptor type and matching dimensions to prevent D3D12 error 646.
2026-11-26 02:00:21 -05:00
Jeremy Goldberg d1fe0bd015 fix(gpu): submit buffer comparisons after state decay
Submit the comparison list separately before signaling the fence so implicitly promoted title buffers can decay to COMMON. This fixes D3D12 error 538.
2026-11-26 01:11:05 -05:00
trustno1-coderandClaude Opus 5.5 033be27f33 Pick the card (VICTORY_ADAPTER); RTX 5060 Ti results; Series S 1080p crashes
- 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]>
2026-11-25 19:41:22 -08:00
trustno1-coderandClaude Opus 5.5 d3cd650c12 Launchers per console and resolution
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]>
2026-11-25 19:20:45 -08:00
trustno1-coderandClaude Opus 5.5 77e13a974a Faces move, ray tracing mostly off, intro video fix, picture fixes
- 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]>
2026-11-25 19:13:08 -08:00
trustno1-coder 3e5fb36392 Update README.md 2026-11-25 16:19:59 -08:00
trustno1-coderandClaude Opus 5.5 0cdad6b357 README: list the projects this fork was built from
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 16:09:17 -08:00
trustno1-coderandClaude Opus 5.5 10e87106c2 README: what this fork changes and how it gets its frame rate, at the top
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]>
2026-11-25 15:48:31 -08:00
trustno1-coder 969843e0d0 README: VIctory on NVIDIA
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).
2026-11-25 15:46:43 -08:00
trustno1-coder a1849fac28 scripts/play-nvidia.ps1: NVIDIA Series S launcher, Smooth Motion by default
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).
2026-11-25 15:44:30 -08:00
trustno1-coder 24a479d329 Shader: VICTORY_BVH_MISS ends ray walks at the root
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.
2026-11-25 15:44:02 -08:00
trustno1-coder afd84de12f Loader: render scale, own upscaler and watchdog title patches
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.
2026-11-25 15:43:32 -08:00
trustno1-coder a9632bc8de NVIDIA: VICTORY_DYNAMIC_SLOTS on a capped view heap (stops dropped draws)
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.
2026-11-25 15:43:00 -08:00
trustno1-coder 7997a20363 NVIDIA: more dynamic descriptor slots; Series S interface plane (compose)
- 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.
2026-11-25 15:42:19 -08:00
localandClaude Opus 5.5 0a43566532 README: where it is cloned from
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 16:14:34 -06:00
localandClaude Opus 5.5 3b30d6f2cd README, findings and a start script of this fork; fxceless' README kept in docs; the translator's file may be 640 KiB
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 16:13:05 -06:00
local 57e55d069a Merge commit '449830f6' into local/next 2026-11-25 15:57:35 -06:00
local 5bf49062d6 Merge branch 'day/shaders' into local/next 2026-11-25 15:57:28 -06:00
localandClaude Opus 5.5 44629de2e6 Heaps' records copied as bytes: pages read, compared and sorted out on several threads, empty slots that show nothing left alone; pages of places read by steps on the card asked about once
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:57:28 -06:00
localandClaude Opus 5.5 200a9cc5e6 Scalar buffer loads four dwords a call (VICTORY_SHADER_OPT=127; off): fxceless c36971b2's shader part
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]>
2026-11-25 15:57:05 -06:00
localandClaude Opus 5.5 449830f6fd The frame line says how many indirect records ran empty for want of their list's budget, and the largest cost; VICTORY_INDIRECT_REST=0: a record that does not fit takes nothing from the ones after it
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]>
2026-11-25 15:46:34 -06:00
localandClaude Opus 5.5 ca1d519f18 The same render targets are not set again (after ZJOU acf478b8, author local); VICTORY_BIND_CACHE=0 sets them every time
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]>
2026-11-25 15:44:14 -06:00
localandClaude Opus 5.5 c96525dbb2 A root constant buffer not 256-byte aligned is copied into scratch memory once for the draws of a list that bind it (from Belobug 84ea9c12, romainhedouin)
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]>
2026-11-25 15:43:00 -06:00
localandClaude Opus 5.5 ab86ef7f3f A pipeline a list binds again is not kept and named again (from Belobug 92d353f8, romainhedouin)
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]>
2026-11-25 15:42:59 -06:00
localandClaude Opus 5.5 b32fb9975d A range shaders write is declared once until the list next writes title memory (from Belobug dd799aad, romainhedouin); VICTORY_DECLARE_ONCE=0 for the old way
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]>
2026-11-25 15:42:04 -06:00
local d906830564 Merge branch 'day/faults' into local/next 2026-11-25 15:35:09 -06:00
localandClaude Opus 5.5 17c4717b44 Title buffers' copies down to any size in the card's memory (VICTORY_CARD_BUFFERS_MIN_KB), the card's hashes over the buffer's own bytes (both after fxceless c36971b2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:35:09 -06:00
localandClaude Opus 5.5 393e74fb5e Merge local/next into day/shaders
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:33:43 -06:00
local 53abe45ad2 wip wide 2026-11-25 15:33:42 -06:00
localandClaude Opus 5.5 35bd011453 Merge local/next into day/shaders; pipeline workers are all woken
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]>
2026-11-25 15:32:48 -06:00
localandClaude Opus 5.5 2be0515cbe Views mapped beside guarded ones: all views of the page are opened together, under the lock
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]>
2026-11-25 15:31:36 -06:00
localandClaude Opus 5.5 23925a4aa2 Textures shaders write that the title reads on the CPU are copied back into title memory (from fxceless f5c03f3b, pull request 999: Geckomacabre 895c0b8f, 04df4350); on by default
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:31:36 -06:00
localandClaude Opus 5.5 5491ac7801 The pages shaders' writes were put into are noted without a lock
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:31:33 -06:00
local b46de36de6 Merge branch 'local/next' into day/faults 2026-11-25 15:31:33 -06:00
localandClaude Opus 5.5 30f7859baf Copies in the card's memory: the changed runs sorted once and stably, piece runs joined while built; steps on the card: slots made on several threads
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:29:08 -06:00
localandClaude Opus 5.5 689df313f5 Views mapped beside guarded ones: all views of the page are opened together, under the lock
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]>
2026-11-25 15:24:11 -06:00
localandClaude Opus 5.5 a30829c4d2 Pipelines known to take long are made beside the others, by a quarter of the workers (VICTORY_PIPELINE_SLOW=0: in the order created)
Run shaders-1, the first with a changed translator (fresh shader and
pipeline caches): 3,020 pipelines started at creation, all 16 workers in
programs of seconds to tens of seconds each while the title loaded (97 made in 20 s),
then the quick ones at 100-190 a second, too late: 0.5-1.6 s a frame and up
to 2,900 draws a frame dropped from 60 to 150 s. A pipeline that took a
second is now noted (slow-pipelines.txt; `victory warm` notes them too) and
waits in a list of its own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 14:35:11 -06:00
localandClaude Opus 5.5 b6202840aa Title bytes under flights' writes compared with AVX2 on threads of their own, the pairs sent up made on them; helpers that work ahead are not kept on the fast cores
VICTORY_UNDER_WIDE=0, VICTORY_UNDER_THREADS (6), VICTORY_FAST_CORES=3 (as before: all of them), VICTORY_WIDE_SPIN=<us> (0: off).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 14:23:12 -06:00
local 95037baf2a Revert "Replay: buffers in heaps opened from memory are made again (without the cross-adapter flag)"
This reverts commit a50c7fdeb5.
2026-11-25 14:01:37 -06:00
local 091151c6cf Merge day/light 2026-11-25 14:01:37 -06:00
localandClaude Opus 5.5 c3e643ebbd Sets of heap slots are bits, the heaps' records have threads of their own, what is mirrored of them is counted
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 14:01:36 -06:00
localandClaude Opus 5.5 f4cc8d8be4 Structure builder: the wait for sizes is off (VICTORY_BVH_SIZES_WAIT=1 turns it on): it mended nothing and costs some 20 ms a frame (light-15)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 14:01:14 -06:00
localandClaude Opus 5.5 9ab730282f Test of parts taken: other tests' notes at the address
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 13:46:47 -06:00
local 455f4d6df1 Merge branch 'local/next' into day/faults 2026-11-25 13:45:09 -06:00
localandClaude Opus 5.5 e8d3d918c3 Look-first stubs for moves and vector stores (VICTORY_WRITE_SITES); descriptors copied onto themselves are not written (VICTORY_SAME_RECORDS=0: they are); of tracked pages the parts written are taken (VICTORY_TAKE_PARTS=0: pages); waits for the trackers' locks and the heap sync's parts counted
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 13:45:09 -06:00
local 79615b78a5 Merge day/textures 2026-11-25 13:44:40 -06:00
localandClaude Opus 5.5 c9b3f45ad7 The panel is drawn by the diagnostics build only
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 13:44:39 -06:00