Commit Graph
654 Commits
Author SHA1 Message Date
readmet3xt-labandClaude Opus 5.5 d900cb8bf5 scripts/faultbook.py: reads the books of write faults (VICTORY_FAULT_BOOK)
Per book: faults a frame under the guards' lock (waiting, holding) and
without it (VICTORY_FAULT_UNLOCKED), by thread; blocks by the number of
frames they faulted in, and those that fault in three frames of four
(what VICTORY_GUARD_HOT would leave open); the time from a block's taking
to its next fault (what a longer VICTORY_GUARD_REST would leave out); the
busiest places in the code. Standard library only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 19:59:30 +05:30
readmet3xt-labandClaude Opus 5.5 71fb27233d Blocks the title writes again and again rest longer (VICTORY_GUARD_HOT=<ms>; off)
Nearly every block a frame makes read-only is written again and faults:
321 to 1,017 blocks made read-only and 323 to 331 guard faults a frame in
play (logs coolfox-20261126-155824 and -172435), each fault a change of
protection on a title thread and each guarding one on ours, under the
guards' lock. With VICTORY_GUARD_HOT=<ms> a block that a write fault
opens within that time after its last rest ended rests that long
(VICTORY_AB naming it turns it on and off; 50 ms when no time is given).
A block that rests is told as written at every asking, as for
VICTORY_GUARD_REST, so no write is missed: it is copied at each refresh
that takes it while it rests. The entries of a range whose mapping
changes are forgotten.

Test: a block written again soon after it rested is left open and told
at every asking at both views, and guarded again when its rest is over.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 19:59:30 +05:30
readmet3xt-labandClaude Opus 5.5 3f55056817 Write faults open guarded blocks without the guards' lock (VICTORY_FAULT_UNLOCKED=1; off)
Of 281 ms the title's threads spent in the write-fault handler over 14
frames of play, 252 ms were waits for the guards' lock (timeline tl.190;
tl.130 and tl2's tl.185 the same): faults queued behind other faults and
behind refreshes guarding, up to 5 ms, while a fault's own work took 8
microseconds at the median.

With the switch a fault takes the block's bit in OPENING (whoever finds it
set waits up to 100 microseconds for that fault, then goes the locked
way), tells the other views of the page as written when the block is
guarded with them (ALIASED, a mirror of Guards::aliased: TOLD and BESIDE
set, PUBLISHED cleared), clears the block's PUBLISHED, sets its BESIDE,
changes the protection itself and queues the block. The next holder of
the lock settles the guards' notes before anything else (guards ->
settle). Until then the holders of the lock treat OPENING and TOLD blocks
as written and leave them as they are (guard), publish takes its bit back
if it finds one, and protect_alias does not count an OPENING block as
read-only for another view. OPENING's doc comment gives the argument.

Also: BESIDE is forgotten when the mapping of a block changes (the block
is told as written then anyway; a bit left behind kept a hole mapped at
the address from being known by its bits). asked_for! moves to switch.rs
for both files. Diagnostics: the line of the trackers' lock waits counts
faults opened under the lock (waiting, holding), without it, and those
that went the locked way after all; the fault book has What::Unlocked.

Tests: the single-thread tests whose writes fault, again with faults
that take no lock; the many-askers test with all and half the writers'
faults taking no lock; a fault settled by the next holder; what holders
do with an unsettled block; eight threads faulting on the same blocks at
once through two views; ranges of bits cleared.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 19:59:20 +05:30
readmet3xt-labandClaude Opus 5.5 02b255d25b Merge agent/image2: pipelines with static samplers kept out of the pipeline library; ambient stand-in without feedback (switch)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 18:27:31 +05:30
readmet3xt-labandClaude Opus 5.5 8cf0a75267 VICTORY_AMBIENT_ONCE: the lighting stand-in without its own light fed back
The stand-in raises the diffuse light to an estimate made from the light the
visible surfaces sent out the frame before, which it had raised itself: its
own light comes back to it reflected, and the light settles at
level*e/(1 - level*a) rather than one bounce (1.3x at walls that send out
0.6, 1.75x at 0.9; more near lamps and pale walls: the overexposed rooms;
R3: VICTORY_AMBIENT=0 is much darker, lamps less blown).

