Commit Graph

232 Commits

Author SHA1 Message Date
daf7242f2e Merge remote-tracking branch 'origin/main' into carry/hwrt-2972
# Conflicts:
#	d3d12/scripts/play-nvidia.ps1
#	scripts/play-d3d12.ps1
2026-12-02 06:57:33 +01:00
0ae5a2664b Merge pull request #2986 from TheStonedGamer/precompile-all
d3d12: opt-in precompile of every known pipeline (-PrecompileAll); never-drawn pipelines stay out of the library
2026-12-02 05:13:18 +00:00
277703d441 README: the NVIDIA launcher, and naming the card on a PC with more than one
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.
2026-12-02 00:21:45 +01:00
afe0b798f4 Launcher tests and docs for -PrecompileAll
- 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>
2026-12-01 17:30:37 -05:00
3fdfbaa46f d3d12: hardware ray tracing on DXR 1.1 (LEONIDA_HW_RT, off: a trial)
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>
2026-12-01 23:04:12 +01:00
0667503e3f fix discord link and remove redundant 2026-12-01 14:46:35 -05:00
fe0fb68460 ASSET-AUDIO-SKIP: allow skipping audio export
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>
2026-12-01 12:49:31 -05:00
457735ca8a docs: fix stale repo references and add coding-agent engineering bar 2026-12-01 07:44:31 -05:00
f9f3ec4c68 README: the RX 6800's frame rates, the indexed heap spans, prompts picked at the start and where shaders still stutter 2026-11-30 07:57:06 -05:00
541f574a7d Merge pull request #2409 from DanielMarcos1/docs/refresh-gpu-vulkan-links
docs: refresh GPU testing and Vulkan links
2026-11-29 19:28:59 +01:00
c34cec72ee Merge pull request #2593 from Bloh09/fix/ci-main-red-tests 2026-11-29 13:44:04 +01:00
e4973b5db6 Dynamic resolution by default: the title's own, between 1080 and 1440 lines
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>
2026-11-29 01:49:59 -05:00
3fbfcc6f8d Merge upstream/main into fix/ci-main-red-tests
Resolved conflicts in bench_translate.py, export_old_pr_manifest.py,
pc_prompt_glyphs.py and xbox_prompt_glyphs.py by taking main's
errors=replace guards (#2590). Dropped CI-STDOUT-GUARD-NEW-TOOLS.
2026-11-28 19:40:09 -08:00
7fc9f95869 READMEs: the sample mask (OMSetSampleMaskX) followed since 2026-11-28; whether it ends the plant flicker is not confirmed yet
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>
2026-11-28 21:22:07 -05:00
bf574cf31a docs: links and the clone line follow the README rewrite (CI-README-REWRITE-LINKS) 2026-11-28 17:31:06 -08:00
504ea0e418 Ghosting and blocky smears on camera turns: the title's motion blur is left out by default (-MotionBlur brings it back)
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>
2026-11-28 20:19:23 -05:00
dc644c6eed White specks indoors: the launcher bounds the light of particles and dust by 4 times the light around (LEONIDA_AMBIENT_ALPHA=4)
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>
2026-11-28 19:54:07 -05:00
9f189d6254 docs: refresh GPU testing and Vulkan links 2026-11-28 21:35:32 -03: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
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
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
4b653cfc54 Merge pull request #1416 from dung997tb/fix/stale-repo-links
docs: fix stale repository links in the community quickstarts and README
2026-11-28 19:26:10 +01:00
f2072b2fe7 Merge pull request #2513 from quartz-heron-58/makegame-mesh-serial
make_game: --mesh-serial-waves forwards the translator's switch (BUILD-MAKEGAME-MESH-SERIAL-WAVES)
2026-11-28 16:11:59 +01:00
e4b7f3c8c2 docs: point the community quickstarts at this repository and GPU results at gpu-test-results/ 2026-11-28 16:11:54 +09:00
09c1539483 Revert README runtime status and launcher rewrite
This reverts the README-only changes from PR #2562 (merge 6dfca64280) and restores the previous README.
2026-11-28 03:43:26 -03:00
ecabb41205 docs(README): clarify playable D3D12 vs Vulkan runtime status and launcher flow (DOC-README-TWO-RUNTIMES) 2026-11-28 02:22:10 -03:00
02f71ccfe7 Remove CA line from README
Removed the CA line from the README.
2026-11-27 21:29:25 -05:00
4ff5c90644 make_game: say which mesh shaders --mesh-serial-waves changes
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>
2026-11-28 10:11:28 +08:00
1a441d336f Update README.md 2026-11-27 20:51:48 -05:00
431ceba4f4 README: which commit the D3D12 measurements are of, and what main itself measured
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>
2026-11-27 19:21:38 -05:00
1cd00843d8 README: the status says first what plays: the D3D12 runtime, in the world, at a low frame rate
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>
2026-11-27 19:20:12 -05:00
161f4e0680 README: the clone address is this repository's; what the D3D12 runtime does on the maintainer's PC
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>
2026-11-27 19:20:12 -05:00
c6f39028a6 make_game: --mesh-serial-waves forwards the translator's switch (BUILD-MAKEGAME-MESH-SERIAL-WAVES)
#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>
2026-11-28 07:38:24 +08:00
eac96d744c Merge branch 'port/d3d12-nvidia' into merge/mandy-main 2026-11-27 17:50:38 -05:00
b87abdef57 Merge mandy's main into port/d3d12-nvidia
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>
2026-11-27 17:50:37 -05:00
bbbdf1f383 README: the list of what was taken from aki-runtime
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>
2026-11-27 17:09:19 -05:00
9df168ecbf README: what was taken from aki-runtime (Aki-Developer)
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>
2026-11-27 16:45:30 -05:00
d21d9fb875 README: credit Aki-Developer for sharing aki-runtime
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>
2026-11-27 15:58:58 -05:00
cec0a39a19 Update README.md
Removed broken, old git link & changed ItsNotRexed to ProjectLeonida for the old github link
2026-11-27 14:44:54 -06:00
cf1c34128a Update README.md 2026-11-27 14:55:42 -05:00
a49480b38a Update README.md 2026-11-27 14:44:52 -05:00
10d0a2d94f tools: Leonida Launcher, a Tkinter window to play, set options, manage mods and run tools
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>
2026-11-26 23:59:48 -05:00
8d686309b0 Merge main into integration/boot-combined (RT-BOOT-COMBINED)
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>
2026-11-25 21:49:53 -05:00
6c8a89dea7 docs: the scripted-pad route through the first-run pages to the story load (RT-BOOT-COMBINED)
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.
2026-11-25 17:15:57 -05:00
865e2d7912 Merge commit 'refs/fix2/main' into fix2-653 2026-11-25 16:51:53 -05:00
9832d40f4a Merge pull request #1806 from Ch1mpleo/carry/old-10057
docs: describe runtime Vulkan pipeline cache loading (OLD-10057)
2026-11-25 18:27:09 -03:00
6555c7c4f5 Merge pull request #874 from snain0511/doc-readme-vs-input
README: the VS input layout is measured, not open (DOC-README-VS-INPUT)
2026-11-25 18:26:00 -03:00
4e996c7faf docs: clarify default pipeline cache placement 2026-11-25 19:20:27 +07:00
f9b5591ea1 docs: describe runtime Vulkan pipeline cache loading 2026-11-25 19:20:27 +07:00
039984e6f2 README: the game boots through the story load; no world frame yet (DOC-README-BOOT-STATUS)
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>
2026-11-25 03:51:57 -03:00