Commit Graph

18471 Commits

Author SHA1 Message Date
0413012fac Explain host memory use during full pipeline warm-up 2026-12-02 11:31:59 -05:00
e71aa0ef15 Default to full D3D12 shader and pipeline precompilation 2026-12-02 11:17:09 -05:00
4910c5c2e4 Merge pull request #3166 from OreoFR/feat/launcher-nvidia-cache-note
launcher: say NVIDIA's Shader Cache Size beside the full precompile (LAUNCHER-NVIDIA-CACHE-NOTE)
2026-12-02 16:04:38 +00:00
23a68aec3e Merge pull request #2969 from aznohonza/shader/bounded-budget-test
shader/opt: the visit-budget test uses 5 phi levels, where the budget decides (D3D12-SHADER-BOUNDED-BUDGET-TEST)
2026-12-02 15:58:14 +00:00
9d1e8fd30d launcher: say NVIDIA's Shader Cache Size beside the full precompile (LAUNCHER-NVIDIA-CACHE-NOTE)
Players reported compiles in the game after "Precompile every pipeline". The
cause was NVIDIA's Shader Cache Size left at its default: the driver throws
part of the precompiled pipelines away. The launcher said so only in a line
of its output.

- A highlighted note under the options names the setting and where it is:
  NVIDIA Control Panel > Manage 3D settings > Global Settings > Shader
  Cache Size > Unlimited. It is a global setting, not per program.
