Commit Graph
3 Commits
Author SHA1 Message Date
trustno1-coderandClaude Opus 5.5 64d4931b3d Water light on, PS4 pads, F1 menu saves at once, long-session memory, memory switches
Rendering and memory (GPL-3.0 code ported in; credits in the source):
- Water: 64-lane compute programs on 32-lane waves keep each wave
  together through loops and set up shared memory from the first
  thread, so the water's tiled light no longer leaves dark blocks. It
  runs by default now (VICTORY_WATER_LIGHT=0 leaves it out; an empty
  value, an earlier version's saved OFF, runs it). Also cloud tiles and
  the screen probes' ray activation.
- Placed views: their padding cleared as before; folding a buffer
  view's first element into its address is VICTORY_PLACED_FOLD=1, off:
  with it on, clothing and caps swapped to other variants for single
  frames in the boat cutscene.
- Texture sweep: textures whose copy was let go leave the looks until
  used again. Static samplers made first, in one order. Small buffers
  made ahead of the first 3D frame.
- play mode: VICTORY_TEXSPK_PASS_MS=8, VICTORY_PASSES_HOT=1,
  VICTORY_HELPER_PRIORITY=1.
- Memory switches, all off: VICTORY_SLOT_EVICT, VICTORY_ALLOCATOR_TRIM,
  VICTORY_BUDGET_PACK (and VICTORY_LIST_POOL_IDLE_S).

Input: DualShock 4 (0x05C4, 0x09CC, 0x0BA0 adapter) read over HID, USB
and Bluetooth, beside the DualSense; PlayStation pads rumble, and stop
when the game ends (issue #352).

F1 menu: every change is saved at once; it saves to
victory-settings.txt in VICTORY_HOME or %LOCALAPPDATA%\victory however
the game was started (no more "NO SETTINGS FILE").

Warm-up start: its 30 s count from the first frame of 100 draws or
more, not from the start: waiting at the title screen restarted it too
early and the next run still sat at 14 fps.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-27 15:03:27 -08:00
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 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