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.
- 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>
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>
Add an opt-in assets-stage switch to skip audio extraction and conversion, preserve existing audio outputs, and account for the lower disk requirement. AI-assisted implementation; focused tests passed.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
LEONIDA_RENDER_SCALE_MIN (the loader's hooks.rs) sets only the lowest scale of the
title's own upscaler (the immediate at rva 0x28f1e7e) and leaves the scale above it to
the title's dynamic resolution; a valid LEONIDA_RENDER_SCALE still holds one scale.
The launchers take it as -Lowest <height>; scripts\play-d3d12.ps1 now starts Series X
with -Lowest 1080 (a 2560x1440 output, 1080 to 1440 lines rendered) instead of
-Resolution 1440, which still holds 1440.
Same save, RTX 4060 Ti, frame generation off, two series (2026-11-29): median frame
57.0 and 59.6 ms against 66.0 and 67.9 held at 1440; the title's choice sat at its
1080 floor there. A recorded tour at the floor: no device removal, no new pipeline
refusals; the frames the scan flagged are camera turns into the sun.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Measured with the merged build at the waterside save: masked pipelines made and used, 28 to 30 refused pipelines as
without it, none for memory, no device removal, nothing broken in the picture (two starts of the branch, one of the
merge).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The title blurs by the movement of one frame. At this port's 12-14 frames a second its smears are twice as long as at
the console's 30, and its tile-based passes paste blocks of an older picture on camera turns: the ghosting and blocky
glitches the user reported. The launcher now adds the blur's first pass, the downsample (CS_MotionBlurDownSample*,
four variants), to LEONIDA_SKIP_PIPELINES, so the later passes find no movement and blur nothing; -MotionBlur (also on
scripts/play-d3d12.ps1) keeps it.
Measured at the waterside save with camera turns recorded (2026-11-28): with the blur, framescan flags a smear at the
end of every turn and trees streak in blocks (runs mb1, hz1); leaving out its first pass for the whole run (mbo1,
mbo2), no smear in any turn and no stale blocks. Leaving out a later pass instead is wrong: without
PS_MotionBlurLowRes the composite pastes stale tiles of an older view, without PS_MotionBlurProcessNeighborhood old
movement stays in its tiles (in-run A/B, mb1). As voidopcode/vilocity a0aa988 (GPL-3.0) found, clean in 670 frames.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Inside Jason's house, driven in by hand and standing, the bound on and off by turns of 3 s in one run (lv1-live): with
it off the room is full of white specks (ceiling, walls, the air), with it on there are none and nothing else in the
picture changes. On the balcony, three runs the same way (al1-aab1..3), the picture is the same either way. The
READMEs list it with the other fixes of the day.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
Review note on #2513: the help text and the README said only 'more than 64
threads'. The translator also needs a wave64 program, a thread count that is
a multiple of 64, and no LDS instruction, store or atomic; the others come
out as before. Both texts now say so, and that the option retranslates
everything but changes only those.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The 12 to 13 frames a second were measured on the working branch, with a fix for waits on the card that is not on
main yet. The status now says so, and gives what main measured at the same place that day (about 10, median frame
about 102 ms), so that the figure on main is not one main cannot reproduce.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The status section and the platforms table opened with "Nothing is playable yet", which is true of the recompiled
runtime with the Vulkan layer and not of the Direct3D 12 runtime in d3d12/, where a save loads into the open world
and the game is played from there with the HUD, the map, the weapon wheel and the pause menu (measured 2026-11-27:
12 to 13 frames a second on a Ryzen 5 7600X and an RTX 4060 Ti, Series X profile, 2560x1440). The two runtimes are
now told apart at the top, and the measurements say what is played with.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The download step still named the repository's old address (ubiquitarianism/leonida), which trackers list as a
copy. The status section said nothing of the second runtime: it now has this project's own measurements of
2026-11-27 (Ryzen 5 7600X, RTX 4060 Ti 16 GB, Series X profile, 2560x1440: a save loads into the world, 12 to 13
frames a second at the save point, what is known to be wrong, what was not measured).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
#2435 added rdna2spirv.py --mesh-serial-waves, but make_game.py never passed
it, so a build of main got none of its effect. The option is one more entry
in FALLBACK_FLAGS: forwarded to every translator run, recorded in
translator_flags.txt, and turning it on or off translates the shaders again.
Off by default; it changes nothing for shaders translated natively or with
--mesh-compute.
Tests: the option is opt-in and forwarded, it is recorded after the older
flags so existing folders keep their recorded spelling, and every forwarded
flag is an option the translator defines.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Brings the D3D12 runtime branch (d3d12/, its launcher scripts and notes, and the pull requests reviewed and applied
on it) together with mandy's main.
Conflicts (67 files, none under d3d12/): docs/, make_game.py, runtime/, scripts/build_runtime.ps1, tests/ and
tools/. Every one takes main's side: main is where that code is maintained, and this branch's copies were older
states of the same files or the same pull requests in another form. tests/test_fspx_unpack.py is main's too, as it
tests main's tools/fspx_unpack.py. Nothing under d3d12/ is changed by the merge.
Checked before pushing: python -m compileall over make_game.py, tools and tests; make_game.py --help;
scripts/check_no_game_data.py over the files this adds to main; tests/test_text_write_line_endings.py. The
translator suite, the C++ runtime build and CI have not run on the result.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The credit line names each thing ported from aki-gta6/aki-runtime (Aki-Developer, GPL-3.0); the commits carry the
hashes.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The credit named the port as shared for reference; the first port from it is in (the dropped draws by reason,
aki-gta6/aki-runtime d9d1341, GPL-3.0), so the line says what was taken.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
At the maintainer's request. Nothing from aki-runtime is in the tree yet: the repository could not be
read from this PC (private; the stored GitHub credentials are refused), so the line says what was
shared, not what was used.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Launcher.bat (Windows) or python3 tools/leonida_launcher.py opens a dark launcher with a navigation column, a hero area
with a PLAY button, a status line and pages: Play (runs scripts/play-d3d12.ps1 or scripts/play-linux.sh, output in a
log box, state line, Stop with confirmation ending the process tree, never two runs at once), Settings (game folder
with a check for game_scarlett_master.exe, data folder, the switches read from play-d3d12.ps1), Mods (mods/*/mod.json
enabled flags written via leonida_mods), Tools (DLSS fetch after a confirmation, runtime rebuild, logs and screenshots
folders) and About. Settings live in %APPDATA%\Leonida\launcher.json (~/.config/leonida on Linux). Its own design and
wording, no game assets; the hero picture is the newest screenshot found at run time, else a gradient. The pure parts
have no Tkinter and are tested in tests/test_leonida_launcher.py.
Checked: python -I tests/test_leonida_launcher.py (13 tests), python -m compileall -q tools,
scripts/check_no_game_data.py. The window itself was not opened or clicked through. AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflict in runtime/shims/d3d12_xs_device.cpp, proxy_copy_descriptors_simple:
keep this branch's copy_null_rtv_marks call and main's fsdraw::enabled()
gate for the descriptor-copy diagnostic.
tools/rdna2spirv.py merged without a textual conflict, but #1662 on main
calls restore_dot4_inline_sel in the exact re-anchoring path, which this
branch had deleted. The merge puts main's function back so that call
resolves; the next commits reconcile it with the dot4 op_sel rule.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The legal-terms page keeps Confirm greyed out until both boxes are ticked, and
down stops at Confirm, so an a/down-only script sits there. Record the page
order, what each page needs and the retry block that reached the loading
screen on native Windows; one README status sentence links it.
The status still said the game does not boot and the PE loader row said it
was untested against the real executable. Since #321, #939 and #984, main
boots the game from your own copy on native Windows and on Linux through
Proton, through the story load into the world phase, as
docs/linux_proton.md and docs/first_run_ui.md record.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>