Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/<folder>/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. |
Expand Down
5 changes: 4 additions & 1 deletion docs/linux_proton.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
40 changes: 40 additions & 0 deletions docs/running.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,46 @@ 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 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=<part of a name>,...` 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 <build folder or checkout> --exe <game executable>
--game-dir <package folder> --shaders <translated library> --out <new run folder> --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 draws at 1-3 frames per 10-16 s, 0.06-0.30
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
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

Reported by others: [#2019](https://github.com/ubiquitarianism/leonida/issues/2019) (RTX 5090 32 GB, driver 616.92,
Expand Down