upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/boot.md
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-25 18:18:55 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-25 18:18:55 -0500
commitd4fb292344088e7925ddeb3bbceb5a9ac46de8c2 (patch)
tree551a4e8b93953b3b481b3a30739ca73eb45615e8 /docs/boot.md
parent244387529b6fb4992b601704d32016e7beeadd28 (diff)
parentffcfe68f12891826a2b15e19f31149d8bb44e778 (diff)
Merge main into rt-title-hud-vram-budget
Brings in #2137 (LEONIDA_DEV_OVERLAY), which the next commit extends. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/boot.md')
-rw-r--r--docs/boot.md20
1 files changed, 18 insertions, 2 deletions
diff --git a/docs/boot.md b/docs/boot.md
index 88ef531ed..831787057 100644
--- a/docs/boot.md
+++ b/docs/boot.md
@@ -98,7 +98,8 @@ Useful switches:
98 `ROSETTA_ADVERTISE_AVX=1` instead). The game itself still needs AVX, so this is for the #UD emulation work (see 98 `ROSETTA_ADVERTISE_AVX=1` instead). The game itself still needs AVX, so this is for the #UD emulation work (see
99 [cpu_features.md](cpu_features.md#hosts-without-avx) for what works on a host without AVX). 99 [cpu_features.md](cpu_features.md#hosts-without-avx) for what works on a host without AVX).
100* `LEONIDA_SKIP_INT3=1` (with `--trace`) steps over each int3 in guest code and logs it once per address as an 100* `LEONIDA_SKIP_INT3=1` (with `--trace`) steps over each int3 in guest code and logs it once per address as an
101 `int3_skipped` event, so a boot can be followed past soft asserts (an int3 followed by code that carries on). 101 `int3_skipped` event, so a boot can be followed past soft asserts (an int3 followed by code that carries on). It is
102 read when the trace opens.
102 Diagnostic only: a correct run reaches none, so each skipped address is a finding, not a fix. A failed guest file 103 Diagnostic only: a correct run reaches none, so each skipped address is a finding, not a fix. A failed guest file
103 open is always traced as `file_open_failed` (path, error, caller) when `--trace` is on. 104 open is always traced as `file_open_failed` (path, error, caller) when `--trace` is on.
104* `LEONIDA_STUB_PIPELINES=1` creates a pipeline whose translated shader is missing (no shader library, or no entry 105* `LEONIDA_STUB_PIPELINES=1` creates a pipeline whose translated shader is missing (no shader library, or no entry
@@ -132,13 +133,28 @@ Useful switches:
132 - the time since the first present. 133 - the time since the first present.
133 134
134 A thread of its own sets the text with `SendMessageTimeout`, so a busy window thread never holds a present. 135 A thread of its own sets the text with `SendMessageTimeout`, so a busy window thread never holds a present.
136* `LEONIDA_DEV_OVERLAY=1` (Windows) shows what the runtime is doing in a small click-through window over the top left
137 corner of the title's window, while that window is in front (`runtime/src/dev_overlay.h`): frames and submissions a
138 second, where a submission's CPU time goes, the phase that is running now and for how long, pipeline builds in
139 flight, indirect draws emitted and skipped, cores, memory. The figures cover the last two seconds. It has its own
140 thread, so it also counts while the title presents nothing, and it is in no capture. `LEONIDA_TITLE_HUD` shows frame
141 times and compile times in the title bar instead; both can be on.
135* `DISABLE_RTSS_LAYER=1` and `DISABLE_VULKAN_OBS_CAPTURE=1` when MSI Afterburner or OBS is installed; their 142* `DISABLE_RTSS_LAYER=1` and `DISABLE_VULKAN_OBS_CAPTURE=1` when MSI Afterburner or OBS is installed; their
136 implicit layers add swapchain usage that shows up as validation errors ([testing.md](testing.md), "Known 143 implicit layers add swapchain usage that shows up as validation errors ([testing.md](testing.md), "Known
137 problems"). 144 problems").
138* `--overlay DIR` sends the guest's writes to DIR instead of the default `<game-dir>\overlay` (useful when the 145* `--overlay DIR` sends the guest's writes to DIR instead of the default `<game-dir>\overlay` (useful when the
139 package drive is read-only); the package itself is never written. Set `LEONIDA_WRITE_DIR` to override that folder 146 package drive is read-only); the package itself is never written. Set `LEONIDA_WRITE_DIR` to override that folder
140 for one run (it wins over `--overlay`). For a fresh first-run profile, also set `LEONIDA_SAVE_DIR` to a separate 147 for one run (it wins over `--overlay`). For a fresh first-run profile, also set `LEONIDA_SAVE_DIR` to a separate
141 empty directory for the local game-save provider. 148 empty directory for the local game-save provider. The title's `T:` drive (its temporary drive,
149 where it writes its crash dump `T:\<guid>.dmp` and crash log) is a folder of each process's own inside the overlay,
150 `<overlay>\.gta6rt-temp\<YYYYMMDD-HHMMSS-mmm>-pid<id>` (the process's start time in UTC and its id).
151 The folder is reserved with a create-only `CreateDirectoryW` when `gta6rt` starts the title (or on the first `T:`
152 call): when that name already exists, as after a reused process id in the same millisecond, it takes `-2`, `-3`,
153 ... (up to 1000 names), so a run never writes into a folder that existed before it. The startup line names it
154 (`console paths: GAME: -> ..., writes -> ..., T: -> ...`).
155 Folders of earlier runs are kept, so a run's crash files can be read after it stops; delete them by hand. With
156 one folder for every run, a `CREATE_NEW` of a name an earlier run had left failed with `ERROR_FILE_EXISTS` (80)
157 and no report landed (old upstream issue 7913).
142 158
143### Under Wine on Linux 159### Under Wine on Linux
144 160