diff options
Diffstat (limited to 'runtime/src/main.cpp')
| -rw-r--r-- | runtime/src/main.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/src/main.cpp b/runtime/src/main.cpp index 21551e948..6f7039099 100644 --- a/runtime/src/main.cpp +++ b/runtime/src/main.cpp | |||
| @@ -10,11 +10,11 @@ | |||
| 10 | // The same mapping, then each loaded DLL's TLS callbacks and DllMain(DLL_PROCESS_ATTACH) are run. | 10 | // The same mapping, then each loaded DLL's TLS callbacks and DllMain(DLL_PROCESS_ATTACH) are run. |
| 11 | // | 11 | // |
| 12 | // gta6rt --precompile-pipelines [--threads N] [--big-threads N] [--big-bytes N] [--all] [--smallest-first] | 12 | // gta6rt --precompile-pipelines [--threads N] [--big-threads N] [--big-bytes N] [--all] [--smallest-first] |
| 13 | // [--limit N] [--min-bytes N] [--max-bytes N] [--filter PART]... [--list] | 13 | // [--limit N] [--min-bytes N] [--max-bytes N] [--filter PART]... [--skip-listed] [--list] |
| 14 | // No game: creates the Vulkan device as --run does and builds every compute pipeline of the shader library | 14 | // No game: creates the Vulkan device as --run does and builds every compute pipeline of the shader library |
| 15 | // (LEONIDA_SHADERS) into the pipeline journal and the driver's cache, so a title's first dispatch of a large one | 15 | // (LEONIDA_SHADERS) into the pipeline journal and the driver's cache, so a title's first dispatch of a large one |
| 16 | // does not stall it. Resumable: entries already journaled are skipped (--all: built anyway). See | 16 | // does not stall it. Resumable: entries already journaled are skipped (--all: built anyway). Programs named by |
| 17 | // shims/d3d12_precompile.h. | 17 | // LEONIDA_SKIP_COMPUTE are built too unless --skip-listed is given. See shims/d3d12_precompile.h. |
| 18 | // | 18 | // |
| 19 | // gta6rt --run <exe> [--game-dir DIR] [--overlay DIR] [--trace-d3d12] [--trace FILE] [-- game arguments...] | 19 | // gta6rt --run <exe> [--game-dir DIR] [--overlay DIR] [--trace-d3d12] [--trace FILE] [-- game arguments...] |
| 20 | // The same, then the EXE's own TLS callbacks and its entry point, on a game thread. The game's argv and | 20 | // The same, then the EXE's own TLS callbacks and its entry point, on a game thread. The game's argv and |
| @@ -262,7 +262,7 @@ int usage() { | |||
| 262 | " gta6rt --init <image> [--game-dir DIR] [--overlay DIR] [--mods DIR] [--archetype-lookup RVA[,ARG]] [--view-mode-getter RVA] [--trace-d3d12] [--trace FILE]\n" | 262 | " gta6rt --init <image> [--game-dir DIR] [--overlay DIR] [--mods DIR] [--archetype-lookup RVA[,ARG]] [--view-mode-getter RVA] [--trace-d3d12] [--trace FILE]\n" |
| 263 | " gta6rt --first-run-ui <exe> [--game-dir DIR] [--overlay DIR] [--trace FILE]\n" | 263 | " gta6rt --first-run-ui <exe> [--game-dir DIR] [--overlay DIR] [--trace FILE]\n" |
| 264 | " gta6rt --run <exe> [--game-dir DIR] [--overlay DIR] [--mods DIR] [--archetype-lookup RVA[,ARG]] [--view-mode-getter RVA] [--trace-d3d12] [--trace FILE] [-- game arguments...]\n" | 264 | " gta6rt --run <exe> [--game-dir DIR] [--overlay DIR] [--mods DIR] [--archetype-lookup RVA[,ARG]] [--view-mode-getter RVA] [--trace-d3d12] [--trace FILE] [-- game arguments...]\n" |
| 265 | " gta6rt --precompile-pipelines [--threads N] [--big-threads N] [--big-bytes N] [--all] [--smallest-first] [--limit N] [--min-bytes N] [--max-bytes N] [--filter PART]... [--list] [--via-helper]\n" | 265 | " gta6rt --precompile-pipelines [--threads N] [--big-threads N] [--big-bytes N] [--all] [--smallest-first] [--limit N] [--min-bytes N] [--max-bytes N] [--filter PART]... [--skip-listed] [--list] [--via-helper]\n" |
| 266 | " gta6rt --compile-server [--parent PID] [--threads N] [--idle-threads N] [--idle-exit SECONDS]\n"); | 266 | " gta6rt --compile-server [--parent PID] [--threads N] [--idle-threads N] [--idle-exit SECONDS]\n"); |
| 267 | return 2; | 267 | return 2; |
| 268 | } | 268 | } |
| @@ -290,6 +290,7 @@ int precompile_main(int argc, wchar_t** argv) { | |||
| 290 | else if (a == L"--max-bytes") ok = number(i, options.max_bytes); | 290 | else if (a == L"--max-bytes") ok = number(i, options.max_bytes); |
| 291 | else if (a == L"--all") options.rebuild = true; | 291 | else if (a == L"--all") options.rebuild = true; |
| 292 | else if (a == L"--smallest-first") options.smallest_first = true; | 292 | else if (a == L"--smallest-first") options.smallest_first = true; |
| 293 | else if (a == L"--skip-listed") options.skip_listed = true; | ||
| 293 | else if (a == L"--list") options.dry_run = true; | 294 | else if (a == L"--list") options.dry_run = true; |
| 294 | else if (a == L"--via-helper") options.via_helper = true; | 295 | else if (a == L"--via-helper") options.via_helper = true; |
| 295 | else if (a == L"--filter" && i + 1 < argc) { | 296 | else if (a == L"--filter" && i + 1 < argc) { |