Without rays every glossy texel holds the sky of its missed ray: indoors, eyes glowed white and wooden floors had an
oily white sheen with dark streaks (Jason's house). The guard against it (ambient.rs, LEONIDA_REFLECT_MOST) never ran
on this renderer, whatever it was set to: no line of it in any log. The title dispatches CS_UpdateHistory indirectly,
and the guard was hooked on direct dispatches only. It now follows indirect dispatches too (that role alone; the
other light passes keep to their direct dispatches), and logs once which way the program came.
Measured in the game, Series X 1440p, waterside save, the guard at 0.5 on and off by turns of 3 s in one run
(LEONIDA_AB, runs rf2-rab1 and rf2-rab2): inside the house the floor is wood and the eyes plain with it, sheen and glow
without; outdoors on the balcony water and sky look the same either way. play-nvidia.ps1 sets 0.5 (maren-halv's value,
as the A/B switch already used). The READMEs say so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wrap_extension_lookup (#2533) called WSAGetLastError directly. gta6rt does not link ws2_32 (only
ws2_offline_test does), so the MSVC link of gta6rt.exe failed with LNK2019 __imp_WSAGetLastError. The shim
reaches the host's Winsock through host_proc everywhere else; wsa_last_error does the same, mirroring
set_wsa_error, with GetLastError as the fallback. gta6rt.exe imports the same DLLs as before #2533, no WS2_32.
Co-authored-by: Tyrannys <80750971+Tyrannys@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The README described the recompiled runtime first, with a status table of what it cannot do, and its How to build
told players to make a 400 GB shader and asset build that the playable runtime does not use. Now: what the project
is, where it stands (the measurements of 2026-11-28), what playing it needs and how to start it (the launcher or
scripts/play-d3d12.ps1, the NVIDIA and Windows 10 helpers, the switches, the keys in the game), the known problems
as they are, then the rest of the repository (the shader and asset build, the recompiled runtime) for those who
work on it, how the pieces fit, what is open, and the credits with the D3D12 runtime's lineage. The old
#project-status anchor stays for the translated quick starts that link to it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The project status put the recompiled runtime first and the playable one second, with the measurements of 2026-11-27;
it now says which runtime is playable first, with the four standing starts of 2026-11-28 (series e5a: median frame
72 to 81 ms, RTX 4060 Ti 16 GB, driver 616.64), and that the 30 rendered frames a second are not reached. The status
table's rows say which runtime they are about. d3d12/README.md gets a short section on where it stands and the row
for the dark interiors. scripts/play-d3d12.ps1 takes -NoFrameGen (to d3d12/scripts/play-nvidia.ps1), which the
README names; checked with -DryRun both ways.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since 2026-11-27 07:27 every run logged "no stand-in for the indirect light:
missing depth SRV role=Resolve" and never ran the resolve's stand-in: the view
the resolve binds where its depth was (table offset 464) is the stencil plane,
so rooms lit by bounced light (Jason's house, every interior away from its
windows and lamps) kept the title's ray-less output, walls and ceilings black.
Now, where that view is a stencil plane, the depth plane of the same texture
that the same dispatch reads elsewhere is taken (after TaynanGT's 292adb5a8 in
Fayberr/Victory-United, GPL-3.0); the log names where it was found.
LEONIDA_AMBIENT_FLOOR=<level> holds the estimate at least at a warm fill,
shaded in creases (DoubleGhosty/cool_fox 98c3333, VICTORY_AMBIENT_FLOOR,
GPL-3.0-or-later); the estimate follows only the light visible surfaces send
out directly. Unset or 0: no floor. The estimate's NaN guard comes with it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pool of the commit before (after trustno1-coder/VIctory-NVIDIA
95509b9) turned on, as its measurements say (RTX 4060 Ti 16 GB, driver
32.0.16.1664, Ryzen 5 7600X; Series X 1440p from waterside-1125, frame
generation off):
- walking and turning, A/B of 4 s phases in three runs of 46 pairs: the
frame -1.5 ms (+-1.1) by means and by medians, of 80 to 84 ms, every
run the same way; the threads that translate the title's lists spend
14.5 ms a second making buffers where they spent 238;
- standing, a level for each view: medians -0.66 (+-0.48), means -0.46
(+-0.51) of 70 ms;
- memory, a walking run each way: private 30.5 against 30.9 GB on
average, left to commit 2.0 against 1.8 GB.
A row for it in docs/findings.md. LEONIDA_AB can still name it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tools/d3d12_run_fps.py reads the frame line the D3D12 runtime logs every few
seconds (fps, ms a frame, preparing, copies, waiting on the GPU, copying back,
draws a frame) and prints numbers only: the samples in the world (the first
bucket's lower bound, 1000 draws a frame by default, leaves out menus and
loading screens), the frame rate (median, slowest tenth, fastest tenth), the
medians of where a frame goes, and the median frame rate per bucket of draws
a frame. --compare puts a second run beside the first bucket by bucket and
gives the change only where both runs have enough samples.
Why: two runs of the game never show the same scenes for the same time, so
their plain medians do not compare. Measured here on two real runs of one
save (numbers only): plain medians 15.6 and 16.2 fps, but by bucket the second
was 51%, 29%, 5% and 21% faster at 3-5k, 5-7k, 7-9k and 9k+ draws a frame: it
had spent its time in busier scenes (median 7,676 draws against 5,132).
It never prints a log line, a program name, an address or the path of a log;
the log stays on the machine that made it. Standard library only. Reads UTF-8
and UTF-16 logs (a PowerShell redirection writes UTF-16) and strips terminal
colour codes; a truncated last line is skipped. The pattern takes only what
the runtime's format string writes (bounded lengths, nothing in front of the
first number), so no other text in a log reads as a frame line.
Test: python -I tests/test_d3d12_run_fps.py (16 tests on synthetic lines in
the shape of the runtime's format string; no game files, no GPU). On main it
fails at import: the tool does not exist there.
Checked: python -I tests/test_d3d12_run_fps.py; python -I
tests/test_text_write_line_endings.py; python -I scripts/check_no_game_data.py
on the three files; eight deliberate breakages of the tool each fail a test.
A second, fresh session reviewed the first version; its findings are fixed.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
No PC GPU renders to R9G9B9E5; a 16-bit float RGBA stood in, twice the bytes of
the console's texel for every pass that writes or reads such a target.
R11G11B10_FLOAT is unsigned and without alpha as R9G9B9E5 is, with 6/6/5 bits
of mantissa against 9; taken only where the host renders to it and writes it as
unordered access. Every place that picks a format for these targets goes
through target_format, so the stand-in changes in one place.
From VIctoryUnified (Keel62155, GPL-3.0; VICTORY_E5_TARGETS, after the "willy"
cool_fox build and Neptune-VE), whose notes measure an RTX 4060 8 GB at one
place: 60.2 -> 51.2 ms a frame, no banding. Measured here in the next commit.
Test: resource::e5_tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After trustno1-coder/VIctory-NVIDIA 95509b9 (GPL-3.0), which cut upload
and shared buffers of up to 4 MiB from pooled 64 MiB heaps. Each such
buffer was a committed resource of its own: an allocation, MakeResident
and Map, and for a shared one a wait on a queue of ours until the card
has the new memory, on the threads that translate the title's lists
(1.6 ms an upload buffer, 2.9 ms a shared one while walking).
Now one of up to 4 MiB (all but 0.3 a second of 110 while walking) is a placed
resource in a 64 MiB heap of its kind (crate::pool::small, cut by
crate::pool's Pool): an upload heap, or the custom write-back L0 heap of
Host::shared_buffer, each made resident and waited for once. A buffer is
one placement and one Map, in the state its own would have started in,
zeroed by the CPU when its piece was used before. Its piece comes back
when the device destroys the buffer (an object of ours it holds, as for
textures in blocks), through crate::host::retire: only once every
submission begun or queued by then has run, and bury_lag after it, and
from inside the device's release only into a queue of its own that the
pool takes at its next use. Empty blocks kept: 2 of each kind, 1 under
memory pressure, 0 and no new block when commit is critical (then a
buffer is its own, as before). Off by default; LEONIDA_AB can name it.
The memory line says the blocks and what buffers hold of them; the
census counts the buffers by the line that asked, the blocks apart.
Measured (RTX 4060 Ti 16 GB, driver 32.0.16.1664, Ryzen 5 7600X, 32 GB;
Series X 1440p from waterside-1125, frame generation off):
- buffers made, walking a whole run each way: with it 59.3 upload
buffers a second in 10.0 ms (58.8 from blocks, 0.11 ms each) and 46.4
shared in 4.5 ms (0.09 ms each); without it 63.1 in 101.7 ms and 46.7
in 136.0 ms: 238 -> 14.5 ms a second of the list threads' time;
- the frame, A/B of 4 s phases walking and turning, three runs of 46
pairs: means -0.77 (+-2.24), -1.75 (+-1.63), -1.68 (+-2.01) ms, together
-1.5 (+-1.1); medians -0.85 (+-2.06), -1.47 (+-1.67), -2.10 (+-1.85),
together -1.5 (+-1.1); p90s together -1.1 (+-1.9); of 80 to 84 ms;
- standing, A/B of 4 s phases with a level for each view (74 phases):
medians -0.66 (+-0.48), means -0.46 (+-0.51) of 70 ms; pairs +0.02
(+-0.77);
- memory, a whole walking run each way (memory lines every 5 s): private
30,506 against 30,866 MB on average (31,399 and 32,158 at the end),
left to commit 1,963 against 1,792 MB, the PC's memory shared with the
card 4,575 against 4,657 MB in use; at the end 448 MB of upload blocks
(330 held by buffers) and 1,024 MB of shared ones (907 held).
No device removed and no new kind of warning in seven runs.
Tests: small_buffers_take_whole_64_kib_up_to_the_bound,
small_pieces_come_back_through_their_queue_and_are_used_again,
small_buffers_are_placed_in_blocks_and_used_again_on_the_card (on the
card: zeros, a copy from a placed upload buffer into a placed shared one
past another buffer of its block, the same pieces placed again).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>