rts-1 (stamps): the programs that walk the structures take 56-60 ms of the
card a frame in 16 dispatches, the builder 1.5 ms in ~275. The bench: a view
picked per lane costs nothing while a wave's lanes share it; two copies a
wave double the time (cache footprint), so the walkers' cost is not the
descriptor path.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the structure builder on, one submission a frame stood until every
flight had landed (61 ms a frame in the city, sx4k-rt-w1; 15-23 ms on the
boat, merge-6): a 0xb0-byte constant buffer read on the CPU over bytes a copy
at its place had declared written, refused on the card for BEHIND_PLACED.
With the switch: the order of VICTORY_PLACED_ORDER=1 and its cut, and a fill
behind a copy at its place in its own list takes the bytes out of the copy's
source (HostList::forward_fill, port_rt::forwarded). A line of counts per
frame; VICTORY_RT_STAMPS=1 (diagnostics) times every compute dispatch on the
card by kind (builder, structure walkers, others) and by pipeline.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the builder running the title's traced diffuse light flickers and goes
black indoors (the diner of the opening: walls and ceiling black under lit
lamps, against warm walls without rays), while the structures its rays walk
are partly wrong (reports/RT-FLICKER.md). With the switch the stand-in runs
after the title's resolve with rays as well, and keeps what the resolve left
between least and most times the estimate (without the switch, and without
rays: at least it and at most four times it, as before). Without
VICTORY_AMBIENT the band's level (0.8) is the share, so the cutscenes before
the builder starts are lit too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Without the bound every committed title page a shader faulted on got a copy,
yet 110-730 pages a frame stayed without one: addresses that are not the
title's memory, so pointers out of wrong structures; and the pages filled
their 3 GiB in four minutes. The flicker with ray tracing is not the bound.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With ray tracing the bound of 2,048 pages taken from faults in all is met in
the first minute (run play-1126-0921: at 63 s); from then on 130-500 pages a
frame that the walking programs touch have no copy for the rest of the run.
The ten-second line now says how many different pages faulted and how many a
frame the bounds left without a copy; the first three frames that leave some
log all of them. Unset, the bound is as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Records those copies wrote were found by the fallback only, 16 pages a frame of ~290:
150-300 view records a frame on those 16 pages showed the slot's older view, so
trees, palms, signs and distant buildings came and went from frame to frame.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run p7-1 (in-run A/B): with part 1 alone the lane still waited 4.1 ms of
5.3 for the heaps' records; 2.4 of 16 preparings a frame found their round
asked earlier. A wait that goes now asks for its round at once (as patch 4's
part 2 did), and one met by the card's own write raises no floor. Counted:
preparings that had to ask at the preparing, and those with no mark.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The heaps' records: a round of the heap-sync thread is asked for when the
title submits, and the lane waits for that round, or for one begun after a
wait of its queue went or a step of ours wrote a heap's memory
(port/lane 97033e5a; its plans part is left out, port 6 plans beside the
lane already).
The journal: the pages' notes are in 64 parts, each under a lock of its
own. With the switch an answer is noted holding the journal shared and its
pages' parts for writing (writes, landed_beside, a submission's asking
before its ranges and number are set alone); what has nothing to change
(wrote with no asking standing, ask_once_end, ask_ahead_done) looks shared
first. A fresh number to answer with is taken holding the range's parts,
switch or not, so an A/B run mixes both safely; a page's note only goes up.
End-of-run line each second: renderer port 7 (heaps' waits with and
without the switch, rounds asked at submit; the journal's waits, the
lane's own among them). Tests: parts and ranges, notes out of order, a
fresh number sees every lower note with no deadlock (8 threads), no write
lost with the switch on in all threads and every other one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run guard-4's timeline: the submission with most of the frame's steps spent
2.9 ms gathering them and 3.9 ms on the spans, alone. Each list's steps are
now folded per copy beside it (fold_touches: the span of its refreshes
before its first write by shaders, whether it writes it) and the folds
joined in list order (join_keys), which gives what front_spans gives of the
whole submission, span for span and in order: front_tests, 3,000 random
submissions of lists, parts, refreshes and writes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One submission a frame spent up to 6 ms in that look alone (run guard-3,
the timeline at 100 s: 5.8 ms with nothing else on the lane) while the six
threads beside it waited; with more than 256 refreshes it was already done
beside them, as each one's first step.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sets of guarded blocks are of atomic words and GUARDS is a reader-writer
lock. With the switch a write fault, a refresh guarding its range and a block
made known by its bits take the lock shared and the claims (BUSY bits) of the
blocks they change: faults wait only for whoever changes the same block, not
for one another, and refreshes do not wait for faults. Faults wait for claims
in block order, refreshes only try for theirs (a block they cannot claim stays
written, told so at the next asking), so no two wait for each other. What
changes more than single blocks (mappings, kernel reads, freed memory, holes)
still holds the lock alone, as before. Blocks known as view memory (VIEWS) go
to the guards at once instead of a kernel asking that is refused.
VICTORY_GUARD_HOT=<ms> (off): blocks written again soon after each taking
rest longer. End-of-run line: renderer port 6 per frame.
Tests: three stress tests of the view writes with the switch on (all
threads, half of them, resting and hot blocks).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Series S renders through FidelityFX (+0x28ef680). With its scale at 0.5 (run res-6) FidelityFX's
jitter phase count came back 0 and the title divided by it at +0x28f03e8, 49 s in. The title's
own upscaler (Series X) ran at 1.0 (run res-4). The FidelityFX patch stays, behind its own switch.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The console takes constant buffers on 16 bytes, D3D12 views on 256, so every
constant buffer a draw's tables name was copied at each submission into upload
memory of ours (~23,000 a frame of the city, ~9 MB, out of the title's graphics
memory that renderer port 1 already has the card read in place), and each root
one not on 256 bytes (64 KiB each).
With the switch, translated shaders read constant buffers as raw bytes
(victory_shader::emit::constants_raw): a table's (or one picked from the heap)
through the raw twin of its slot, a root one as a root SRV. The host makes a
table's constant buffer in title memory in place a raw view of the title's
bytes in that twin (descriptor::host::constant_raw_at): no copy, no step at
submission. Others are copied as before (their twin is a raw view of the copy);
a title slot's constant buffer view gets a raw twin (a raw read through a
constant buffer view has no end on AMD). The shader cache keys on the switch
(only when on: translations cached without it keep their key, so the
translator version stays). VICTORY_PORT_CBV_PLACE=0 copies again while reading
raw; with VICTORY_AB=<s>,VICTORY_PORT_CBV_PLACE both sides in one run.
Per-second line: "renderer port 5 (VICTORY_PORT_CBV=1) per frame: ...".
Test: emit::tests::table_constant_buffers_read_as_raw_bytes_through_their_twins
(WARP: the twin is read, the slot's own view is not).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Heaps are made without sharing across adapters, so the resources placed in them
cannot ask for it: the buffers renderer port 1 places in the heap opened from the
title's graphics memory (and every other heap opened from memory) were refused
("parameter incorrect", 1,326 to 3,576 a capture). With `--timing detailed`, a
list that runs no shader but ours (the host's state preludes, copies of what
the CPU sent up, the card copies' passes) has its commands summed under
"... (lists of ours)".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The title makes its back buffers in a 64 MB pool (Series X) and stops at an int3 unless less
than 2 MB of it is left over; at 1920x1080 49 MB are (run res-1 stopped there 2 s in).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The title takes its output size from its settings (settings.xml video/resolutionFullscreen,
3840x2160 as a Series X wrote it) and applies it at +0x224352b (+0x22434a0) through the one
screen size setter +0x2478130; the back buffers follow (+0x247ad10). VICTORY_OUTPUT=<w>x<h>
(one of the title's own modes) makes that block write the size into the settings, then take
the title's own path. VICTORY_RENDER_SCALE=<0.5..1.0> replaces the title's own upscaler's 2/3
(+0x28f1e78) and FidelityFX's scale (+0x28ef680, as pull request #53); VICTORY_UPSCALER=<6|7>
is pull request #53's picker patch (+0x7e93f0). Each site's bytes are compared first; another
build is left alone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- texstore.rs: a texture uploaded whole from level 0 is kept (memory, up to
4 GB, and the folder) under keys of its shape and the digest of its
smaller levels (>= 32 KiB of them, the start of its memory). A texture
later first viewed from such a level with those bytes gets a whole host
copy: the larger levels are copied from the store by its first upload's
list, and its views show from level 0.
- draw.rs heap_textures: the backoff of looks at slots whose memory is
away was 'about four seconds' counted in passes (several a frame): up to
256 frames, 13-18 s; VICTORY_TEXTURE_LOOK_MS=<ms> caps it by frame time.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- lightprobe.rs (VICTORY_LIGHT_PROBE=<csv>): a line a frame of what the
title's exposure (PS_CalculateExposure) and lux factor
(ComputeLuxCompressionInfo[Smooth]) programs read and write, and of the
stand-in for the indirect light (its slow mean; the sampled mean of the
title's resolve, the estimate and what was written).
- texlate.rs: how long textures take to be shown (slot written to
uploaded, with or without waiting for memory; upload to the slot showing
it; first part view to whole level 0; last look that found memory away
to the upload), a line with the memory lines.
- ambient.rs: VICTORY_AMBIENT_SETTLE=<ms>[,<jump>[,<fresh s>]]: the slow
mean of the light around (20% of every pixel's estimate) follows by a
time constant instead of 0.04 a frame (25 frames: 2-4 s at 7-13 fps),
takes a change by more than <jump> at once, and optionally bounds the
title's leftover by the estimate for <fresh> s after such a jump.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run fps-1 (our clock at 16.667 ms, the title left at 30): the menus ran at
16.7 ms until the title's own limiter came up at 30 s (then 33.3 ms), and
meanwhile five of its seven timers stepped 33.3 ms a frame: game time ran
at twice the wall clock. The timer update (+0x2226040) takes the real time
since the last frame but at least 1/rate (+0x6849844), and that rate comes
from +0x2241fd0, a third read of the same setting. It now returns the rate
asked for (1000 for no limit), the original bytes checked first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>