From a PNG or PPM frame on the user's disk, numbers only: luma statistics,
the dark share of a 4x4 grid of regions, a lattice detector (tile, period,
phase, diagonal, corner), a block-grid detector (block size and share of
blocks cut off), a per-8x8 diff against a second frame and a defect class.
LATTICE, BLACK-NEAR, BLOCKS, FLASH and OK are measured; CHAR-BLACK,
CHAR-MISSING, 2D-MISSING, STRAY-GEO and SMEAR need scene knowledge and are
only given by a human (--class, with --region for numbers). Standard
library: PNG read with zlib and struct (8-bit grey/RGB/RGBA, not
interlaced, five filters), binary PPM/PGM; the rest is refused. No pixels
or paths in the output; no file written.
docs/agent_collaboration.md gets the PICTURE block next to RUN, with an
example from a synthetic frame; the docs index line names it.
Tests: tests/test_picture_metrics.py draws synthetic frames and checks the
drawn parameters come back (20 tests).
AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the console a texture access loads the T# and samples. Translated shaders hashed the eight T# words and probed up
to eight slots of the descriptor table for every access: 62 lookups and 19,714 RADV instructions in the tiled-lighting
pixel shader (3,080 in the native program).
The layer now writes the index into dword 6 of every T# in the heaps shaders read, as TAG 0xA [31:28] | storage kind
[27:23] | sampled kind [22:16] | index [15:0] (gfx10_descriptors.h, tsharp_index_word): the console resource heap
copies (fix_console_slot, again whenever the texture at the T#'s address comes, goes or is replaced) and its own
shader-visible heaps (write_image_descriptor, refreshed for bound tables by scan_title_table). The title's bytes and
the T#'s table key keep the title's dword 6.
The translator (tools/descriptor_sources.py, Gen.tsharp_index_sgpr) follows the SGPR dataflow and takes the index from
dword 6, with no lookup, for every T# whose dword 6 it traces to a heap slot (an s_load from a 32-bit descriptor-table
or heap pointer in user data); index 0 unless the word has the tag and dword 3 names an image. Other T#s are looked up
and prefer a tagged word. S#s keep the lookup (sampler heaps are read in place; 40% are literals).
Over the 1.0.2.1 corpus (tools/descriptor_source_census.py) 438,353 of 439,415 T# operands (99.76%) take the word and
17,432 of 17,540 modules keep no T# lookup; no scalar instruction reads dword 5-7 of a heap T#. RADV on an RX 7900 XTX,
lighting shader: instructions 19,714 -> 17,568, latency 73,690 -> 32,458, inverse throughput 16,453 -> 7,468.
Modules record "tsharp_index": "dword6"; the runtime writes the word when the library's modules read it, so packs
translated before keep working as they did. LEONIDA_CONSOLE_HEAP_GPU's pass copies T#s as written, so such a library's
console heaps are fixed on the CPU.
Tests: tests/semantic/test_tsharp_index_word.py (interpreter and dataflow), gfx10_descriptors_test, shader_library_test;
ps_texture_sample and ps_table_fetch now load their T# through a table pointer and vk_texture_test writes the word
(integrated GPU, RADV).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With LEONIDA_COMPILE_THREADS=1 (the layout of main: one general worker and
the graphics-only one) next_locked did not look at the owner, so two variants
of one graphics PSO could build at once, one on each worker. A last Release
meanwhile hands the PSO's deletion to the running build it finds first
(after_running), and that worker deleted the PSO while the other was still
in build() on it. The single-worker selection now skips a job whose PSO has
a build running, as the pool already did.
New test in d3d12_compile_pool_test: two graphics variants of one PSO with
one worker plus the graphics worker; the second must not start while the
first runs, another PSO's build still uses the free worker, and a last
Release runs after the first build with the second dropped. It fails
without the fix.
Docs: the heavy count also bounds LEONIDA_SERIAL_BIG_COMPILES=0 on the
workers; only compute creates pass the compile gate.
Found by qhukz13 in review of #2233.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ms_w64x_wave_loops: each wave loops while a wave-wide count is not 0, 5 iterations in wave 0 and 9 in
wave 1, so under --wave64-emulate the waves reach different numbers of workgroup barriers. Written after
stalls were reported with the serial form on an RTX 2070 SUPER (issue 1608). On an RTX 4080 (NVIDIA
621.24) it draws 4096/4096 pixels exact side by side and in series; that does not explain the stalls.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
#1920 stops a new pool extent at the next mapping in either view and, in
d78b0e90a, refuses a mapping shorter than the request: such a request
gets a zero-size view (loads 0, stores dropped). That keeps the views from
reaching past their copies, which the first version of this fix did not,
but a refusal is a regression for requests main served: a V# or a root
view (64 KiB, kRootViewBytes) that crosses from one extent into the next,
or starts inside one and ends past it. Stream-pool extents sit next to
each other, so these are common. Retail runs (local, RTX 5080): our
first version, which gave such requests a short mapping, crashed in the
title in one run (m176); with one mapping over the request instead, runs
m177-m179 ran without one. The crash's cause was not established.
At #1920's two refusals of a request longer than what would serve it
(the extent clipped by clip_title_pool_extent, or the mapping holding its
first byte), resolve_pool_memory now tries, after #1920's reuse,
cover_pool_request: one mapping over the request and every window it
reaches, each whole, in both views (title_pool_cover). It is entered with
the new TitleVaAliases::replace_twin, since add_twin refuses an overlap;
the windows it replaces are retired at the next submission like any
window nothing answers from (previous commit), and their bytes are not
charged to the budget twice meanwhile. With a range in the way that is not
a window (a slot-133 buffer, a geometry copy), or pages that are not
readable, #1920's refusal stands. #1920's own refusal when the window
cannot be made or entered is unchanged.
TitleVaAliases::resolve and resolve_title_memory already ask again for a
range that ends before the view (#1920); vsharp_address did not, so a
V# whose base lies in a short range was refused without asking: it now
asks resolve_title_memory first.
Tests: #1920's pass unchanged (their seam cases cross a range that is
not a window, which still gets a zero-size view). title_window_plan: the
cover takes a window whole in both views, refuses a buffer in the way and
past the cap, and replace_twin enters it where add_twin refuses.
d3d12_title_window_orphans: a 64 KiB CBV across two extents' seam gets
one 448 KiB mapping, a valid V# and the right words on the GPU, and the two
extents are retired at the next submission; without the cover its V# base
is 0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gt9hwNPurxyJ9LAfUbNiYr
On top of #1920, which keeps stream-pool extents inside the free span in
both views and makes TitleVaAliases::add_twin refuse an overlap. Other
ranges still replace a window's ranges whole by design: a slot-133 buffer
the title places over the window's pages, a BVH input's exact copy, an
upload alias. The window was then left in title_windows and pool_spans,
refreshed at every submission and charged to LEONIDA_TITLE_WINDOWS_MB, with
nothing left to reach it. A retail run showed most of the windows' memory
growth to be such orphans; the title released none of the windows' pages,
so retiring a window with its pages never fired.
A window no range answers from any more is retired after the next
submission's refresh: the alias table's listener records removed ranges'
copies, and the touched windows TitleVaAliases::answers_into finds
unreached leave pool_spans and the budget at once.
Its memory is freed only once nothing can still reach it. A command list
resolves its root views when they are recorded (GraphicsCommandList::
address), so a list recorded before the retirement and executed, or
executed again, after it still names the window; so does the copy of the
lists a held batch (a Wait before its Signal) or the async worker keeps.
Each backend CommandList, and each copy, now carries the epoch its
recording began in (src/command_list_epochs.h); a retired window takes its
ticket only once no list older than its retirement is alive and the
replays in progress then have recorded their submissions, and is freed
when that ticket has completed.
Until then the copy stays a target of its pages' tracker, still
refreshed, and what the GPU wrote in it goes back to the title's pages:
with its submissions' write-back, and once more when it is freed. The
second is needed because a list's ranges are noted when it is recorded,
so a held batch's can go back, tagged with a later submission's ticket,
before the batch has run. A retired copy goes back only where no live copy
changed the bytes, and every copy is compared, 256 bytes at a time, with
the title's bytes as they were before any copy went back: a copy that
still held them used to overwrite another's result when it came later in
the tracker.
Tests: d3d12_title_window_orphans. A window a slot-133 buffer replaced is
retired, its bytes returned and its memory freed. A writing batch held on
a fence on another queue, recorded before the next submission's refresh
retires its window, keeps the window alive past a completed submission,
and once it has run and its list is reset, its 64 words reach the title's
pages and the window is freed. Without the retirement the window stays
(3 -> 3 windows); without the list epochs it is freed while the held batch
still names it; without the last copy back 0 of 64 words arrive.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gt9hwNPurxyJ9LAfUbNiYr
With LEONIDA_ASYNC_PIPELINES=1 every pipeline not built yet has its draws
and dispatches skipped, the small lighting and post programs too, so the
world phase stays black while anything compiles; with it off a submission
waits minutes for each large ray-tracing compute program.
LEONIDA_ASYNC_MIN_BYTES=<n> (with async on): a pipeline under n bytes of
SPIR-V (compute: its module; graphics: all its stages) takes the path of
async off: no record-time request, PipelineCompiles builds it at prepare,
and a compile-helper build waits for its file. One of n bytes or more stays
asynchronous. Decided once per pipeline at create (async_build). Unset, 0
or not a number: every pipeline asynchronous, as before.
Tests: async_pipeline_size_test (parsing and decision);
d3d12_m4_compute --async-small-waits (both pipelines under the threshold,
compile worker held: no job reaches it and every word matches).
Docs: runtime/README.md row, docs/d3d12_vulkan.md, docs/running.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A buffer_load_format_* with a run-time FORMAT called the four per-component
decode functions %fmt_dec_c0..3 at every load, whatever it wrote. One
function %fmt_dec(format, element, component) replaces them, and a load
calls it once per register it writes, with the component that register's
DST_SEL picks: _x makes one call, not four. The function computes the four
components' channel width and offset as before and the parameter selects
one, so the values are the same.
fconst (and tof of a uint constant) emitted a new OpBitcast of the uint
constant at every use; they now give one cached OpConstant %float per bit
pattern, written so spirv-as reads back the same 32 bits (float_literal:
shortest decimal for a finite value, the SPIRV-Tools hex-float spelling for
an infinity or a NaN). The test interpreters read that spelling.
Tests: test_buffer_format_decode_one.py with hand-written fixtures
(calls per load, values for 16 codes, swizzles, out of bounds, _x/_xy
against _xyzw for all 128 codes) and test_fconst_constant.py (exact bits of
+-0, denormals, infinities and NaN payloads).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pointers into code must be .pdata function starts or follow int3 padding. In 32-bit mode,
runs of non-zero values with the same low nibble are checked against the function starts
to find the base they are offsets from, and the globals that hold that base.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A zlib DirectStorage request on data.rpf at the movie's offset (0x117d7000, 28,148 bytes inflated) is answered with
ps_prompt_glyphs.gfx (built by tools/ps_prompt_glyphs.py) while a PlayStation pad is in use or LEONIDA_PROMPTS=playstation. The archive and its
table of contents are not touched. Unit-tested on the matching and the file checks; not run in the title.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sony pads (USB and Bluetooth) are read from the public HID report layouts without SDL, rumble goes out as output reports, and a pad
that XInput already shows through a remapper is not read twice. gameinput::active_family() says Xbox, PlayStation or keyboard and
mouse (LEONIDA_PROMPTS forces it). Unit-tested on hand-made report bytes; not run against a real pad.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Finding by z3r0rc in #1608: the launcher set XDG_CACHE_HOME to a new folder in each run folder, so NVIDIA's GLCache
(and Mesa's shader cache) started empty on every launch. The caller's XDG_CACHE_HOME is now used when it is set,
--cache DIR names one, and --cache fresh keeps the old cold-cache behaviour. session.txt says which.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JPqXc6svM4pbBagTsVEYA3
Walks committed memory (own-process ReadProcessMemory, nothing written) for runs of
pointers/RVAs into the executable section, lists the candidates with distinct
handler counts, overlaps and key-slot statistics, and the union of handlers.
Output goes to %TEMP%\leonida-natives, not the repository.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What: the console title turns its camera with the right stick only, so the mouse's
motion (cursor re-centred each 8 ms sample, kept in the window with ClipCursor) becomes
a right-stick push merged into the pad the title plays with: speed over a 40 ms window,
full push at 1600 px/s (LEONIDA_MOUSE_SENSITIVITY scales it), lifted past a 0.24 dead
zone with a 0.6 power curve (LEONIDA_MOUSE_DEADZONE, LEONIDA_MOUSE_CURVE),
LEONIDA_MOUSE_INVERT_Y=1. The cursor is hidden over the window while held (WM_SETCURSOR
in both window procedures, leonida_gpu::MOUSE_CAPTURED). The click that takes the mouse
is not a shot; the mouse buttons are the triggers only while held. Esc, the F1 or F4
menu, or another window in front gives the mouse back. LEONIDA_MOUSE_LOOK=0 restores
the old behaviour. Also: held_from_file has a stand-in without diagnostics, so a
non-diagnostics build compiles again.
Why: the user saw the cursor stay on screen and the mouse not turn the camera.
How checked: cargo test -p leonida-hle --lib gameinput (13 pass, one new); not yet
tried in the title. AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tools/leonida_saves.py (standard library, no Tkinter) reads the D3D12 runtime's save layout from xgamesave.rs:
<data>/data/7952987A/saves/<user>/<config>/<Name>~<FNV-1a 64>/v<N>/{0,1,manifest}. The launcher's Saves page lists
containers and blobs (size, time, newest readable version) and offers ZIP backups in <data>/save-backups, restore
(after an automatic backup of the current state), duplicate under a new name (new folder hash and manifest), delete
(moved to save-backups/deleted, not erased), single-blob export and import (backup first, written as a new v<N+1>
the runtime's way), and a read-only hex and strings viewer. All of it is refused while the game runs.
No value editing: the story saves are packed (entropy 8.00, compressed or encrypted; not decoded), the plain ones
carry an ASAV checksum of unknown algorithm. The page and docs/launcher.md say so.
Checked: tests/test_leonida_saves.py (15 tests, fake trees), tests/test_leonida_launcher.py, compileall, the window
built and every page shown once by a script; layout and hashes confirmed read-only against a real data folder (all
four containers' folder names match the FNV rule). Buttons not clicked. AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What: a test copies mods/example_lua enabled into a temporary folder and drives it
on the fake host: its page (toggle, number, two actions), the overlay line, F9
turning it off, the menu callbacks, the menu_open event. d3d12/README.md gets the
row for the Lua mods that the last commit left out.
How checked: cargo test -p leonida-lua --lib (35 passed); cargo test -p
leonida-menu --lib (47 passed). AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What: mods/example_lua (mod.json disabled by default, main.lua: a frame-rate and
time line in the lower left, a page in the F4 menu with a toggle, a number and two
actions, an F9 key handler); docs/lua-modding.md (the API reference, the sandbox
rules, what is not available and why, what was not tried), pointers in
docs/README.md, docs/mod-menu.md, docs/modding.md and a row in d3d12/README.md.
tools/leonida_mods.py reads "script": it must be a .lua path inside the folder, the
list shows `Lua main.lua`, the JSON report has "script", and a Lua mod no longer
warns that it has no archetype_swaps.
Why: a Lua mod is mods\<name>\mod.json plus a script, so the manager that lists the
asset mods should list these too, and a mod author needs the reference.
How checked: python -I tests/test_leonida_mods.py (13 tests, 3 new, pass; the one
failure, test_run_print_builds_gta6rt_command, fails the same on the base: no gta6rt
build here). The example's script was not run in the title. AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Launcher.bat (Windows) or python3 tools/leonida_launcher.py opens a dark launcher with a navigation column, a hero area
with a PLAY button, a status line and pages: Play (runs scripts/play-d3d12.ps1 or scripts/play-linux.sh, output in a
log box, state line, Stop with confirmation ending the process tree, never two runs at once), Settings (game folder
with a check for game_scarlett_master.exe, data folder, the switches read from play-d3d12.ps1), Mods (mods/*/mod.json
enabled flags written via leonida_mods), Tools (DLSS fetch after a confirmation, runtime rebuild, logs and screenshots
folders) and About. Settings live in %APPDATA%\Leonida\launcher.json (~/.config/leonida on Linux). Its own design and
wording, no game assets; the hero picture is the newest screenshot found at run time, else a gradient. The pure parts
have no Tkinter and are tested in tests/test_leonida_launcher.py.
Checked: python -I tests/test_leonida_launcher.py (13 tests), python -m compileall -q tools,
scripts/check_no_game_data.py. The window itself was not opened or clicked through. AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The keyboard-and-mouse stand-in pad had its triggers on Z and V only. Now the right mouse button pulls the left
trigger and the left button the right trigger, fully while held, in addition to Z and V. They count only while a window
of the runtime has focus (as the keys do), are not read while the F4 trainer menu is open, and the F1 menu already
returns no keys. The buttons travel as pseudo keys (virtual keys 1 and 2) into the pad and are removed before the
keyboard device reports its keys, so the title never sees them as keyboard input.
Checked: cargo test -p leonida-hle --features diagnostics --lib gameinput (12 passed, including the new
mouse_buttons_pull_the_triggers_and_stay_off_the_keyboard), cargo check --profile diag -p leonida --features
diagnostics. Not run in the game. docs/gameinput.md gains the D3D12 runtime's control table. AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The ANCHOR status rule rejects every mode-2 reading of every corpus chunk
whose lane-15 signature ranks at 152 (full 64-partition scan over the
retail ttdb_* pools), so its mode is 3, not the ordering's mode-2 guess.
Partition 21 is a colour-coherence top-1 among the status-clean mode-3
readings and stays a guess: 152 remains in BC7_CONFIG_INFERRED, so strict
decoding still refuses chunks that reference it. The override duplicates
rank 119's (3, 21) and drops (2, 38): if 119 is ever confirmed at (3, 21)
by its own signature, this entry or the mode-2 head order is wrong.
Measured effect in a retail story-load run: with a fitted profile, the
last standing dstorage_failure 0x89240030 refusal (a BC6H entry that the
profile gap alone explained) cleared once the sidecar carried corrected
rank configs; BC7 chunks using rank 152 stopped refusing as well.
Tests: the config bijection assertion becomes a structure assertion plus
test_bc7_rank152_override_deviation, pinning the duplicate, the dropped
entry, and that 152 stays inferred. docs/textures.md wording updated.
docs/mod-menu.md, from ce5b53e8e (leonida/mod-menu), made true for the main
line after the renderer merge (00698e1e8): the three overlays and their keys
(F1 settings, F3 panel, F4 trainer) and how they share the keyboard and the
corner; host/trainer.rs in place of host/menu.rs; where the menu is drawn
at present and what that means with frame generation; the one atomic load a
present pays while it is closed; LEONIDA_MENU_OPEN=1 for a test without the
keyboard; the items that now drive the renderer's own settings (DLSS
sharpness in place of LEONIDA_SHARPEN, upstream's LEONIDA_FPS_CAP in place
of a second cap) and the ones that use capture.rs (screenshots, the rec
file); the tests as they are now. It says at the top that the menu has not
been tried in the running title yet. The licence findings and the search
for the script natives (counts only, no game bytes) are as they were.
d3d12/README.md: a row for the menu. docs/README.md: its row in the index.
Checked: python -I tests/test_docs_links.py, test_docs_table_rows.py,
test_docs_encoding.py, test_docs_list_items.py, test_docs_repeated_lines.py
(OK). test_docs_cli_flags.py, test_docs_env_vars.py, test_docs_python_deps.py
and test_docs_repo_paths.py fail on the main line already, on other files;
none of their failures names this document or a variable it describes.
AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
tests/test_mesh_serial_waves.py: the module shape of a program that
qualifies (64 invocations, the pass loop, the index from the built-in,
the exchange's own place, per-pass copies of the exports, one
OpSetMeshOutputsEXT), that every initialised Function variable is set
again per pass, and that ms_wave_info_s3 (LDS), a 32-thread program,
native wave64 and --mesh-compute are unchanged by the flag.
LEONIDA_MESH_SERIAL_WAVES=1 is read by scripts/run_gpu_tests.py, like the
other translation switches, and no longer by rdna2spirv.py itself.
docs/design.md and docs/testing.md say what the flag does and how it is
tested; conftest gives ms_w64x_wave_votes its 128-vertex PSV0.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
With LEONIDA_TRACE_XGAMESAVE=1 the offline XGameSaveImpl logs one
"[rt] xgamesave:" line per XGameSave* and XGameSaveFiles* call: the call,
its handles, container and blob names, sizes and HRESULT, with the
milliseconds since the process started and the thread id. An async call
also logs when begin() schedules its job, when the work runs (and how
long it waited on the queue), when it completes and when the title
collects the result, all naming the title's XAsyncBlock. Blob contents
are never logged. Off by default: a call then pays one relaxed load.
xgameruntime_gamesave_test turns it on through a test hook, writes and
reads a blob (sync and async) and checks the lines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ShadowPages::write_back copies a window's GPU writes back to the title's pages under the tracker's
SRW lock (#2129, and the 256-byte pieces of #2404). It reopens its own guard first, but the page can
still be read-only because of another guard (the geometry watch, another view's shadow). The copy
then faults, shadow_write_fault asks every tracker over the address, and this one's reopen() took
lock_ again on the thread that already held it. SRW locks are not recursive, so the title's
submitting thread hung for good: on an RTX 4070 Laptop (NVIDIA 621.40) the main loop froze at
209-309 s with no device loss, and the thread dumps showed the submitting thread inside
write_back -> (fault) -> shadow_write_fault -> reopen, waiting on the SRW lock, in four runs.
write_back records its thread in writer_ while it holds lock_; reopen() and reopen_range() skip
taking the lock on that thread (they run under it). Other threads still wait on the lock as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review of #2412 (nicoco23, ecox982745):
- A later create leaving hid the earlier one a held probe needs: last_leave_seq_ kept one leave per
kind, so when A (there when the submission entered) and then B (entered after it) left just before
the submission came back, B replaced A and the probe was not counted. The recent leaves are now a
ring of 64, and any leave of the kind, of a create the submission entered beside, within 500 ms
before it came back counts.
- Presents and idle or semaphore waits passed the gate as probes: they can take seconds on their own
while the GPU is busy, so a slow present could mark a kind as holding, and quick ones could turn a
kind off. SubmitTurn takes `probe` (true by default); the presents, vkQueueWaitIdle,
vkDeviceWaitIdle and vkWaitSemaphores turns pass false. vkQueueSubmit and vkQueueBindSparse probe.
- A kind that holds submissions was waited for with no limit, so a false verdict brought back the
unbounded gate for the rest of the run. It is now waited for up to LEONIDA_COMPILE_GATE_HELD_WAIT_MS
(60 s; 0: no limit), after which the creates in the driver are gone past and not waited for again.
The header comment that said a false alarm "only keeps the bounded gate" is rewritten.
Tests: submit_mutex_test gains both finish orders of A and B, B alone with A still there, a 2.1 s
present that judges nothing, and a holding kind gone past at a 400 ms held limit. All pass (MSVC,
Windows 11). The docs tests pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A submission that stays 2 s or more in the driver turned its create kind's gate on (or back on). It
now counts only if it came back within 500 ms after a create of that kind, there when it entered,
left the driver: a submission held behind a create comes back when the create does. On the 4070
Laptop (621.40, 8 GB nearly full) a 36 s submission came back 18 s before the compute create beside
it; counted as held, it re-armed the gate, which then kept the next submission 78 s behind compute
creates. One that is slow with its creates still there is logged (the first 8) and judged nothing.
Tests: the held-probe tests release the create 100 ms before the submission comes back; a new one
checks that a slow submission with the create still there gives no held verdict.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Update the rpf9_carve.py slice-length note to past tense (fixed in tools/rpf9_carve.py),
remove the superseded pre-ASSET-158 24-byte header duplicate paragraph, and clean up the
truncated merge fragment above the MoVE section.
AI-assisted: Antigravity gemini-4-neon.
Drop the superseded 94.6% story000 normals row, resolve the self-contradictory 0x21..0x28
attribute sentence, update PSIN/0DRP decoder items, and list meshlet_page.py check flags.
AI-assisted: Antigravity gemini-4-neon.
Remove the truncated duplicate Opaque block contradicting rsc8_audio.md and
tools/vertex_types.py, update decoder item 7, and link story.md/world.md/psin.md.
AI-assisted: Antigravity gemini-4-neon.
Repair the broken CTyreDataSet table tail and collapse contradictory duplicated
hypothesis blocks in Timecycle, Fog Volume, and VehSpawnIntensities sections.
AI-assisted: Antigravity gemini-4-neon.