Independent verdict on the carry PR: '**VERIFY the stride on a real exe**' became an
empty entry and '**Unverified fixed quota** on hardware' lost its words. With no colon
to say where a label ends, the bold words may be the note, so they stay. The
class_id string check also gets a payload (0) that kills its mutation.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- One gate for both halves: supported() also asks for shader model 6.6, and the translator is
told inline ray tracing runs (set_host_inline_rt) only once the DXR manager is made.
- AABB geometries take stride 0 (packed 24-byte boxes) and multiples of 8 of 24 or more, as
DXR does; others are refused.
- A TLAS of instances by pointer (ARRAY_OF_POINTERS) is not built: the remap reads 64-byte
instances in a row.
- Structure copies other than clone and compact are not done (said once).
- A TLAS clone points the heap slots that view the destination at the shared structure.
- The points not fixed here are listed in fork-ray-tracing.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two things the front page did not say, and both cost a user a report:
- **`d3d12\scripts\play-nvidia.ps1` was not named anywhere in it.** "Starting it" points at
`Launcher.bat` and `scripts\play-d3d12.ps1`, which are the generic paths; the NVIDIA launcher
- the one whose settings `findings.md` measures with - was only mentioned inside the DLSS
fetcher's own output (#2885 reads it as "play-nvidia.ps1 missing").
- **Nothing said that Windows' default card is not always the NVIDIA one.** On a 7800X3D with an
RTX 4090 there are two adapters, and `D3D12CreateDevice(None, ..)` - what the layer uses when no
card is named - makes its device on the Radeon iGPU (measured: vendor 0x1002). DLSS cannot
start there (`NVSDK_NGX_Result_FAIL_FeatureNotSupported`), so the picture is the stretch and
every frame is drawn by the chip, without a line saying so. `-Adapter 4090` is the fix.
Written with an AI assistant.
The mocked open succeeded on its third call whatever the path, so generating the
probe name once before the loop still passed. The test now pre-creates the first
probe, patches secrets.token_hex with two names and keeps the real os.open.
Reported by andrew-ai on the carry PR.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
**VERIFY: check the stride** before release lost its whole note (the bold branch
of without_marker() dropped everything up to the closing **). A bold run that is
only the label still goes whole; a bold run that holds the note keeps it.
Reported by andrew-ai on the carry PR.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- rq_op: 187 is CandidateWorldToObject3x4 and 188 CommittedObjectToWorld3x4 (they were
swapped; checked against dxc 10.0.26100). the_ray_query_opcodes_are_dxils pins all 35.
- Hardware ray tracing runs only where it can: hwrt::active() (asked for, and a DXR 1.1
manager made) gates the HLE module, the left-out passes, the copy-back rule and the counters;
the translator lifts loops only when the host says it runs inline ray tracing
(set_host_inline_rt, in host_settings and so in the shader cache's key). Elsewhere the title
keeps its own XboxBvhBuilder.dll and the software walk.
- No env write: builder_allowed() is LEONIDA_BVH_BUILDER=1 and not hwrt::active().
- dxr.rs removed (nothing bound its wrappers); TLAS views are kept out of the list views only
with the path on; the off16 diagnostics and the xmem log lines are gone.
- as_sizes split out of alloc_or_reuse_as, with a test; the known gaps are in
fork-ray-tracing.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A trace can skip an assert and later stop on a real breakpoint. The global
`int3_skipped` veto hid the later one; each skip now consumes one preceding
`0x80000003` exception at the same recorded address, so only a breakpoint
the trace actually skipped stops naming the end. The test covers a later
breakpoint at another address and a repeat at the same one.
AI-assisted.
The old assertion (S_IMODE(mode) == mode) passes for any 9-bit integer, even 0.
The test now mocks new_file_mode, checks the target's own directory is probed and
the sentinel is returned, and a second test checks an existing file keeps its mode.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- tests: -PrecompileAll is among the switches checked against play-d3d12.ps1,
and it is passed only with the precompile on.
- README.md, docs/launcher.md, d3d12/README.md: the switch.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With -PrecompileAll every known pipeline is made (some 88,000 against 4,000
drawn with). Those never drawn with now stay in the driver's cache alone and
are kept out of the pipeline library: the driver checks an entry of its own
cache against the pipeline asked for and compiles again where they differ,
while a library entry is taken as it was stored.
With them in the library (1.5 GB, 91,525 entries) the device was removed
twice during a burst of first loads in a new place (RTX 3060, driver 621.40):
no hang, no page fault, the library file whole. With them kept out, a run of
the same settings stayed up. The cause inside the driver is not known.
The rule is into_library(), with a unit test that fails without it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The precompile makes only the pipelines earlier runs drew with (warm --used).
-PrecompileAll (launcher: "Precompile every pipeline", off by default) makes
every pipeline the title has created, as foxhound's launcher does: fewer
stalls in places not drawn in yet, at the cost of an hour or more and
gigabytes the first time. Kept across the F1 menu's restart.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`LEONIDA_SKIP_ASSERTS` records each stepped-over int3 as an exception and
`int3_skipped`, and `LEONIDA_UNIMPLEMENTED=stop` also exits 3, so the old
condition reported such a run as a title breakpoint. The trace's
`int3_skipped` event now vetoes the word, and the docstring says a device
loss and a skipped int3 both win over it.
AI-assisted.
The startup trace's exception-code filter accepted `0x` but not `0X`, so a
trace spelling the breakpoint `0X80000003` classified the exception as
`(other)` and the end fell back to the generic process exit. `_same_code`
already lowercased, so only the filter was strict. The test now covers all
three spellings; it fails on the old filter and passes with it.
AI-assisted.
The shared frame budget was a reservation: the first recording thread to
wait in a frame took all that was left of it, and every other thread of
that frame (and any thread still on an older frame) got nothing, so its
draw went out without a wait and was dropped as not made. On first starts
(no pipeline book) 400 to 3,600 draws, dispatches and indirect executions
a frame were dropped at the arrival in the world, and the character's
head, drawn by a pass the title runs once, stayed missing for the run.
- The frame's waits are counted once over the threads that wait at the
same time: what passed while at least one thread waited. A thread that
begins to wait while others do is left what is left at that count, so
waits that overlap still cost the frame its budget once; the time a
thread records between two waits is not counted; a thread on an older
frame joins the current frame's waits and opens no budget of its own
(#2601). On by default; LEONIDA_PIPELINE_WAIT_DEADLINE=0 reserves the
frame's budget as before (no effect with LEONIDA_PIPELINE_WAIT_SHARED=0);
LEONIDA_AB can turn it while the title runs.
- A pipeline's own budget (LEONIDA_PIPELINE_WAIT_ONCE) is charged the same
way, the real time once, not the threads' times added up, whatever the
sharing of the frame's budget (LEONIDA_PIPELINE_WAIT_ONCE=0 turns that
budget off).
- The queue a wait moves its pipeline forward in and the budget a
pipeline's waits count against are passed in, so that tests cover them;
one line tells the rules in use at the first wait.
AI-assisted: Claude Code (Claude Opus 5.5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The preflight added in 218b0328b read -NoDlss out of -PlayArgs with a pattern over
the text. Two reviews of the pull request showed where that goes wrong:
- `-NoDlss: $true`, a space after the colon, binds true, and the gate refused the
run and asked for a DLSS rebuild (andrew-ai, PowerShell 7.6.9);
- `-Adapter 'Fixture -NoDlss Adapter'` binds no switch, and the gate let the run
go on into a build inside the run (merzleckeier, PowerShell 7.4.21).
The gate now asks PowerShell itself: Test-NoDlssBound takes the param block of
scripts\play-d3d12.ps1 and lets it bind the arguments the launch line gives the
script (-Game, -Data, -More, then -PlayArgs); nothing of the play script runs.
The first thing the probe writes is the answer, so text behind a `;` in
-PlayArgs cannot stand in for it. Arguments PowerShell cannot bind (an ambiguous
-No, a switch that does not exist, a value outside a ValidateSet) count as
-NoDlss not said, as the start itself fails on them, and the refusal then says
that they did not bind and with which error. The probe is reached only when the
build's note, the SDK and cargo already say the play script would build.
tests/test_game_gate.py takes the function out of the script and puts 19 lines of
-PlayArgs to PowerShell 7 against the real play script's parameters: bare,
shortened, :$true, : $true, :$false, : $false, alone and among other switches,
the quoted adapter name alone, with -NoDlss:$false and with a real -NoDlss, an
argument that does not bind, and a `; $true` behind the arguments (skipped where
there is no pwsh). A second test holds that no pattern is matched against
-PlayArgs any more.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
In place of -RayTracing (the title's structure builder and software traversal as translated
shaders): the title's XboxBvhBuilder calls become host DXR 1.1 bottom and top levels, and the
traversal loops of its trace programs become inline ray queries.
Ported from trustno1-coder/VIctory-NVIDIA (its #3706; from Leslie-d-a/VIctory-NVIDIA-HWRT 61e389e0
and 5f55bca8, original by dakisback2 ecc49d5b and 72f8316a), GPL-3.0, and fitted to this tree:
- leonida-shader: emit/rayquery.rs wired into lower.rs (the plan, the handles, TLAS root SRVs
t230..t241, the analyses that leave the lifted loops out). A program in the paired form is not
lifted. With LEONIDA_HW_RT=1 the node test of a loop left unlifted misses every node
(emit/intersect.rs bvh_miss): the console structures are never written then.
- leonida-gpu: hwrt.rs (and dxr.rs for its records); list::external with a LEONIDA_THIN op for the
structure work at its place in a title list; the TLAS views in the descriptor heaps;
Deferred::held; the ray queries in the shader cache's entries; counters in the frame log.
- leonida-hle: modules/xboxbvh.rs replaces the exports of the title's XboxBvhBuilder.dll when on.
- With it on the light stand-in stands aside and the passes left out without structures run.
Shader writes are not all copied back as VIctory-NVIDIA does (LEONIDA_HW_RT_COPY_BACK=1 asks for
it): here that stretched and flickered textures and cost 30 to 45 ms a frame.
- F1: HARDWARE RAY TRACING (TRIAL); play scripts: -HardwareRT (frame generation left off with it,
as with -RayTracing); launcher: a checkbox. Docs: fork-ray-tracing.md, README.md, switches.md.
One PC (RTX 4070 12 GB, driver 621.40, Series X profile, no frame generation): 22 to 25 frames a
second against 6 with -RayTracing; the run ended after six minutes with the card's memory full.
Co-authored-by: dakisback2 <90546900+dakisback2@users.noreply.github.com>
Co-authored-by: Leslie-d-a <70692092+Leslie-d-a@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Dropping -h from run_wine_session.sh or check_no_game_data.py now fails the
test that covers it, and play-linux.sh's usage lists LEONIDA_GAME_DIR with
the other path variables (it already honours it).
AI-assisted.
The gate refuses to run without a build, because the play script would make
it inside the run. Since the change before this one, play-nvidia.ps1 also
makes a build noted as made without DLSS again once NVIDIA's SDK is there,
whatever the start's switches ask for: on such a checkout that build too
would be made inside the run, after the gate wrote down the exe's hash and
what it was built with. The gate now refuses that run as well and names the
build script. Not with -NoDlss in -PlayArgs (shortened or with :$true too)
and not without cargo: the play script makes no build then.
That commit's message calls this guard a follow-up, for want of PowerShell 7
on the PC it was written on; it has been installed since, and this is it.
Checked with PowerShell 7.7.0: the guard's own lines against a synthetic
folder, eleven cases; and the whole script twice. With a build noted as made
without DLSS and the SDK there it refuses before anything starts (exit 1, no
run folder). With a build noted as made with DLSS it goes on as before:
run.json carries built_with, and the run ends at once with ERROR not_started,
there being no game in the folder.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
So a merge queue can be turned on for main. `ci.yml` (change-scope, check,
linux-python-and-viewer, semantic-tests) and `no-game-data.yml` (no-game-data)
gain a `merge_group:` trigger. In the queue `change-scope` is skipped (it reads
a pull request's diff), which counts as passed for a required check, and the
jobs after it run in full. Their concurrency groups fall back to run_id there,
so queued runs never cancel each other.
Agreed to by a second human maintainer (Aslan).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>