Commit Graph

6308 Commits

Author SHA1 Message Date
895c472faa Merge pull request #3078 from MoonEyes/carry/934
awc_shorts: refuse a catalog that would overwrite an input bank (carry of #934)
2026-12-02 10:26:51 +00:00
7a8fbc8235 Merge pull request #3060 from MoonEyes/carry/693
pe_inspect: parse and validate PE export forwarders table (OLD-9768, carry of #693)
2026-12-02 10:26:33 +00:00
5ec08c383f Merge pull request #2813 from TheGeogeo/d3d12-gate-memory-series
gate: memory.csv and a pile-up's numbers beside the summary (D3D12-GATE-MEMORY-SERIES)
2026-12-02 10:17:22 +00:00
80910637f1 Merge pull request #2812 from TheGeogeo/d3d12-gate-memory-stop
gate: a memory stop ends a run before memory runs out (D3D12-GATE-MEMORY-STOP)
2026-12-02 09:49:18 +00:00
2948cf3e49 awc_shorts: refuse a catalog collision before creating the output folder
Review follow-up from #934: the bank export directory check ran after
os.makedirs, so a refused run left an empty output folder. Both
collision checks now run first, and a test checks that out/ is not
created.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 10:47:43 +01:00
92c713e762 Merge commit 'refs/pr-all/934' into carry/934
# Conflicts:
#	tests/test_awc_shorts.py
2026-12-02 10:47:42 +01:00
c681cd9261 Merge main into #693: keep resources, unverified imports and system-DLL notes next to forwarders and pdata
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-02 08:12:56 +01:00
d9ac7f6f0c Merge remote-tracking branch 'origin/main' into feat/launcher-update
# Conflicts:
#	tools/leonida_launcher.py
2026-12-02 08:07:23 +01:00
229d352ee3 Merge pull request #3058 from OreoFR/carry/hwrt-2972
d3d12: hardware ray tracing on DXR 1.1 (LEONIDA_HW_RT, off: a trial) - carry of #2972
2026-12-02 06:54:01 +00:00
094be1f323 launcher: show an update beside PLAY, not only in the status bar
The first window test showed the bar line at the very bottom, easy to
miss, and its text pointed at a button "above" that was beside it. An
update now shows as a framed "Update available: N new commits" with its
Update button next to PLAY. The bar keeps the other notes (zip copy, no
git, a failed check).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 07:44:39 +01:00
52e2eae670 launcher: check for updates at start and update in one click (LAUNCHER-UPDATE)
At start the launcher runs git fetch in its folder. When the clone is
behind its upstream, the Play page says how many new commits there are
and shows an Update button. Update runs this file's own --update mode:
git pull --ff-only, then a rebuild of the runtime when d3d12/ changed,
with the output streamed like the other tools.

A copy downloaded as a zip has no .git; the launcher says that updating
needs a git clone. A Settings box turns the check off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 07:38:08 +01:00
c43f309985 launcher: Precompile every pipeline ticks Prepare shaders (LAUNCHER-PRECOMPILE-ALL-NEEDS-PREPARE)
switch_args passes -PrecompileAll only with the shader preparation on, so the
new box did nothing when Prepare shaders before starting was off. A player hit
this right after #2986. Ticking the first box now ticks the second, and turning
the preparation off clears the first. A note line under the options says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 07:25:20 +01:00
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
0e5ebd0c69 gate: the summary even when memory.csv cannot be written, the slope up to the stop (review)
`summary` wrote memory.csv before summary.json, so a memory.csv open in another program left no
summary and exit 1. A file it cannot write or remove is now said on stderr, `series` is null and
summary.json is written. The private bytes' slope counted the memory lines written while the title
ends after the stop request; it now covers the world up to the stop, as the frame rates do. New tests:
the 2 s window and the empty cells of memory.csv, its LF line ends, the slope with lines after the
stop and with fewer than 3 lines in the world, and a memory.csv that cannot be written. The census
sentence's contract is one key over the whole part WAITS reads, the ", " between its two numbers too.
The docs name every video memory line the peak counts (the swap chain made, its buffers made again,
a budget change of 256 MB or more) and when the slope and `series` are null.
2026-12-02 04:42:49 +01:00
01203fb3bf gate: a negative memory limit is off, and the poll's order tested in full (review)
A negative -StopOverBudgetSeconds stopped every run at its first video memory line: 0 s over the budget
passed a negative limit. Every limit is now off at 0 or less, with a test for each, and a line at
exactly the private limit is tested not to stop. The poll test gets a memory limit at the time limit
(memory wins), and the script text test checks the target and time limits the loop passes and that the
memory stop's sentence reaches the stop event. The docs give the poll's whole order (a STOP file and the
world time at the same check give `target`), say that `world_time_short` and `world_not_reached` are
not added to `memory_stop`, and name `memory.stop_limits`.
2026-12-02 04:42:49 +01:00
bb6ff13127 gate: no stale memory.csv, and the docs say what the series holds (review)
`write_series` returned before an older memory.csv was touched, so a folder summarized again from a log
without memory lines kept old rows beside `series: null`: it now removes that file. Two tests go through
`main()`: no memory lines writes no file, and an older file goes. The docs list the CSV header, how its
video memory and census columns are picked (the nearest line within 2 s), `reaper_queue_max_at_s` and
`waiting_objects_max`, and that the summary's video memory peak counts every video memory line, the
swap chain's too, so it can come from a line with no row in the CSV. "Not in this version" no longer
lists the time series and the VRAM and RAM peaks. The census line's fixture is the runtime's sentence
as it is now, with the reaper's bound (LEONIDA_REAPER_LIMIT) at its end; the part the parser reads did
not change.
2026-12-02 04:42:49 +01:00
7150b7fe0c gate: memory.csv and a pile-up's numbers beside the summary (D3D12-GATE-MEMORY-SERIES)
Testers read a pile-up by its slope and by the reaper's queue, which the summary's peaks do not show. The
parser now also reads the runtime's census line written with each memory line (objects let go that wait for
their submissions, and the reaper thread's queue) and writes memory.csv beside summary.json: one row per
memory line with the private bytes, the PC's memory free and left to commit, the card's video memory budget
and in use, the shared memory in use and the two queues. The summary's memory block gets the reaper queue
at its longest and when, the most objects waiting, and the least-squares slope of the private bytes in the
world (MB a minute). The census strings join the contract test.
2026-12-02 04:42:49 +01:00
aa75f13197 gate: a memory stop ends a run before memory runs out (D3D12-GATE-MEMORY-STOP)
A memory pile-up has taken a PC's whole Windows down, not only the device, and a fixed 80 GB cap never
triggers on a PC with a 40 GB commit limit. The supervisor now asks `game_gate.py state` for a memory stop,
read from the runtime's latest memory lines: the game's private bytes past -StopPrivateMB (default 90 % of
this PC's commit limit), the PC under -StopCommitLeftMB left to commit for 20 s (default the larger of
128 MB and 0.25 % of the limit), or video memory over the system's budget for -StopOverBudgetSeconds (60).
0 turns one off. The run then stops the same clean way, with the reason `memory`; the limits go into
run.json and the summary, the limit passed into `stop.memory_why`, and the verdict is FAIL `memory_stop`.
`start` forwards the limits to the detached run.
2026-12-02 04:42:48 +01:00
4dfd90c35a Merge pull request #3024 from ProjectLeonida/batch/report-paths-consolidation
tools: batch report_paths consolidation (15 PRs by @breachato)
2026-12-02 01:03:11 +00:00
f10890b34d text_tables: ask report_paths for the report-path guard 2026-12-01 19:44:43 -05:00
a8dd0cc33c skin_streams: ask report_paths for the report-path guard 2026-12-01 19:44:43 -05:00
05e8e6101b instance_lists: ask report_paths for the report-path guard 2026-12-01 19:44:43 -05:00
0921fedb76 anim_clips: ask report_paths for the report-path guard 2026-12-01 19:44:42 -05:00
5236e51b6e restofworld_model_join: ask report_paths for the report-path guard 2026-12-01 19:44:42 -05:00
1502fbe8aa navmesh_decode: ask report_paths for the report-path guard 2026-12-01 19:44:42 -05:00
5821c15ea2 rtti_scan: ask report_paths for the report-path guard 2026-12-01 19:44:42 -05:00
6769d87fc0 rbf0_index: ask report_paths for the report-path guard 2026-12-01 19:44:41 -05:00
84445aebfb odrp_7a: ask report_paths for the report-path guard 2026-12-01 19:44:41 -05:00
d62479edcc rbf0_tree: ask report_paths for the report-path guard 2026-12-01 19:44:41 -05:00
566d74f5f1 ttpf_mips: ask report_paths for the report-path guard
Both output guards compared paths with a private `same_output_path`, a second derivation of `report_paths.same_report_path` that CONTRIBUTING.md asks a report writer to call, and one that missed the helper's folding-volume probe (vfat/exFAT/CIFS).
2026-12-01 19:44:40 -05:00
ec9845c3d1 shader_profile: ask report_paths for the report-path guard
`same_output_path` was a second derivation of `report_paths.same_report_path`, which CONTRIBUTING.md asks a report writer to call, and it missed the helper's folding-volume probe (vfat/exFAT/CIFS). The name stays as a one-line delegation because `tests/test_shader_profile.py` calls it by name.
2026-12-01 19:44:40 -05:00
339066a207 tex_headers: ask report_paths for the report-path guard
`same_output_path` was a second derivation of `report_paths.same_report_path`, which CONTRIBUTING.md asks a report writer to call, and it missed the helper's folding-volume probe (vfat/exFAT/CIFS mounts let `R.json` and `r.json` pass as two reports). The name stays as a one-line delegation because `tests/test_tex_headers_report_paths.py` patches it to count its calls.
2026-12-01 19:44:40 -05:00
5175cc9188 vertex_types: ask report_paths for the report-path guard
The tool carried its own `same_output_path` (realpath, normcase, samefile) while it already imported `report_paths.path_key`, so it answered the report-path question two ways; CONTRIBUTING.md asks a report writer to ask `same_report_path` instead of deriving it again. The private copy also missed the helper's folding-volume probe, so on a Linux mount that ignores case (vfat/exFAT/CIFS) `--json R.json` and `--json r.json` were two paths and the second overwrote the first.
2026-12-01 19:44:40 -05:00
5accec0b72 bvh_index: ask report_paths for the report-path guard
The private same_output_path becomes an alias of report_paths.same_report_path,
and the import keeps same_report_path on its own line: tests/test_report_paths.py
looks for that exact line when the tool is added to SHARED.
2026-12-01 19:44:40 -05:00
4fe371f903 Merge pull request #2968 from aznohonza/tools/summary-end-names
tools/game_run_summary.py: name device lost and title breakpoint in the END words (GAME-RUN-SUMMARY-END-NAMES)
2026-12-02 00:34:35 +00:00
5a8e1db178 Merge remote-tracking branch 'origin/main' into d3d12-hardware-ray-tracing
# Conflicts:
#	d3d12/crates/leonida-gpu/src/descriptor/host.rs
#	d3d12/docs/switches.md
2026-12-02 01:20:51 +01:00
d741a9f8f6 Merge pull request #2992 from MoonEyes/carry/632
exe_checklist: colon-less markers and BOM/shape checks (EXE-CHECKLIST-PARSE, carry of #632)
2026-12-02 00:17:53 +00:00
5d06e4793e Merge pull request #2967 from aznohonza/tools/cgroup-memory-peak
game_run_summary: record the run cgroup's memory peak
2026-12-02 00:07:43 +00:00
c18437b32c exe_checklist: a bold marker run without a colon keeps its words; reject class_id 0
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>
2026-12-02 00:50:01 +01:00
97868b9ce8 exe_checklist: keep the note when a bold marker run closes after it
**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>
2026-12-02 00:05:00 +01:00
f483189624 game_run_summary: the caller-cgroup peak is a lifetime peak
Without a systemd scope the saved value is the caller cgroup's lifetime
peak, not the run's; the summary line says so now.

AI-assisted.
2026-12-01 23:52:29 +01:00
8642cbe542 game_run_summary: pair each skipped int3 with its own breakpoint
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.
2026-12-01 23:41:19 +01:00
56e112a060 Merge main into #632: keep main's doc_notes list handling, the PR's other fixes apply
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 23:37:05 +01:00
002bd88f86 Merge pull request #2876 from kirigayakazima/fix/rpf9dump-util-safe-names
rpf9dump: harden Util.Safe for cross-platform and Windows filenames
2026-12-01 22:35:42 +00:00
c6f253705d Launcher: option to precompile every known pipeline (-PrecompileAll)
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>
2026-12-01 17:30:37 -05:00
ddee96da7e game_run_summary: a skipped int3 is not the title breakpoint
`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.
2026-12-01 23:26:39 +01:00
2b32249727 game_run_summary: a 0X-prefixed exception code is the same code
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.
2026-12-01 23:14:22 +01:00
c37e311384 Merge main into #278: keep both new decode tests
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 23:13:03 +01: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