- Ticking "Precompile every pipeline" shows the same note in a dialog.
- The options grid: since the "Check for updates" box (#3057) made 11 boxes,
  the last one shared row 5 with Resolution and was hidden behind it. The
  rows after the boxes now follow their count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 16:52:13 +01:00
3c106eb2ff Merge pull request #3138 from merzleckeier/fix/manifest-linux-casefold-alias
manifest: resolve the stored entry on Linux casefold directories
2026-12-02 15:12:48 +00:00
12d66a63a6 Merge pull request #3148 from Kal0s-design/fix/x64-recomp-shld-shrd
x64_recomp: SHLD and SHRD (0F A4/A5/AC/AD) decode with their ModRM and imm8 (X64-RECOMP-SHLD-SHRD-DECODE)
2026-12-02 15:11:16 +00:00
0d6757b704 Merge pull request #3127 from Maticcm/fix/standalone-test-path-records
ci: preserve Unicode separators in standalone test filenames
2026-12-02 15:10:53 +00:00
b6efbe831e Merge pull request #3061 from TheStonedGamer/launcher-typed-changed
Launcher: only options changed since the last PLAY win over the F1 menu (LAUNCHER-CHOSEN-SWITCHES)
2026-12-02 15:09:35 +00:00
83046a713f Merge pull request #3076 from OreoFR/feat/submit-sender-on
d3d12 launcher: prepared lists sent by a thread of their own (D3D12-SUBMIT-SENDER-ON)
2026-12-02 14:48:57 +00:00
43fc605ed6 Merge pull request #3067 from OreoFR/feat/port-journal-default
d3d12 launcher: renderer port #7 (the write watch's journal in parts) on (D3D12-PORT-JOURNAL-ON)
2026-12-02 14:48:52 +00:00
acc3507455 Merge pull request #3077 from imShangLi/fix/translator-refuse-unreadable-listing
translator: a listing the translator cannot read is refused, not fatal
2026-12-02 14:23:56 +00:00
1f158fe577 x64_recomp: SHLD and SHRD (0F A4/A5/AC/AD) decode with their ModRM and imm8
The 0F table had no entry for the double-precision shifts, so 0F A4,
0F A5, 0F AC and 0F AD decoded as the unknown op0f_XX after the two
opcode bytes. The ModRM byte, any SIB/displacement and the imm8 of the
A4/AC forms were then read as the next instructions: 48 0F A4 C2 05 C3
came out as op0f_a4 (3 bytes) followed by a bogus "ret 0xc305".

Add them as "Ev Gv Ib" (A4, AC) and "Ev Gv c" (A5, AD), the same specs
the table already uses for ModRM + imm8 and for the CL count. 66 and
REX.W/R/X/B apply through the shared operand parser.

Decoding only: there is no emitter, so the translator reports them as
unhandled "shld"/"shrd" and leaves a brk, as it does for other
instructions it cannot translate. The census now counts them by name
instead of stopping the function at a decode error.

The test covers register and memory forms (SIB + disp8, RIP + disp32),
with and without REX.W and 66, the next instruction's start, and the
translator's unhandled report. Lengths match GNU objdump 2.46.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 15:06:08 +01:00
ac2ea358ef manifest: resolve the stored entry on Linux casefold directories 2026-12-02 14:34:41 +01:00
69cd4106ce Merge pull request #3051 from imShangLi/fix/d3d12-lua-require-inside-folder
D3D12-LUA-LINKS-STAY-IN-THE-FOLDER: require and the script refuse a link that leads out
2026-12-02 13:22:25 +00:00
64d0d5398b Merge pull request #3048 from Kal0s-design/fix/bake-writes-keep-coverage
d3d12-gpu: writes kept for a one-shot bake are compacted, not dropped
2026-12-02 13:22:07 +00:00
2fc7383b92 Merge pull request #3047 from imShangLi/fix/d3d12-lua-string-dump
D3D12-LUA-STRING-DUMP: a mod cannot make a precompiled chunk
2026-12-02 13:21:49 +00:00
72d143c45a Merge pull request #3100 from kawaii-shakal/linux-wine-write-watch-check
Linux wine write watch check
2026-12-02 13:21:35 +00:00
21843cef05 Merge pull request #3046 from Kal0s-design/fix/texture-mapped-interior-pages
d3d12-gpu: mapped_bytes counts readable pages between unmapped ends
2026-12-02 13:21:29 +00:00
602397b795 Merge pull request #3045 from Kal0s-design/fix/in-shader-heap-empty-range
d3d12-gpu: in_shader_heap takes no empty range and does not overflow
2026-12-02 13:21:10 +00:00
5728300c4f Merge pull request #3043 from imShangLi/fix/d3d12-lua-memory-scan-bounds
D3D12-LUA-MEMORY-SCAN-BOUNDS: a scan covers a bounded range, and its options are checked
2026-12-02 13:20:53 +00:00
9cb1902d39 Merge pull request #2997 from bobcatchris/fix/d3d12-gpu-ab-parse-finite-seconds
D3D12-GPU-AB-PARSE-FINITE-SECONDS: reject non-finite LEONIDA_AB phase duration
2026-12-02 13:20:35 +00:00
9e37ae5cc4 Merge pull request #2939 from bobcatchris/fix/d3d12-crash-memory-at-race
D3D12-LOADER-CRASH-MEMORY-AT-ISOLATION: remove post-MEM_RELEASE VA-reuse race in memory_at test
2026-12-02 13:20:16 +00:00
044339e4c0 Merge pull request #2936 from bobcatchris/fix/d3d12-upcheck-take-blocks-test
D3D12-UPCHECK-TAKE-BLOCKS-TEST: write same 4 KiB block in upcheck undeclared-write test
2026-12-02 13:19:57 +00:00
09fbadec8a Merge pull request #2854 from lixonik/fix/leonida-gpu-parallel-test-flakes
d3d12-gpu: fix parallel unit test races in watch, descriptor, and pool
2026-12-02 13:19:39 +00:00
128648cfec Merge pull request #3091 from MoonEyes/carry/2108
fog_volumes: find a zlib header that starts on a scan-range boundary (carry of #2108)
2026-12-02 13:14:22 +00:00
01eca4b710 Merge pull request #3094 from MoonEyes/carry/2377
studio: show category names in the chosen language (carry of #2377)
2026-12-02 13:13:49 +00:00
9069597aa4 Merge pull request #3090 from MoonEyes/carry/2000
tools/ds_permute_probe: write --json report atomically (carry of #2000)
2026-12-02 13:13:32 +00:00
bf78867469 Merge pull request #3093 from MoonEyes/carry/2343
d3d12_device_calls: forget a slot a store or a call may have replaced (carry of #2343)
2026-12-02 12:49:10 +00:00
d0bf821fa1 Merge pull request #3089 from MoonEyes/carry/1962
Keep boot trace text readable when map records lack names (carry of #1962)
2026-12-02 12:47:42 +00:00
d466283c19 Merge pull request #3087 from MoonEyes/carry/1441
manifest: exclude a manifest spelled with another case (carry of #1441)
2026-12-02 12:46:52 +00:00
cbd593881d Merge pull request #3086 from MoonEyes/carry/1431
meshlet_page: ask report_paths for the report-path guard (carry of #1431)
2026-12-02 12:45:20 +00:00
23a51c4945 Merge pull request #3085 from MoonEyes/carry/384
pe_inspect: refuse aliased JSON/Markdown report outputs (carry of #384)
2026-12-02 12:22:45 +00:00
f45165e157 Merge pull request #3084 from MoonEyes/carry/358
leonida_mods checks the executable and DLLs by SHA-256 before starting gta6rt (carry of #358)
2026-12-02 12:18:00 +00:00
f6dd2242e0 Merge pull request #3083 from MoonEyes/carry/340
test: unit tests for tools/gen_gdk_runtime_classes.py (TEST-GEN-GDK-RUNTIME, carry of #340)
2026-12-02 12:03:46 +00:00
f9d4ca9074 Merge pull request #3106 from MoonEyes/carry/1346
tests: RBF0 report outputs that differ only in letter case (carry of #1346)
2026-12-02 11:58:54 +00:00
9b4d718992 Merge pull request #3092 from MoonEyes/carry/2136
studio: scale the camera's near and far planes with the model fit (carry of #2136)
2026-12-02 11:31:44 +00:00
7569895a5c Merge pull request #2804 from TheGeogeo/d3d12-game-abba
scripts: game-abba.ps1 runs an in-game ABBA comparison over gate runs (D3D12-GAME-ABBA)
2026-12-02 11:30:24 +00:00
70caa0dcec ds_permute_probe: ride out a short Windows hold on the report, name a long one
Kal0s-design's check of #3090: on Windows, writing the report over one
another program holds open without share-delete now failed with
"Access is denied", where the old truncating write overwrote it. The
rename now goes through replace_retry, as the other atomic writers in
tools/ do, so a short hold (scanner, indexer, sync client) is ridden
out; a hold that lasts says the report may be open in another program.
The old report is kept and no temporary file is left either way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 12:14:17 +01:00
f17157c8f0 studio: model search matches the category name it shows
Kal0s-design's check of #3094: the chips and headers now show the
catNames of the chosen language, but the model search still matched
only the server's category name, so "Vegetation" found nothing in EU
while a word of the hidden Russian name did. The search now matches
the shown name as well as the server's; a test covers both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 12:12:26 +01:00
40ac041833 Merge pull request #3101 from MoonEyes/carry/1121
x64_recomp: a buffer that ends inside a VEX/EVEX prefix is a DecodeError (X64-RECOMP-VEX-BOUNDS, carry of #1121)
2026-12-02 11:08:52 +00:00
3df7430e3f tests: test_game_abba.py reads paths and errors the same on a CI runner (review)
The Windows runner of the `check` job failed three of these tests; the script was right.

- Its TEMP is an 8.3 short path (C:\Users\RUNNER~1\...), and [IO.Path]::GetFullPath, which the script uses for
  every folder it compares and records, expands short names: the printed gate path and abba.json's folders were
  the long spelling of what the tests gave. The tests now take the real path of their temporary folders and
  compare paths after realpath and normcase.
- Its console colours PowerShell's error text and wraps it with the escape sequences inside the wrap, which
  unwrapped() did not join. The tests now run pwsh with NO_COLOR=1, and unwrapped() removes colour sequences
  before it joins the wrapped lines.
2026-12-02 12:04:48 +01:00
af89a79c10 scripts: game-abba.ps1 takes a value the settings line hides as an arm, keeps a name's last value, refuses a checkout in -Out (review)
- arm_settings applies the space and length rules only to a value the runtime's settings line shows as it is:
  one of ASCII letters, digits and " ._,:+=*-", the `plain` test of d3d12/apps/leonida/src/leonida.rs line 65,
  mirrored and quoted in d3d12_ab_compare.py's new SOURCES, which a contract test checks against leonida.rs.
  Any other value (a folder with a space, a long path) shows as "<hidden, N chars>", which `check` takes as
  shown, so it can be an arm.
- A name given twice in one arm counts with its last value, as the gate keeps it.
- `settings` names an item by its position (and its LEONIDA_ name), never by its text, so no path is said back.
- The runner refuses a checkout inside -Out, where a re-run's clean-up could reach it.
- The files the runner writes are written beside themselves and moved over, so abba.json, rewritten after every
  run, is never found cut short; an -Out whose abba.json exists but is not readable as this runner's is refused
  as such ("no readable abba.json of this runner").
- docs/measuring_fps.md and the script's header say the same.
2026-12-02 12:04:48 +01:00
9253877875 scripts: game-abba.ps1 deletes only its own -Out, refuses what can never be checked, writes LF records as it goes (review)
- A re-run deletes runs, abba.json and comparison.* only when -Out's abba.json is this runner's (its schema); an
  -Out holding any of those without it is refused and kept. Each arm's scripts\game-gate.ps1, -Game,
  -DataTemplate and the data folders are checked before anything is deleted (two-build mode needs the gate in
  each checkout).
- -Out may not be -Game, -DataTemplate or a data folder, nor be inside one or hold one (full paths without an
  ending separator, case ignored on Windows). -Retry is 0 or more.
- One reading of an arm's settings, d3d12_ab_compare.py's arm_settings(): the way game-gate.ps1 reads -More
  (split at ";", name and value trimmed). The runner refuses before the first run what the runtime's settings
  line could never show (not LEONIDA_NAME=value, a value with a space or over 120 characters), through the new
  `settings` command, and passes the arm's text to `check --more`, which compares with the same reading.
- `check` builds on run_value, so a run that counts has one definition (a PASS without a frame rate is left out
  and run again), and takes AFTER_WORLD_S from tools/game_gate.py. Its docstring no longer says it prints no
  argument text.
- abba.json holds the folders and checkouts as well, and is written at the start and after each run, so an error
  leaves it. abba.json, comparison.txt, comparison.json and ab-excluded.txt are LF with one final newline.
- An empty -More or -PlayArgs is not passed to the gate (PowerShell 7.0 to 7.2 drop an empty argument).
- Tests: the stand-in gate notes the parameters it gets and can end a run with another exe, another setting or
  no frame rate; new cases for each point above, a slot left out on every try keeping its place, and the bytes
  of the files written. test_d3d12_ab_compare.py removes its temporary folders.
- docs/measuring_fps.md: the refusals, the gate each checkout needs, the record and the re-run.
2026-12-02 12:04:48 +01:00
45841e40e7 scripts: game-abba.ps1 refuses fewer than 3 pairs (review)
2 pairs are 2 runs a side, and `abba` needs 3 runs a side (side and linear trend) or 4 pairs (a verdict from
the pairs themselves): such a run could never give a comparison and would only say so, exit 1, after about an
hour of gate runs. The runner now refuses -Pairs below 3 before any run, and says why. The header comment and
docs/measuring_fps.md say the minimum; the dry-run tests that plan use 3 pairs, and the refusals cover 1 and 2.
2026-12-02 12:04:48 +01:00
d80442e6a9 scripts: game-abba.ps1 starts a re-run clean, stops on a failed warm-up, checks the comparator and records the arms (review)
- A run into an -Out used before first deletes what the earlier one wrote there (runs, abba.json,
  comparison.*): a run folder of the same name kept its ab-excluded.txt, which left a good run out while
  abba.json said left_out null, and its data copy.
- A warm-up or discarded run whose gate fails stops the runner at once, before the measured runs.
- Every call of d3d12_ab_compare.py (plan, check, abba) has its exit code checked before its output is
  used: a failed comparator writes no comparison. The runner exits 1 when the runs left give no
  comparison (too few runs, unbalanced pairs), 0 with one.
- abba.json records the arms' inputs (more, more_a, more_b, play_args, max_minutes, retry) and each run's
  commit.
- The guard on -Out covers the runner's own checkout in two-build mode, appends
  [IO.Path]::DirectorySeparatorChar, and -DataA/-DataB (and the checkouts) compare as full paths without an
  ending separator, so "dir" and "dir\" are one folder.
- tests/test_game_abba.py runs the script over a stand-in gate that writes run.json and summary.json:
  a failed and a cut-short run left out and retried, the outputs, a re-run into the same -Out, a failed
  warm-up or discarded run, a failing comparator, too few runs left, and the record's fields.
- docs/measuring_fps.md: the re-run, the stop on a failed warm-up, the exit codes and abba.json's fields.
2026-12-02 12:04:48 +01:00
3278ba15ae tools: d3d12_ab_compare.py leaves a run with an unreadable summary.json out (review)
A summary.json cut short (a gate stopped while writing it), not JSON, or not an object made `check` and
`abba` raise. Both now read it through read_summary() and give "unreadable summary" as the reason the run
is left out, so the runner retries the slot instead of recording nothing and comparing without it.
2026-12-02 12:04:48 +01:00
a1b44f0b66 scripts: game-abba.ps1 runs an in-game ABBA comparison over gate runs (D3D12-GAME-ABBA)
The runner takes the order from d3d12_ab_compare.py plan (warm-up runs, discarded runs, then ABBA pairs) and
runs each slot through scripts/game-gate.ps1, for one exe with two settings or for two builds (a checkout and
a data folder per arm). Each measured run is checked by the new `d3d12_ab_compare.py check`: its gate passed,
the pipeline cache was warm before the measured window, its exe is its arm's first one, and its arm's own
settings show in the runtime's settings line when there is one. A run that fails gets an ab-excluded.txt,
which `abba` now leaves out, and its slot runs again (-Retry, 1). The runner ends with the comparison in
<Out>/comparison.txt and comparison.json, and abba.json says what ran and what was left out. -DryRun prints
the plan and the gate commands. It needs PowerShell 7 (#Requires).
2026-12-02 12:04:48 +01:00
fff970e616 Merge origin/main into carry/1346 2026-12-02 11:51:40 +01:00
6d918ef46e Merge #1121 (kett1m) into main: keep main's tests and the PR's truncated VEX/EVEX tests
Carry of #1121 (X64-RECOMP-VEX-BOUNDS). The conflict in tests/test_x64_recomp.py only placed the PR's two new tests after main's existing ones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 11:44:50 +01:00