With VICTORY_AMBIENT_ONCE=1 the raise notes, at the 25 places of each cell
the next keep reads, the share of the light there that is the title's own,
and the keep counts each place's light by that share: one bounce of the
title's light. Off by default (an A/B first). Light surfaces make
themselves (lamps) is counted down too where the stand-in raised it
(shortcut: no albedo to tell them apart). The cells' buffer grows by 25
entries a cell (0.9 MB).

Test: a model of keep and raise over frames (fed back vs once), and the
passes still build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 18:25:01 +05:30
readmet3xt-labandClaude Opus 5.5 7fa0e958e8 Pipelines with static samplers are not loaded from the pipeline library
The posterized light (PS_CompositeNMB reading its colour-grading tables
unfiltered) is the host driver's: a pipeline stored in an
ID3D12PipelineLibrary keeps the places its static samplers had in the
driver's sampler table in the run that stored it. Loaded in a run that made
static samplers in another order, it samples through other ones. Reproduced
on the 4070 SUPER (examples/lut3d_probe.rs): the composite's three samplers
(point, linear, trilinear), SM 6.6, the table read by heap index; stored,
then loaded in a process that made ten other static samplers first: every
sample is a table entry; made in that process: filtered. The runs that
posterized loaded the composite from the library (coolfox-174945: 1,614
loaded, 2 made); those that did not had made it (175249, whose
VICTORY_FILTER_3D translation was new).

Such pipelines are now made every run (the driver's own cache keeps that
quick) and neither loaded nor stored; the others keep the library.
VICTORY_LIBRARY_STATIC_SAMPLERS=1: as before. Any loaded pipeline with
static samplers could read through another's (filter, address mode, level,
comparison), not only the composite.

examples/lut3d_probe: the measurements (filtering of a 33^3 RGBA16F table
by table or heap index, bound point-sampler heaps, writes past a heap, UAV
state, background recompiles, 2,032 distinct static samplers at most: the
next removes the device), documented.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 18:19:07 +05:30
readmet3xt-labandClaude Opus 5.5 ec3696f61f Texture queue: due() for tests only
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 18:14:12 +05:30
readmet3xt-labandClaude Opus 5.5 5876706fb0 Merge agent/shaders: pipelines left out on purpose named; wave64 groups of several console waves on 32-lane hosts
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 17:39:29 +05:30
readmet3xt-labandClaude Opus 5.5 4f4970974f Wave64 groups of several console waves on 32-lane hosts: host waves meet per console wave
CS_DefragHeap_ComputeRelocations (vfx_triangleClip, 128 threads: two
console waves, which walk the decal triangle heap each its own way, with
LDS shared inside one wave and no barrier) did not translate on NVIDIA:
"an LDS read and write in one lane-branch region", and the wave-wide
branches (`widen`) were refused for groups of more than one console wave,
because a group barrier inside a branch one console wave takes and the
other skips would wait for threads that never come. Its dispatch was
dropped every frame.

- `lower::with_pair_meetings`: the two host waves of each console wave
  meet on their own (`Lower::meet`): an LDS counter per console wave that
  its 64 lanes count up and wait on, polling at most 4096 times (a partner
  that never comes costs wrong values, not a hung card). Used for the
  LDS meetings, the exchanges of masks, lane reads and wave-wide decisions.
  A meeting starts a new block: exchanges happen where the code is being
  lowered, the masks and SCC an instruction reads as numbers are exchanged
  before its own code (`exchange_first`), and an IR block's last DXIL block
  is taken after its exit's code (phi predecessors were wrong otherwise).
- With it, a branch closing a loop is in its own lane region (a lane that
  left the loop does not run it again), and the title's barriers count
  wave-wide branches as per-lane ones (`fence_only`).
