From 8b89520b13cfeeb802f7bba28199c1ea70ee2322 Mon Sep 17 00:00:00 2001 From: aznohonza Date: Tue, 1 Dec 2026 06:47:56 +0100 Subject: [PATCH 1/3] docs/running.md: a Linux + Wine + NVIDIA profile that draws world frames (DOCS-RUNNING-LINUX-WINE-NVIDIA) The page has Linux RADV, a Proton NVIDIA report and Windows sections, but no Linux + Wine + NVIDIA profile. This one is a desktop RTX 3060 12 GB with Wine 11.22: it draws the first-run UI at 30 frames/s, loads the story and draws the opening sequence's prison yard, city street and carnival scenes at 1-3 frames per 10-16 s, with host memory at 19-20 GB and up to 23.6 GB. The section carries the build, shader pack, environment (including LEONIDA_STRAY_RO_HEAL=1, without which a run ends at 47 s here) and what to expect, and names the two ends of the carnival scene as known problems: a console value wait held for 101 minutes with the list values on, and a device loss with LEONIDA_LIST_VALUES=0. Every value comes from the RUN blocks posted on #2464, which the section links; no game data is added. AI-assisted. --- docs/running.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/docs/running.md b/docs/running.md index a6c003ba2f..d72248cdd1 100644 --- a/docs/running.md +++ b/docs/running.md @@ -171,6 +171,37 @@ Reported by others: [#1608, comment 7184700506](https://github.com/ubiquitariani The black stretch before it is graphics pipelines of 1-2.6 MB SPIR-V compiling one at a time, 5-10 s each. - **Known problems:** nothing ray-traced is in the picture. +## Linux, Wine, NVIDIA (GeForce RTX 3060 12 GB) + +Reported by others: [#2464, comment 7299367912](https://github.com/ProjectLeonida/mandy/issues/2464#issuecomment-7299367912) +and [comment 7300173397](https://github.com/ProjectLeonida/mandy/issues/2464#issuecomment-7300173397) (desktop, 31 GB +of RAM, no swap, 12 threads; NVIDIA 620.70.10; Debian 13, kernel 6.12.118; Wine 11.22 staging). Not run by us. + +- **Build:** clang-cl + xwin cross-build of `main` `d8ca18240`, RelWithDebInfo. +- **Shaders:** `make_game.py --stages check,shaders,runtime --wave64-emulate on`: 26,503 main, 2,684 library, + 2,713 FSPX, 52 BVH and 12 executable sets, `spirv-val` clean. +- **Pipeline pre-compile:** none. The runs filled a 1.7 GB journal themselves; the opening sequence's carnival scene + alone built 763 graphics and 619 compute pipelines (2,296 modules, 732 MiB of SPIR-V, 45 minutes in + `vkCreate*Pipeline` across the run), and the scene's picture came up as those builds finished. +- **Driver and OS:** no GPU timeout change. The runs sat in a systemd cgroup with `MemoryMax=24G` and no swap; with + the defaults the kernel killed two of them at 22.2-22.3 GB before a world frame. +- **Environment:** `LEONIDA_DEVICE_TYPE=6`, `LEONIDA_MAP_READBACK=1`, `LEONIDA_COMPUTE_WARMUP=0`, + `LEONIDA_SERIAL_BIG_COMPILES=0`, `LEONIDA_FRAME_PACING=1`, `LEONIDA_PRESENT_NO_TEAR=1`, `LEONIDA_SUBMIT_ASYNC=4`, + `LEONIDA_KEYBOARD_PAD=always`, `LEONIDA_ARENA_MB=1024`, `LEONIDA_GEOMETRY_MB=2048`, + `LEONIDA_TITLE_WINDOWS_MB=4096`, `LEONIDA_SKIP_COMPUTE=`, and the title's watchdog off with its + KICK values set. `LEONIDA_STRAY_RO_HEAL=1` is needed on this build and driver: without it a run ended at 47 s + (exit 5) writing to a title page the runtime had marked read-only. +- **Command:** `scripts/run_game_wine.sh` with the environment above (`--visible` for a window). +- **What to expect:** the first-run UI at 30 frames/s, the account picker, then the story load; with a warm journal + the first world frame is 20-34 minutes in. The opening sequence's scenes (the prison yard by day, the city street + at night with its credits, the night carnival scene) draw at 1-3 frames per 10-16 s, 0.06-0.30 frames/s, one to + three submissions a frame, with host memory at 19-20 GB and up to 23.6 GB later in the sequence: 12 GB of VRAM + does not hold the scene, so the runtime spills to host memory (logged once). +- **Known problems:** the carnival scene ends a run in one of two ways. With the list values on, one console value + wait stayed held for 101 minutes with no presents and no queue calls, and the stalled release did not fire; with + `LEONIDA_LIST_VALUES=0` the scene draws further and then the device is lost (five compute queues in flight, and + `VK_EXT_device_fault` gave no address on this driver). What the picture lacks there is not measured. + ## Windows, NVIDIA Reported by others: [#2019](https://github.com/ubiquitarianism/leonida/issues/2019) (RTX 5090 32 GB, driver 616.92, From 6b6f75abbb885fe759c3f323eaefc7a685466084 Mon Sep 17 00:00:00 2001 From: aznohonza Date: Tue, 1 Dec 2026 07:11:10 +0100 Subject: [PATCH 2/3] docs/running.md: source the Linux + Wine + NVIDIA details and index the profile - separate the 22.2 GB run that drew the city night street from the 22.3 GB default-arena run, as the reports do; - say the 1.7 GB journal was warm from three earlier runs, not filled by these runs; - replace the unsourced scene names and the submissions-per-frame count with the reports' words, and give the 47 s STRAY_RO_HEAL observation its provenance; - say that 724 is the maintainers' count and 723 is this pack's, that the skip list takes name fragments and is the ray-tracing programs; - give the full run_game_wine.sh invocation and name the local trace-off change; - index the profile in docs/README.md and point linux_proton.md at it. AI-assisted. --- docs/README.md | 2 +- docs/linux_proton.md | 5 ++++- docs/running.md | 43 ++++++++++++++++++++++++++----------------- 3 files changed, 31 insertions(+), 19 deletions(-) diff --git a/docs/README.md b/docs/README.md index 1bc9ffcbbc..2e9482e626 100644 --- a/docs/README.md +++ b/docs/README.md @@ -13,7 +13,7 @@ method, scope and caveats. No game data is included. | [boot_leads.md](boot_leads.md) | Open leads that may move the retail boot further (TLS at module index 0, feature level at device creation, command-list replay, descriptor words, shader corpus count, frame pacing), each with where it lands, how to implement it and how to test it, and a status table: BL-2, BL-5 and BL-6 are done, BL-3 and BL-4 have open pull requests, BL-1 waits for a retail confirmation. | | [rpf.md](rpf.md) | RPF9 archive layout, the carve tools and the unreadable encrypted TOC. | | [linux.md](linux.md) | Linux in one page: what runs natively and what runs under Wine or Proton, the Ubuntu packages, `Build.sh`, the runtime cross-build, and why there is no native Linux `gta6rt`. | -| [running.md](running.md) | Running the game per platform and GPU (Linux/Wine with AMD, Linux/Proton and Windows with NVIDIA, Windows with AMD, Intel, macOS): build, shaders, pipeline pre-compile, driver settings, environment, what to expect; each value measured by us, reported by others (linked) or TBD. | +| [running.md](running.md) | Running the game per platform and GPU (Linux/Wine with AMD and NVIDIA, Linux/Proton and Windows with NVIDIA, Windows with AMD, Intel, macOS): build, shaders, pipeline pre-compile, driver settings, environment, what to expect; each value measured by us, reported by others (linked) or TBD. | | [testing.md](testing.md) | Running the GPU tests on your own GPU: setup per OS, wave64 emulation, running without a GPU on Mesa llvmpipe, and known problems. | | [gpu_test_results.md](gpu_test_results.md) | Published GPU test results by hardware, driver and commit, with pass, skip and failure counts. | | [modding.md](modding.md) | The mod format: `mods//mod.json`, checked and loaded in name order by `gta6rt`; a swap takes effect once the game's archetype lookup is hooked (needs the executable, RT-5). A mod names game models and holds no game data. | diff --git a/docs/linux_proton.md b/docs/linux_proton.md index 61627b69a9..ace01d88e2 100644 --- a/docs/linux_proton.md +++ b/docs/linux_proton.md @@ -99,7 +99,10 @@ What it does: signal. - **Traces:** `gta6rt --run` with `--trace` and `--trace-d3d12`, a fresh `--overlay` and save folder in the run folder. Every other `LEONIDA_*` variable reaches the runtime unchanged, so `LEONIDA_INPUT_SCRIPT=a@210,a@240` - presses A as above. Arguments after `--` go to `gta6rt`. + presses A as above. Arguments after `--` go to `gta6rt`. The + [Linux, Wine, NVIDIA section of running.md](running.md#linux-wine-nvidia-geforce-rtx-3060-12-gb) reports runs + with a local change that leaves this trace off (`LEONIDA_NO_TRACE_D3D12=1`); `main`'s script always passes + `--trace-d3d12`. - **Summary:** `tools/game_run_summary.py` prints the run time, how it ended, exceptions by code, D3D12 calls by outcome, presents, the most frequent failing calls and the `[rt]` lines by category with numbers masked. It never prints a log line. `--screenshot-every S` captures the game window into the run folder (ImageMagick's `import` and diff --git a/docs/running.md b/docs/running.md index d72248cdd1..e9716da2a7 100644 --- a/docs/running.md +++ b/docs/running.md @@ -180,27 +180,36 @@ of RAM, no swap, 12 threads; NVIDIA 620.70.10; Debian 13, kernel 6.12.118; Wine - **Build:** clang-cl + xwin cross-build of `main` `d8ca18240`, RelWithDebInfo. - **Shaders:** `make_game.py --stages check,shaders,runtime --wave64-emulate on`: 26,503 main, 2,684 library, 2,713 FSPX, 52 BVH and 12 executable sets, `spirv-val` clean. -- **Pipeline pre-compile:** none. The runs filled a 1.7 GB journal themselves; the opening sequence's carnival scene - alone built 763 graphics and 619 compute pipelines (2,296 modules, 732 MiB of SPIR-V, 45 minutes in - `vkCreate*Pipeline` across the run), and the scene's picture came up as those builds finished. -- **Driver and OS:** no GPU timeout change. The runs sat in a systemd cgroup with `MemoryMax=24G` and no swap; with - the defaults the kernel killed two of them at 22.2-22.3 GB before a world frame. +- **Pipeline pre-compile:** none. The runs reused a 1.7 GB journal that three earlier runs had filled; the opening + sequence's night scene alone built 763 graphics and 619 compute pipelines (2,296 modules, 732 MiB of SPIR-V, + 45 minutes in `vkCreate*Pipeline` across the run), and the builds ended within two minutes of the last present. +- **Driver and OS:** no GPU timeout change. The runs sat in a systemd cgroup with `MemoryMax=24G` and no swap. With + the defaults one run was killed at 22.3 GB, 21 minutes in, before a world frame; another had drawn the city night + street when it was killed at 22.2 GB. The 1024/2048 arenas hold the earlier world runs at 19-20 GB, but the later + shots still reached 23.6 GB. - **Environment:** `LEONIDA_DEVICE_TYPE=6`, `LEONIDA_MAP_READBACK=1`, `LEONIDA_COMPUTE_WARMUP=0`, `LEONIDA_SERIAL_BIG_COMPILES=0`, `LEONIDA_FRAME_PACING=1`, `LEONIDA_PRESENT_NO_TEAR=1`, `LEONIDA_SUBMIT_ASYNC=4`, `LEONIDA_KEYBOARD_PAD=always`, `LEONIDA_ARENA_MB=1024`, `LEONIDA_GEOMETRY_MB=2048`, - `LEONIDA_TITLE_WINDOWS_MB=4096`, `LEONIDA_SKIP_COMPUTE=`, and the title's watchdog off with its - KICK values set. `LEONIDA_STRAY_RO_HEAL=1` is needed on this build and driver: without it a run ended at 47 s - (exit 5) writing to a title page the runtime had marked read-only. -- **Command:** `scripts/run_game_wine.sh` with the environment above (`--visible` for a window). + `LEONIDA_TITLE_WINDOWS_MB=4096`, `LEONIDA_SKIP_COMPUTE=,...` with the names of this pack's 723 + library compute programs of 2 MiB or more (the page's 724 is the maintainers' count; 676 of theirs are + ray-tracing resolve), and the title's watchdog off with its KICK values set. `LEONIDA_STRAY_RO_HEAL=1` is needed + on this build and driver: without it a run ended at 47 s (exit 5) writing to a title page the runtime had marked + read-only. That last detail is from an earlier run on the same machine, not in the two linked comments. +- **Command:** `scripts/run_game_wine.sh --build --exe + --game-dir --shaders --out --seconds 3600 --visible`, with + the arguments described in [linux_proton.md](linux_proton.md#running-the-game-under-wine-with-one-command). These + runs used a local change to the script: `LEONIDA_NO_TRACE_D3D12=1` makes it pass no `--trace-d3d12`, while `main` + always passes it; the trace costs a mutex, an fprintf and an fflush per D3D12 call, so a run with `main`'s script + writes it too. - **What to expect:** the first-run UI at 30 frames/s, the account picker, then the story load; with a warm journal - the first world frame is 20-34 minutes in. The opening sequence's scenes (the prison yard by day, the city street - at night with its credits, the night carnival scene) draw at 1-3 frames per 10-16 s, 0.06-0.30 frames/s, one to - three submissions a frame, with host memory at 19-20 GB and up to 23.6 GB later in the sequence: 12 GB of VRAM - does not hold the scene, so the runtime spills to host memory (logged once). -- **Known problems:** the carnival scene ends a run in one of two ways. With the list values on, one console value - wait stayed held for 101 minutes with no presents and no queue calls, and the stalled release did not fire; with - `LEONIDA_LIST_VALUES=0` the scene draws further and then the device is lost (five compute queues in flight, and - `VK_EXT_device_fault` gave no address on this driver). What the picture lacks there is not measured. + the first world frame is 20-34 minutes in. The opening sequence draws at 1-3 frames per 10-16 s, 0.06-0.30 + frames/s, with host memory at 19-20 GB and up to 23.6 GB later in the sequence. 12 GB of VRAM does not hold the + scene; the earlier runs spilled VRAM to host memory once the 12 GB card was full. +- **Known problems:** the night scene ends a run in one of two ways. With the list values on, one console value + wait stayed unmet for 101 minutes with no presents and no queue calls, and no gate was released unmet, including + in the stalled case; with `LEONIDA_LIST_VALUES=0` the scene draws further and then the device is lost (five + compute queues in flight, and `VK_EXT_device_fault` gave no address on this driver). What the picture lacks there + is not measured. ## Windows, NVIDIA From 5ef76aa9aa0d5d633892fbfeb5e2f4a739fd1e4a Mon Sep 17 00:00:00 2001 From: aznohonza Date: Tue, 1 Dec 2026 07:35:25 +0100 Subject: [PATCH 3/3] docs/running.md: say cgroup memory for the measured 19-20 GB The runs report the cgroup's peak, as the RUN blocks do; the VRAM spilled to host memory is a different figure. AI-assisted. --- docs/running.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/running.md b/docs/running.md index e9716da2a7..b155f4d76a 100644 --- a/docs/running.md +++ b/docs/running.md @@ -203,7 +203,7 @@ of RAM, no swap, 12 threads; NVIDIA 620.70.10; Debian 13, kernel 6.12.118; Wine writes it too. - **What to expect:** the first-run UI at 30 frames/s, the account picker, then the story load; with a warm journal the first world frame is 20-34 minutes in. The opening sequence draws at 1-3 frames per 10-16 s, 0.06-0.30 - frames/s, with host memory at 19-20 GB and up to 23.6 GB later in the sequence. 12 GB of VRAM does not hold the + frames/s, with cgroup memory at 19-20 GB and up to 23.6 GB later in the sequence. 12 GB of VRAM does not hold the scene; the earlier runs spilled VRAM to host memory once the 12 GB card was full. - **Known problems:** the night scene ends a run in one of two ways. With the list values on, one console value wait stayed unmet for 101 minutes with no presents and no queue calls, and no gate was released unmet, including