Commit Graph

18350 Commits

Author SHA1 Message Date
6d004cc68c Merge pull request #1356 from delysidemanYT1/doc-zh-quickstart-links
DOC-ZH-QUICKSTART-LINKS: update Simplified Chinese quickstart links
2026-11-29 01:45:23 +01:00
ae2be4ec3f Merge pull request #1486 from xel1uz/fix/glb-inspect-morph-weight-count
glb_inspect: count animation weights per mesh morph target
2026-11-29 01:45:05 +01:00
8a35304fb3 Merge pull request #1496 from levi2m/docs/div-fixup-row-consistency
docs: one contract for v_div_fixup in design.md, matching the gfx1036 measurement (DOC-DIV-FIXUP-ROW)
2026-11-29 01:44:41 +01:00
caafc45c0e Merge pull request #1506 from IlyassRS3/fix/world-grid-atlas-hardening
world_grid_atlas: harden geometry, alignment, linear_fit, DDS/MHIU bounds, manifests, and strict JSON (WORLD-GRID-ATLAS-VALIDATION-HARDENING)
2026-11-29 01:44:06 +01:00
173fa8284b Merge pull request #1512 from IlyassRS3/fix/skinned-glb-hardening
skinned_glb: validate GLB chunks, accessor bounds, skeleton cycles, skin streams, and indices (SKINNED-GLB-VALIDATION-HARDENING)
2026-11-29 01:43:51 +01:00
61b28f3b45 Merge pull request #1515 from IlyassRS3/fix/navmesh-links-endpoint-pairing
navmesh_links: pair cross-tile endpoint sector with polygon id and publish --out atomically (NAVMESH-LINKS-ENDPOINT-PAIRING-AND-IO)
2026-11-29 01:43:31 +01:00
e66c65b950 Merge pull request #1599 from IlyassRS3/fix/bvh-groups-guards-and-io
bvh_groups: validate scan bounds and --json upfront, use same_report_path, catch write OSError (BVH-GROUPS-GUARDS-AND-IO)
2026-11-29 01:37:39 +01:00
e6546fe78a Merge pull request #1627 from KoLolX3/fix/make-game-case-inside-guard
make_game: reject case aliases inside the game directory (MAKE-GAME-CASE-INSIDE-GUARD)
2026-11-29 01:37:18 +01:00
070799580a Merge pull request #1637 from KoLolX3/fix/verifier-case-exclude
manifest_verifier: exclude case aliases of manifest and cache (VERIFY-MANIFEST-WALK-CASE)
2026-11-29 01:37:01 +01:00
9f189d6254 docs: refresh GPU testing and Vulkan links 2026-11-28 21:35:32 -03:00
1c6b8ae473 Merge branch 'perf/small-buffer-pool' into next 2026-11-28 19:15:38 -05:00
48bae6cade Merge pull request #2525 from Tyrannys/rt-library-loader-names
library_loader: no ".dll" for an empty name; FreeLibrary drops the cached name (RT-LOADER-EMPTY-NAME-STALE-CACHE)
2026-11-29 01:15:27 +01:00
1b2021ba20 Merge pull request #1803 from ShotTechOp/fix/lane-masks-wave32-slot
lane_masks, rdna2spirv: wrap parked v_writelane/v_readlane slots mod 32 in wave32 (LANE-MASKS-WAVE32-SLOT)
2026-11-29 01:14:28 +01:00
1cb5df073b Merge pull request #1996 from ShotTechOp/fix/mask-src-m0-scc
rdna2spirv, lane_masks: extract per-lane bits for m0 and scc/src_scc in mask_src and _maskable_b32 (SHADER-MASK-SRC-M0-SCC)
2026-11-29 01:13:54 +01:00
58a216c704 Merge pull request #1943 from ShotTechOp/fix/vcc-data-mask-src
rdna2spirv: extract per-lane bits when reading plain scalar data in VCC as a lane mask (SHADER-VCC-DATA-MASK-SRC)
2026-11-29 01:13:13 +01:00
e819991805 Merge pull request #1977 from ShotTechOp/fix/wqm-data-vcc-and-dst
rdna2spirv: fix plain-data VCC source and non-mask destinations in Gen.wqm (SHADER-WQM-DATA-VCC-AND-DST)
2026-11-29 01:12:38 +01:00
e00c3b7f05 Merge pull request #1973 from ShotTechOp/fix/b64-bitops-vcc-data
rdna2spirv: read %vcc and %vcc_hi for plain 64-bit scalar data in s_bcnt/s_ff/s_flbit _b64/_i64 (SHADER-B64-BITOPS-VCC-DATA)
2026-11-29 01:12:02 +01:00
829530dbd0 Merge origin/main into next 2026-11-28 18:53:30 -05:00
ce55bf1c02 Glowing eyes and oily floors: the reflections' guard follows the indirect dispatch of CS_UpdateHistory, and the launcher holds reflections to half the room's light (LEONIDA_REFLECT_MOST=0.5)
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>
2026-11-28 18:53:28 -05:00
cc5c68b4a2 Merge pull request #1689 from IlyassRS3/fix/world-atlas-accel-bounds-and-fallback
world_atlas_accel: validate inputs, contiguous packed_cells, and native output bounds/finiteness
2026-11-29 00:50:43 +01:00
3dee9a5c2e Merge pull request #1752 from kirigayakazima/codex/batch-glb-per-texture-decode
batch_glb: allow independent texture decodes to overlap
2026-11-29 00:50:27 +01:00
ff9948f652 Merge pull request #1841 from delysidemanYT1/gpu-disasm-scratch-error
GPU-DISASM-SCRATCH-ERROR: Report GPU disassembly staging failures before translation
2026-11-29 00:50:07 +01:00
79c22b9f0a Merge pull request #1871 from kirigayakazima/fix/build-llvm-mc-safety
scripts/build_llvm_mc.ps1: validate Version, normalize -Temp, harden VS/tool fallback and literal install
2026-11-29 00:49:49 +01:00
5fe330015d Merge pull request #1946 from lgr123/wine-fixture-cleanup
Honor CTest fixture cleanup ordering in the Wine runner
2026-11-29 00:49:28 +01:00
cd36c87b17 Merge pull request #2076 from alexandersato0830/codex/semantic-runner-serial-deadline
Honor short serial semantic test deadlines (SEMANTIC-RUNNER-SERIAL-DEADLINE)
2026-11-29 00:49:07 +01:00
21ba178e97 Merge pull request #2248 from kirigayakazima/codex/dds-png-bc6h-preview
dds_png: preview signed and unsigned BC6H textures
2026-11-29 00:48:31 +01:00
ace0e9d1c8 Merge pull request #2253 from kirigayakazima/codex/batch-glb-bounded-model-queue
batch_glb: bound queued model conversions
2026-11-29 00:48:16 +01:00
046a3f3342 Merge pull request #2269 from kirigayakazima/fix/lds-fuzz-cli-safety
lds_fuzz: guard --model-only/--keep/--only flags and enforce UTF-8 subprocess I/O
2026-11-29 00:47:56 +01:00
02a69e6028 Merge pull request #2403 from bimo0o/verify-flat-files
manifest_verifier: accept a flat entry named files
2026-11-29 00:47:41 +01:00
717bd20df9 Merge pull request #2434 from z3r0rc/bcpack-bc7-rank152
BC7 rank 152: mode 3 measured by the ANCHOR status rule — pin (3, 21), partition still inferred
2026-11-29 00:47:17 +01:00
fa2fd0a99a Merge pull request #2560 from jjjj2244/jjjj2244-patch-1
pk16_diff: generate the packed high-half constant read by default
2026-11-29 00:47:00 +01:00
e1d87a4a48 Merge pull request #2597 from OreoFR/fix/ws2-offline-link
ws2_offline: gta6rt links again without ws2_32 (RT-WS2-OFFLINE-LINK)
2026-11-29 00:46:07 +01:00
09225a07d4 ws2_offline: read the Winsock error through host_proc, so gta6rt links without ws2_32
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>
2026-11-29 00:39:33 +01:00
a9e247cd69 README rewritten as the project is now: the Direct3D 12 runtime is the way to play, and it needs none of the big build
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>
2026-11-28 18:30:57 -05:00
ba8b77b390 Merge origin/main into next 2026-11-28 18:25:58 -05:00
1df2a409ab Merge pull request #2521 from Tyrannys/rt-silent-audio-volume-and-spatial
silent_audio: NaN volumes refused, master volume under the lock, Reset revokes objects (RT-SILENT-AUDIO-VOLUME-AND-SPATIAL)
2026-11-29 00:25:38 +01:00
670f1689c9 Merge pull request #2532 from Tyrannys/rt-gamesave-copy-no-copyfile2
xgameruntime_gamesave: copy blobs with CopyFileW, not CopyFile2 (RT-GAMESAVE-COPY-NO-COPYFILE2)
2026-11-29 00:25:16 +01:00
0c8916e856 Merge origin/main into next 2026-11-28 18:25:02 -05:00
7f0b878d3a Merge pull request #2533 from Tyrannys/rt-ws2-offline-lookup-leaks
ws2_offline: refuse the local computer's name, answer localhost with loopback literals, keep WSAIoctl synchronous (RT-WS2-OFFLINE-LOOKUP-LEAKS)
2026-11-29 00:25:00 +01:00
8bb93e89d5 README: where the Direct3D 12 runtime stands on 2026-11-28 (12 to 14 rendered frames a second at Series X 1440p, frame generation by default, the indirect light's stand-in running again); play-d3d12.ps1 passes -NoFrameGen on
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>
2026-11-28 18:24:55 -05:00
1c97c43fd8 Merge pull request #2534 from Tyrannys/claude/fs-overlay-root-lock-longpath
file_system: T:\ is a drive root for file calls; move and copy hold the folder lock (RT-FS-OVERLAY-ROOT-LOCK-LONGPATH)
2026-11-29 00:24:45 +01:00
e6bd9943fd Merge pull request #2535 from Tyrannys/rt-acphal-alignment-lazy-heap
acphal: power-of-two alignment in ApuIsVirtualAddressValid; ApuAlloc(flags=2) gets the lazy default heap (RT-ACPHAL-ALIGNMENT-AND-LAZY-HEAP)
2026-11-29 00:22:45 +01:00
f59eda79ea R9G9B9E5 as R11G11B10: the measurement here (no gain at the waterside save, four starts), so it stays asked for
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 18:11:15 -05:00
c69d428456 Interiors: the indirect light's stand-in finds the resolve's depth beside its stencil plane again; LEONIDA_AMBIENT_FLOOR
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>
2026-11-28 18:09:41 -05:00
b759677d8b GPU: small upload and shared buffers are placed in blocks by default (LEONIDA_SMALL_BUFFER_POOL=0: each its own, as before)
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>
2026-11-28 18:09:35 -05:00
b001cfa5ee rdna2spirv: document stage index cache lifetime
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-28 23:05:00 +00:00
9f7587e193 tools: frame rate of a D3D12-runtime run by draws a frame, and two runs side by side (TOOLS-D3D12-RUN-FPS)
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>
2026-11-28 22:50:37 +00:00
74687a0b43 R9G9B9E5 targets can stand in as R11G11B10_FLOAT, 32 bits a texel as on the console (LEONIDA_E5_TARGETS=r11g11b10; unset: R16G16B16A16_FLOAT, 64 bits, as before)
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>
2026-11-28 17:45:53 -05:00
0a2c75d842 GPU: upload and shared buffers of up to 4 MiB placed in blocks made once, given back after their submissions (LEONIDA_SMALL_BUFFER_POOL=1)
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>
2026-11-28 17:43:35 -05:00
adfb3821a2 Merge pull request #625 from hamdog0203/fix/dash-harden-cli
progress_dashboard: handle null comment authors, require --run-tests for --tests, and catch I/O and history errors (DASH-HARDEN-CLI)
2026-11-28 23:22:10 +01:00