- `widen` takes groups of whole console waves when allowed (the digest
  list or VICTORY_WAVE_WIDE=1); the LANE_MASK and driver-loop paths stay
  as they were. A program whose LDS with the meetings' dwords passes the
  host's 32 KiB is refused.
- Digest list: CS_DefragHeap_ComputeRelocations (128) and
  CS_TransmissionVolumetricsSubmerged (water_shading, 64 threads, the
  underwater volumetric light: widened like its tiled siblings).

CS_CollectTriangles_Meshlets (1024 threads) still does not translate: its
own LDS is the host group's whole 32 KiB, no room for exchange dwords or
meeting counters.

Checked: both translate and validate (dxil.dll); 1,800 other compute
programs translate to the same DXIL as before (VICTORY_HOST_MAX_WAVE=32).
New test: two console waves of one group in loops of 4 and 8 rounds with
LDS shared across their halves, bit-exact on an RTX 4070 SUPER.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 17:38:46 +05:30
readmet3xt-labandClaude Opus 5.5 6a58b96835 Merge agent/image: VICTORY_FILTER_3D (3D table filtering in shader code), capture probe
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 17:24:39 +05:30
readmet3xt-labandClaude Opus 5.5 d246d10802 VICTORY_FILTER_3D: colour-grading tables filtered in the shader (experiment)
PS_CompositeNMB (6318f669e4f17d65) posterizes light in some runs: every pixel
of its output is exactly one entry of its first 33^3 table (CS_LUT3DBlend4-
WithTonalAdjustments) run through the 64^3 ACES table, i.e. the first table
is read unfiltered (steps of 0.44 stops, green/magenta where the channels
step apart; ops2 frames 1513/1587/1657). Everything static is right: the
translated and the recorded root signature's sampler s1 is linear (filter
0x14), the view is a Texture3D of the 33^3 RGBA16F texture, the table's
contents are smooth, and the card filters such a texture (bound by table,
by heap index, with a point-sampler heap bound, left in UAV state).

With VICTORY_FILTER_3D=1 a level-0 sample of a 3D texture with a linear,
clamping immediate sampler is eight textureLoads weighted in the shader, so
the card's sampler is out of the path: a run with it on says whether the
sampling is what fails, and is the fix if so. Off by default; part of the
shader cache key. Test: both forms agree on WARP and the card.

examples/capture_probe: what a recorded frame bound for one pipeline (root
signatures, heap slots, constant words, 3D table contents), read from the
capture's files without a device.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 17:23:04 +05:30
readmet3xt-labandClaude Opus 5.5 f149e26fea Name pipelines left out on purpose instead of "being made"
The diagnostics breakdown counted every draw or dispatch of a pipeline
left out on purpose (make::left_out: CS_RaytracingResolve without the
ray-tracing structure builder, CS_ScreenProbes_ActivateRays) as "being
made": such a pipeline is never queued, so its host pipeline is never
made. In gameplay that was some 630 indirect dispatches a frame
("dropped 632.0/frame without a host pipeline: being made") while the
queue was empty in every frame ("0 being made"): the ray-tracing
resolves, one indirect dispatch per material (329 distinct resolve
programs bound in run 155824, their first binds in the second the
first indirect signature was dropped). No world draw is among them.

