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>
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>
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>
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>
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.
- 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.
- 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.
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.
- 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.
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.
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).
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>