diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-12-01 09:49:26 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-12-01 09:49:26 -0500 |
| commit | 43c7b343a42bc4ebcee77eebedacfe93143b0b9b (patch) | |
| tree | 6c14e289d864e1578c6b0a20ad8e35909369e670 /docs | |
| parent | 955e7d9cf259aaac3ee198bf8bfe0c568eb8c629 (diff) | |
| parent | cd0c52fcf4cfebedabb936b2524ae43d9155314b (diff) | |
Merge remote-tracking branch 'origin/main' into push/main-1130
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/README.md | 2 | ||||
| -rw-r--r-- | docs/linux_proton.md | 5 | ||||
| -rw-r--r-- | docs/running.md | 40 | ||||
| -rw-r--r-- | docs/testing.md | 7 |
4 files changed, 50 insertions, 4 deletions
diff --git a/docs/README.md b/docs/README.md index 289ff8979..dccea162d 100644 --- a/docs/README.md +++ b/docs/README.md | |||
| @@ -13,7 +13,7 @@ method, scope and caveats. No game data is included. | |||
| 13 | | [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. | | 13 | | [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. | |
| 14 | | [rpf.md](rpf.md) | RPF9 archive layout, the carve tools and the unreadable encrypted TOC. | | 14 | | [rpf.md](rpf.md) | RPF9 archive layout, the carve tools and the unreadable encrypted TOC. | |
| 15 | | [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`. | | 15 | | [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`. | |
| 16 | | [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. | | 16 | | [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. | |
| 17 | | [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. | | 17 | | [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. | |
| 18 | | [gpu_test_results.md](gpu_test_results.md) | Published GPU test results by hardware, driver and commit, with pass, skip and failure counts. | | 18 | | [gpu_test_results.md](gpu_test_results.md) | Published GPU test results by hardware, driver and commit, with pass, skip and failure counts. | |
| 19 | | [progress_dashboard.md](progress_dashboard.md) | A local page of what works, what changed since it last passed and what blocks next: unit and runtime tests, the translator contract by confirmation method, measured imports, corpus counts and, with `--github`, CI and the D3D- items (`tools/progress_dashboard.py`). | | 19 | | [progress_dashboard.md](progress_dashboard.md) | A local page of what works, what changed since it last passed and what blocks next: unit and runtime tests, the translator contract by confirmation method, measured imports, corpus counts and, with `--github`, CI and the D3D- items (`tools/progress_dashboard.py`). | |
diff --git a/docs/linux_proton.md b/docs/linux_proton.md index 8117a01f5..fd73f6cb3 100644 --- a/docs/linux_proton.md +++ b/docs/linux_proton.md | |||
| @@ -106,7 +106,10 @@ What it does: | |||
| 106 | the run folder's `session/cache`, so it is cold; with a kept cache the caller's variables stay. | 106 | the run folder's `session/cache`, so it is cold; with a kept cache the caller's variables stay. |
| 107 | - **Traces:** `gta6rt --run` with `--trace` and `--trace-d3d12`, a fresh `--overlay` and save folder in the run | 107 | - **Traces:** `gta6rt --run` with `--trace` and `--trace-d3d12`, a fresh `--overlay` and save folder in the run |
| 108 | folder. Every other `LEONIDA_*` variable reaches the runtime unchanged, so `LEONIDA_INPUT_SCRIPT=a@210,a@240` | 108 | folder. Every other `LEONIDA_*` variable reaches the runtime unchanged, so `LEONIDA_INPUT_SCRIPT=a@210,a@240` |
| 109 | presses A as above. Arguments after `--` go to `gta6rt`. | 109 | presses A as above. Arguments after `--` go to `gta6rt`. The |
| 110 | [Linux, Wine, NVIDIA section of running.md](running.md#linux-wine-nvidia-geforce-rtx-3060-12-gb) reports runs | ||
| 111 | with a local change that leaves this trace off (`LEONIDA_NO_TRACE_D3D12=1`); `main`'s script always passes | ||
| 112 | `--trace-d3d12`. | ||
| 110 | - **Summary:** `tools/game_run_summary.py` prints the run time, how it ended, exceptions by code, D3D12 calls by | 113 | - **Summary:** `tools/game_run_summary.py` prints the run time, how it ended, exceptions by code, D3D12 calls by |
| 111 | outcome, presents, the most frequent failing calls and the `[rt]` lines by category with numbers masked. It never | 114 | outcome, presents, the most frequent failing calls and the `[rt]` lines by category with numbers masked. It never |
| 112 | prints a log line. `--screenshot-every S` captures the game window into the run folder (ImageMagick's `import` and | 115 | 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 a6c003ba2..b155f4d76 100644 --- a/docs/running.md +++ b/docs/running.md | |||
| @@ -171,6 +171,46 @@ Reported by others: [#1608, comment 7184700506](https://github.com/ubiquitariani | |||
| 171 | The black stretch before it is graphics pipelines of 1-2.6 MB SPIR-V compiling one at a time, 5-10 s each. | 171 | The black stretch before it is graphics pipelines of 1-2.6 MB SPIR-V compiling one at a time, 5-10 s each. |
| 172 | - **Known problems:** nothing ray-traced is in the picture. | 172 | - **Known problems:** nothing ray-traced is in the picture. |
| 173 | 173 | ||
| 174 | ## Linux, Wine, NVIDIA (GeForce RTX 3060 12 GB) | ||
| 175 | |||
| 176 | Reported by others: [#2464, comment 7299367912](https://github.com/ProjectLeonida/mandy/issues/2464#issuecomment-7299367912) | ||
| 177 | and [comment 7300173397](https://github.com/ProjectLeonida/mandy/issues/2464#issuecomment-7300173397) (desktop, 31 GB | ||
| 178 | of RAM, no swap, 12 threads; NVIDIA 620.70.10; Debian 13, kernel 6.12.118; Wine 11.22 staging). Not run by us. | ||
| 179 | |||
| 180 | - **Build:** clang-cl + xwin cross-build of `main` `d8ca18240`, RelWithDebInfo. | ||
| 181 | - **Shaders:** `make_game.py --stages check,shaders,runtime --wave64-emulate on`: 26,503 main, 2,684 library, | ||
| 182 | 2,713 FSPX, 52 BVH and 12 executable sets, `spirv-val` clean. | ||
| 183 | - **Pipeline pre-compile:** none. The runs reused a 1.7 GB journal that three earlier runs had filled; the opening | ||
| 184 | sequence's night scene alone built 763 graphics and 619 compute pipelines (2,296 modules, 732 MiB of SPIR-V, | ||
| 185 | 45 minutes in `vkCreate*Pipeline` across the run), and the builds ended within two minutes of the last present. | ||
| 186 | - **Driver and OS:** no GPU timeout change. The runs sat in a systemd cgroup with `MemoryMax=24G` and no swap. With | ||
| 187 | the defaults one run was killed at 22.3 GB, 21 minutes in, before a world frame; another had drawn the city night | ||
| 188 | 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 | ||
| 189 | shots still reached 23.6 GB. | ||
| 190 | - **Environment:** `LEONIDA_DEVICE_TYPE=6`, `LEONIDA_MAP_READBACK=1`, `LEONIDA_COMPUTE_WARMUP=0`, | ||
| 191 | `LEONIDA_SERIAL_BIG_COMPILES=0`, `LEONIDA_FRAME_PACING=1`, `LEONIDA_PRESENT_NO_TEAR=1`, `LEONIDA_SUBMIT_ASYNC=4`, | ||
| 192 | `LEONIDA_KEYBOARD_PAD=always`, `LEONIDA_ARENA_MB=1024`, `LEONIDA_GEOMETRY_MB=2048`, | ||
| 193 | `LEONIDA_TITLE_WINDOWS_MB=4096`, `LEONIDA_SKIP_COMPUTE=<part of a name>,...` with the names of this pack's 723 | ||
| 194 | library compute programs of 2 MiB or more (the page's 724 is the maintainers' count; 676 of theirs are | ||
| 195 | ray-tracing resolve), and the title's watchdog off with its KICK values set. `LEONIDA_STRAY_RO_HEAL=1` is needed | ||
| 196 | on this build and driver: without it a run ended at 47 s (exit 5) writing to a title page the runtime had marked | ||
| 197 | read-only. That last detail is from an earlier run on the same machine, not in the two linked comments. | ||
| 198 | - **Command:** `scripts/run_game_wine.sh --build <build folder or checkout> --exe <game executable> | ||
| 199 | --game-dir <package folder> --shaders <translated library> --out <new run folder> --seconds 3600 --visible`, with | ||
| 200 | the arguments described in [linux_proton.md](linux_proton.md#running-the-game-under-wine-with-one-command). These | ||
| 201 | runs used a local change to the script: `LEONIDA_NO_TRACE_D3D12=1` makes it pass no `--trace-d3d12`, while `main` | ||
| 202 | always passes it; the trace costs a mutex, an fprintf and an fflush per D3D12 call, so a run with `main`'s script | ||
| 203 | writes it too. | ||
| 204 | - **What to expect:** the first-run UI at 30 frames/s, the account picker, then the story load; with a warm journal | ||
| 205 | 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 | ||
| 206 | 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 | ||
| 207 | scene; the earlier runs spilled VRAM to host memory once the 12 GB card was full. | ||
| 208 | - **Known problems:** the night scene ends a run in one of two ways. With the list values on, one console value | ||
| 209 | wait stayed unmet for 101 minutes with no presents and no queue calls, and no gate was released unmet, including | ||
| 210 | in the stalled case; with `LEONIDA_LIST_VALUES=0` the scene draws further and then the device is lost (five | ||
| 211 | compute queues in flight, and `VK_EXT_device_fault` gave no address on this driver). What the picture lacks there | ||
| 212 | is not measured. | ||
| 213 | |||
| 174 | ## Windows, NVIDIA | 214 | ## Windows, NVIDIA |
| 175 | 215 | ||
| 176 | Reported by others: [#2019](https://github.com/ubiquitarianism/leonida/issues/2019) (RTX 5090 32 GB, driver 616.92, | 216 | Reported by others: [#2019](https://github.com/ubiquitarianism/leonida/issues/2019) (RTX 5090 32 GB, driver 616.92, |
diff --git a/docs/testing.md b/docs/testing.md index ec629ccb3..abfd277cd 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -150,8 +150,11 @@ python -I scripts/red_green.py <pull request number> | |||
| 150 | target dir takes several GB; delete the folder (and run `git worktree prune`) when done. | 150 | target dir takes several GB; delete the folder (and run `git worktree prune`) when done. |
| 151 | - It prints the tests that go from red to green, those that pass on red and fail on green, those that fail on both | 151 | - It prints the tests that go from red to green, those that pass on red and fail on green, those that fail on both |
| 152 | (failing on `main` too), and those found on one side only. The verdict is one of: `red then green` (exit 0), | 152 | (failing on `main` too), and those found on one side only. The verdict is one of: `red then green` (exit 0), |
| 153 | `no red`, `red does not build`, `green fails`, `red not constructible`, `green not constructible`, `no tests ran` | 153 | `no red`, `red does not build`, `green fails`, `red not constructible`, `green not constructible`, `no tests ran`, |
| 154 | (exit 1). `--json` prints all of it. | 154 | `compiler crashed` (exit 1). `--json` prints all of it. |
| 155 | - A crashed compiler is not a build error: rustc or a build script ending with a Windows crash status (such as | ||
| 156 | 0xC0000005, an access violation), an internal compiler error, or a failed allocation. That side builds again once, | ||
| 157 | and the report says so; a second crash gives `compiler crashed`. Run it again later, or on another machine. | ||
| 155 | - `red does not build` is the case the fork-CI steps above call "does not build without the pull request's new | 158 | - `red does not build` is the case the fork-CI steps above call "does not build without the pull request's new |
| 156 | file": the test needs the new code, which does not show that it catches the bug. | 159 | file": the test needs the new code, which does not show that it catches the bug. |
| 157 | - `--crate <name>` adds a crate, `--no-cargo` or `--no-python` leaves one kind out, `--base <ref>` tests on another | 160 | - `--crate <name>` adds a crate, `--no-cargo` or `--no-python` leaves one kind out, `--base <ref>` tests on another |