- make::missing names the reason ("left out on purpose: ...").
- The frame line counts them per frame, direct and indirect together
  ("N of all these left out on purpose: ray-tracing passes without the
  structure builder"), in release builds too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 17:14:53 +05:30
readmet3xt-labandClaude Opus 5.5 33687f9fe0 Merge agent/textures: null bake sources left out, texture room line from the budget
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 17:12:21 +05:30
readmet3xt-labandClaude Opus 5.5 ff5d931657 Texture room line from the budget; time host-copy creation in the pass
The texture queue made no new host copies from 90 % of the card's budget
on; in play (2026-11-26 16:52 run) it said "no room" at 9,526-9,881 MB
weighed against 9,519-9,583 MB, with 1,060 MB of 10,600 left free. The
line is now the budget less 768 MiB or 5 % of it, whichever is more, and
never under 90 % (92.8 % here: about 290 MB more for textures; 95 % on
24 GB cards; 90 % from 7.5 GB down). The idle sweep moves with it: none
go 2 % under the line, those idle 5 s go down to 5 % under it, those idle
1.5 s from 5 % over it (88, 85 and 95 % at a line of 90 %, as before).
VICTORY_TEXTURE_ROOM_PERCENT set: a flat percentage, as before.

The pass's 5-second timing line found its four timed parts a third of
the pass (16:52 run, 11:24:35: 3,175 ms in 5 s, 1,038 of them staging
uploads, 95 the rest of the four); re-checks are 1 %, so they are not
capped. The line now also times making host copies (creation and
residency) and making the slots' views, and gives the rest.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 17:08:48 +05:30
readmet3xt-labandClaude Opus 5.5 082ebaf3b8 Bake sources: leave out null views, say why a real one fails
The 588 "failed" bake sources of the first runs (3,720 sources in 256
bakes) were null views: slot 1 and others hold views of no resource,
which small numbers among the bake's words name all the time, and
is_texture_view counts them (no buffer behind them). They have no host
copy to make, so they were counted as refused. Now they are not
sources at all.

A real failure now says why (the first 64, a warning with the view):
the host refused the copy, the staging buffer was deferred, uploads are
refused after the host ran out of memory, or no upload was recorded (no
console layout, an XOR mode, no staging buffer). Whether an upload was
recorded is told by upload_from itself (UPLOAD_STAGED), and a source
whose upload the pass recorded on the bake's list already counts as
brought up to date (it was counted as failed or uploaded twice).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 17:08:48 +05:30
readmet3xt-labandClaude Opus 5.5 dfb76df595 Merge agent/textures: bake sources, exact refreshes without waiting, target reserve
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 16:51:20 +05:30
readmet3xt-labandClaude Opus 5.5 002cf4aa97 VICTORY_HELPER_PRIORITY: a priority for the threads a frame waits for
A frame timeline of the first gameplay area had our listing, records and
landing threads woken and not running yet for 4-11 ms of the chain the
present came out of. The switch sets the priority of every thread that
asks for the fast cores. Not on by default: four bench runs (helper
builds running beside them) were within the noise.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 16:51:16 +05:30
readmet3xt-labandClaude Opus 5.5 2de963dd18 Texture queue: order the due slots outside its lock
The pass over textures picked by index took the due slots and the census
under the queue's lock, sorting some 40,000 slots there: 1-5 ms a pass.
Every descriptor copy of the title's recording threads notes its slot in
the same queue (`queue_texture`, under the slot's own lock), and a frame
timeline of the first gameplay area showed them, and the heap-view
threads behind them, waiting that long. One look at the slots under the
lock now gathers the due ones and the census; the order is made after.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 16:51:16 +05:30
readmet3xt-labandClaude Opus 5.5 441446d47f Card copies: take the touched ones from a list, not by walking all
`card_dirty` ran once per submission (about 28 a frame) over every copy
in the card's memory (some 3,900 in the first gameplay area) to find the
few dozen whose CPU side changed: 2.5 % of the submitting thread in a
gameplay profile. A copy now goes on a list when its `touched` flag is
set, and the walk takes that list; the full list is pruned of copies let
go whenever it doubles.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 16:51:15 +05:30
readmet3xt-labandClaude Opus 5.5 21b040da07 Give up the render-target reserve once targets settle; log the room test
The texture queue makes no new host copies while in use + kept for
buffer copies + kept for render targets reaches 90 % of the card's
budget. The target reserve (VICTORY_CARD_ROOM_FOR_TARGETS_MB, 3,072 MB
less the targets made) never expired: at 1440p targets level off at
2.1-2.9 GB, so 160-990 MB stayed kept for targets that never came while
thousands of textures waited (diag run 16:28, 10:59:54: 8,722 MB in use
+ 836 kept for targets against a line of 9,527 MB: no room). Now once
targets hold half the reserve or more and have not grown by 64 MiB for
VICTORY_CARD_ROOM_FOR_TARGETS_SETTLE_MS (20,000; 0: kept, as before),
nothing is kept; growth of 64 MiB brings it back.

Release builds logged no term of the room test after the world loaded.
The 5-second texture line now gives them (in use, free texture blocks,
kept for buffer copies and for targets, the line, room or not), and where
the pass's time goes (looks again at uploaded slots, mapped-memory
queries, host-copy digests, making copies and staging), since the pass
hits VICTORY_TEXTURE_STAGE_MS every frame for about 20 textures.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 16:47:19 +05:30
readmet3xt-labandClaude Opus 5.5 3cb7b8f1d0 Exact texture refreshes read through the kernel before waiting
The uploads before a bake must read title memory as it is (`exact`), so
while the runtime remapped title memory they waited for it to finish,
even with VICTORY_TEXTURE_NO_WAIT=1: 808 of 866 ms of texture refreshes
a frame in a cutscene second (diag run 2026-11-26 15:58). Now such a
refresh reads the texture whole through the kernel first: that read
needs no lock, gets every byte as title memory holds it at that moment,
and fails where a page is away; only then does it wait, as before. The
frame line counts both. VICTORY_EXACT_NO_WAIT=0: always waits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 16:44:17 +05:30
readmet3xt-labandClaude Opus 5.5 b3d49db34f Bring a decoration bake's own sources up to date before it runs
The title bakes characters' skin and decorations once into textures of
its own (PS_BakeDecorations_*, PS_DecorationBlend_*); what a bake reads
wrong stays for good: coloured specks over a character's skin, already
in the G-buffer. Their native code picks the skin texture at byte 0x20
of the constants at table 1 and each decoration's textures from its
304-byte record of the structured buffer at table 1, records [0x78, 0x7c)
of the constants. The pass before a bake serves due slots newest write
first within a budget, refuses new host copies while the card has no
room (holding them back for about four seconds), and does not look at a
slot served before unless something told of a change, so a source could
still show a stand-in (another texture of the same kind) or old bytes.

Now every slot the bake's constants and records name is checked right
before the bake: a slot not made from its present view, a texture with
no host copy, or a host copy not filled from the bytes title memory holds
now is uploaded on the bake's own synchronous list, whatever the card's
room and the pass's budget, and published with the others. A log line per
bake that found such a source (and totals at bakes 1, 2, 4...) says how
many and why. VICTORY_BAKE_SOURCES=0: as before.

Also a diagnostic: a texture the title places inside (not at the start
of) the memory of a texture the host writes is said once per kind of
pair; such a view is filled from title memory the host never writes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 16:44:17 +05:30
readmet3xt-labandClaude Opus 5.5 9a791323ba 1440p output for the Series X retail image (from DexNom's fork)
VICTORY_NATIVE_1440P=1 (scene 2560x1440) or VICTORY_RENDER_1080P=1
(scene 1920x1080 scaled up by the title) patch the retail image's SDR
display mode, scanout reservation, temporal scene scale and Settings
viewport load before it is mapped, each checked against the stock
bytes; the patched image is cached apart from the stock one. The
frontend's legacy 4K projection gets its viewport on the 1440p target.
Ported from DexNom/VIctory (GPL-3.0-or-later), native 1440p part only.

Series X on an RTX 4070 SUPER, the opening's cutscene: median frame
77 -> 67 ms, 95th percentile 506 -> 401 ms (bench x-nowait vs
x1440-vol, with the volumetric light also on).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 15:46:08 +05:30
readmet3xt-labandClaude Opus 5.5 eeb17cca70 Volumetric light on 32-lane hosts: widen its two tiled programs
CS_TransmissionVolumetrics_Tiled and _Tiled_LocalLights (GTA VI 1.0.2.1)
are wave64 programs in groups of 64 with an LDS read and write in one
lane-branch region: no form but the widened one translates them for a
32-lane host, so on NVIDIA their dispatches were dropped and there was
no volumetric light or fog. They join the two kernels the widened form
is already chosen for by digest. On an RTX 4070 SUPER: the pack's
untranslatable wave64 programs 26 -> 24, the opening and its first
gameplay area run with the volumetric light and no device loss.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 15:46:08 +05:30
readmet3xt-labandClaude Opus 5.5 cb191f38e4 Log views in another format than their typed host texture
Each pair (kind of view, texture format, view format) is said once, with
the host's casting support: shader and unordered access views that
`fits` gives the texture's own format, and render target views made in
another format than their typed host copy. On an RTX 4070 SUPER both
CastingFullyTypedFormatSupported and RelaxedFormatCastingSupported hold,
and the opening of GTA VI makes one such pair (a UNORM render target
view of an sRGB texture): not the cause of its posterised shading.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 15:37:04 +05:30
readmet3xt-labandClaude Fable 5.2 22035389e6 Card copies of title buffers and windows sized from the VRAM budget
On cards with a budget of 12 GiB or less the copies of title buffers in
the card's memory were capped at 512 MB, and windows outside buffers had
no card room unless asked for. On an RTX 4070 SUPER (budget 11,229 MB)
the rest, 5.7 GB, was read by shaders over the bus: the opening's six
heaviest compute passes took 20-42 ms each and gameplay ran at 3 fps.
The cap is now 18% of the budget (512-2048 MB) and windows get 9% of it
(at most 1024 MB) from 8 GiB budgets on: those passes take 0.2-0.4 ms
and the release build runs gameplay at 21-25 fps.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-26 14:57:18 +05:30
readmet3xt-labandClaude Fable 5.2 2f0fbe147a Frame interval and refresh overrides, live key input for test drives
VICTORY_FRAME_INTERVAL_US paces frames at another interval than the
title asks (it asks 33.333 ms); VICTORY_DISPLAY_REFRESH adds a refresh
rate above 60 Hz to the display mode list. VICTORY_KEYS_FILE lets a
driver script press the stand-in pad's buttons while the title runs.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-26 14:57:18 +05:30
codec_d 545f89019e Publish the pareto-residency Windows build and portable launcher 2026-11-25 22:33:14 -08:00
codec_d efeef1d65b Back off refused GPU pool growth and defer uploads under low commit 2026-11-25 16:07:37 -08:00
codec_d 933b382635 Scope bindless refreshes to their heap and bound speculative staging 2026-11-25 15:50:47 -08:00
codec_d 3bcc96f9bb Port NVIDIA Wave32 lowering, smooth movie-plane uploads, XMA audio fixes, and 32GB RAM residency budgets 2026-11-25 15:31:19 -08:00
codec_d 45e90f4de8 Fix Series S two-plane black screen by reading RetailPlane at 72-byte stride 2026-11-25 14:55:26 -08:00
codec_d f5847e6248 Merge VIctory-7900XTX (0a43566) with RTX 5090 fidelity & 32 GB RAM optimizations: two-plane compose, fallback heaps, TablePlan, residency guard, 256 MiB DirectStorage, and WaitOnAddress fence wakes 2026-11-25 14:43:52 -08:00
localandClaude Opus 5.5 aebe5a0622 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 1028eef2c8 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 7e945ed582 Merge commit '449830f6' into local/next 2026-11-25 15:57:35 -06:00
local 5aba66bced Merge branch 'day/shaders' into local/next 2026-11-25 15:57:28 -06:00
localandClaude Opus 5.5 ee481c02fb 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 3931fbbbad 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 49f9aa034d 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 5e2394c2f4 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 a869d90e3a 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 14692d11ff 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 c8ede50886 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 2547124475 Merge branch 'day/faults' into local/next 2026-11-25 15:35:09 -06:00
localandClaude Opus 5.5 e3fa9c60c0 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 52ee4a18a1 Merge local/next into day/shaders
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:33:43 -06:00
local bedc855635 wip wide 2026-11-25 15:33:42 -06:00
localandClaude Opus 5.5 af3c946271 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 df787d4d3d 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