Triforce v0.7.1

Crash fixes (a load crash from the virtual cores' escape, the upscaler-before-the-bloom crash, out of memory at a file's open), slow motion after a movie fixed, three save files with per-save achievements (ZakyPew), ten more achievements and their own menu group, N64 Classic, native ultrawide output (Kaefergeneral), the community AMD frame-time fixes, the helper threads' calm-scene tuner and benchmark test, update and Linux launcher fixes.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-23 13:12:59 -06:00
parent e6f2f248f2
commit 861702476a
153 changed files with 12615 additions and 1093 deletions

View File

@@ -83,7 +83,7 @@ screen. It costs some GPU time on cards that cull quickly, so it is off unless s
| `HOS_AUDIO=0` | No sound device is opened (the mixer still runs); `scripts/run-vk.ps1` sets it unless `-Sound` |
| `HOS_AUDIO_EFFECTS=0` | The game's plain reverb, delay and biquad filter effects on its mixes and its splitter destinations' biquad filters are accepted and left out, as before they were emulated (the sound unfiltered and at full level: the "Volcano eruption audio bugged" ticket); the I3DL2 reverb still runs. By default they run on the mix buffers in the order the game added them (`host/nn_audio.c` "mix effects"; `tests/test_audio_mix_effects.py`) |
| `HOS_LANGUAGE=<code>` | The game's language for this run, a code from `language.txt` |
| `HOS_OUTPUT_RES=<0..3>`, `HOS_HANDHELD=1`, `HOS_ASPECT=<ratio>` | Over the options file: the output resolution (0 2048x1152, 1 2560x1440, 2 3840x2160, 3 1920x1080), the handheld profile, a picture wider than 16:9 (2.3889 for 3440x1440; the Ultrawide row's 21:9 is 2.3704, 64:27, and its 32:9 3.5556) |
| `HOS_OUTPUT_RES=<0..8>`, `HOS_OUTPUT_SIZE=<w>x<h>`, `HOS_HANDHELD=1`, `HOS_ASPECT=<ratio>` | Over the options file: the output resolution (as `output_res` below), Custom's size (as `output_width` and `output_height`), the handheld profile, and the picture's shape whatever the Output resolution and the Ultrawide row say (a ratio, width over height: 2.3889 is 3440x1440's; the picture is the output's height in that shape, kept to 3840x2160's pixels). The Insert menu shows `HOS_OUTPUT_SIZE` and `HOS_ASPECT` in the rows they set, which then have nothing to choose |
| `HOS_DYNRES=0`, `HOS_REALTIME_STEP=0`, `HOS_TEXT_SPEED=<0..3>` | Over the options file: Resolution 100% (non-zero: Auto), Game speed Per frame (1: Real time), Text speed |
| `RX_VK_FIRST_START_AUTO=1`, `RX_VK_FIRST_START_AUTO=<MB>` | (Triforce, 11-22, the performance audit's PRESENT-46, after Source A's; off by default) A first start sized to the card: with no options file, `RX_VK_LOW_SPEC` not asked and `HOS_DYNRES` not set, a weak card starts with the Render resolution row at 50% in place of Auto, or at 33% for an integrated GPU beside 4 processor threads or fewer (`gpu/vk/first_start.h`, `gpu/vk/vk_menu.cpp` `menu_first_start`, called from `mkwvk_init` once the device is made). Weak is Source A's tier 1: an integrated GPU (a handheld's is one; the `SteamDeck` variable is not read, it took desktops for handhelds), a card without mesh shaders, or 4.5 GB of video memory or less. Only that row is set: the upscaler, the textures and the output stay, and nothing is saved, so each start chooses again until the player saves options. A number over 1 plays a card of that many MB (the lab: `=4096` on a large card). Not set or `=0`: as before. Off until the owner decides what a first start on a weak card gets; unmeasured (Source A states no gain and tried it on one RTX 4070 Ti). One `menu: first start:` line says the choice |
| `HOS_STEP_STEADY=0` | (Triforce, on by default since the lab's A/B; `=0` the mean of the last five as before) The game's real-time step kept steady, after NX2navi's steady step (`host/step_steady.h`, `host/nn_vi.c` `realtime_step`): the mean of the last 12 present intervals without their longest and shortest in place of the mean of the last five (`HOS_REALTIME_WINDOW`), the paced period itself where that mean is within 3% of it, and what the display showed and the game was not given repaid at a 64th a frame, 10% of the step at most (a quarter second owed at most). A cap the game holds steps it by the period exactly, and a hitch is paid back over most of a second instead of in the next five frames (a 50 ms frame at 240: 200 frames of at most 10% more, where the mean of five gave five steps of 13 ms). Game time still follows the clock |
@@ -367,6 +367,7 @@ case-sensitive, and an unknown one is ignored.
| `RX_VK_LAZY_PAYERS=<1..4>` | (Triforce, 4 by default; `=1` as before) How many of the lazy write-back's payments copy at once (`gpu/vk/wb_lazy_payers.h`, NX2navi's `wb_lazy_unlocked`). A payment's copy goes onto the queue after everything submitted so far and its thread waits for it (0.5 to 3 ms each in the owner's sessions, up to 21 ms at a load); with one at a time, a second thread that touched another owed page, or the replay giving a mirror up, waited for the first one's copy to come back before its own went onto the queue. Each payment holds a slot of its own (a command buffer and a fence); the pages of two payments are never the same ones (`gpu/vk/wb_lazy_state.h`), and each copy still goes onto the one queue after everything before it. The 600-submit line `vk: lazy write-back (600 submits)` ends with the payments that waited for a free slot and the most slots in use at once |
| `RX_VK_GEN_SEED=<n>` | The page write generations (`gpu/vk/write_gen.h`) start at `n` and not at 1 (decimal, or hex with `0x`; 2^62 at most). They are 64 bits; the 32-bit ones of earlier builds ran out after days of play, and textures and mirrors then kept old contents. `RX_VK_GEN_SEED=0xFFFF0000` takes a play test across 2^32 within seconds: the log says `the write generations start at` and, at the crossing, `this run has made 4294967296 write generations`, and nothing in the picture should change there |
| `RX_VK_UPSCALE_OFF=1` | (Triforce) The upscaler Off for one run: the game's gameplay upscale networks are not dispatched, their input is stretched linearly into their output (`gpu/vk/upscale_off.h`). Softer than the networks below 100%; only while the game's own upscaler draws (DLSS and FSR take the dispatch first). Not set: as before, the networks run, and on cards that run them on software multiplies the first one is stood in for. The lab's `upoff` phases switch it within a run |
| `RX_VK_N64=<0..2>`, `RX_VK_N64_LINES=<n>`, `RX_VK_N64_LOD=<levels>`, `RX_VK_N64_TV=0\|1`, `RX_VK_N64_MASK=<0..4>`, `RX_VK_N64_FPS=<n>` | (Triforce) N64 Classic for one run, over the Insert menu's N64 Classic row and its Remembered page (`gpu/vk/n64_rules.h`, `gpu/vk/vk_n64.cpp`): 1 Faithful, 2 Remembered (its page's values), 0 off; unset, the row (F7 turns it on and off, but not while the switch is set). Its 3D pass takes every gameplay upscale network's place (`shaders/n64_3d.comp`): the 3D on a grid of 240 lines (480 for Remembered) as wide as the picture's shape, each grid pixel the mean of its footprint, Faithful's at 15-bit colour with the ordered dither, then out to the picture's size, linear along each line and hard between lines. While it draws, DLSS, FSR 3.1 and FSR 4 step aside (the game's own as far as they are concerned) and the game's SMAA is left out (`RX_VK_AA` still goes over that); not on a RenoDX run's RGBA16F scene. `RX_VK_N64_LINES` sets the grid's lines. (Step 3) The texture blur: the scene's tiled material textures sampled that many mip levels coarser (Faithful +2.5, Remembered +1.5, never past the card's `maxSamplerLodBias`), on the upscalers' scene-only path (not the shadow maps, the HUD or the output's passes); `RX_VK_N64_LOD=<levels>` over the preset's, `0` none. (Step 4) The TV at the window, in the filter's place at the window's own pixels, HUD and all (the FPS counter is drawn after it; the options' own screens go under it, below): the screen's curve, the composite colour bleed, the beam across 240 TV lines (wider where bright), the mask (Auto: the slot mask on a picture placed 1440 lines tall or more, none below), the glow from the picture at 1/8, the vignette; not on HDR Native's PQ picture, nor under DLSS frame generation, nor with `RX_VK_UPSCALE=0`. `RX_VK_N64_TV=0` leaves it out, `RX_VK_N64_MASK=<0..4>` (Auto, none, aperture grille, slot mask, shadow mask) picks the mask. (Step 7) The frame rate: Faithful 20, Remembered its page's Frame rate row; the renderer tells the host once a present (`HOS_OPT_N64_FPS`), which paces the game at it from the next frame, no restart (`host/n64_pace.h`, `host/nn_vi.c` `n64_pace_decide`): never above the Frame rate cap, never under 15, not while a movie plays, game time real time. `RX_VK_N64_FPS=<n>` over both presets (0 the cap's); `HOS_N64_PACE=0` keeps the cap's whatever the renderer says. The log says `vi: N64 Classic: frames paced at` at each change. (Step 8) At F7 or a change of the row, half a second of the TV switching off and on (the picture squashed to a bright line, then a dot, and opened again), the 3D, the TV and the frame rate changing at its middle (`n64_tick` once a present); not on HDR Native's picture nor under DLSS frame generation (the choice at once there), and not at a start. `RX_VK_N64_TV_ANIM=0`: the choice at once. (11-22) The options' own screens (the open menu, our tabs over the game's Options screen, the Mods entry) are drawn into a layer of the picture's place that the TV lays over the picture before its steps, so they bend, scan and bleed as the game's own screens under them (`vk_menu.cpp` `menu_tv_layer`, `vk_imgui.cpp` `record_layer`), and the glow's 1/8 copy is made again with them over the picture (else it blurred the game's own panes through their plates); the FPS counter, the notice and benchmark mode's panel stay over it, flat; with HDR on the options stay over it too (their pictures are in HDR10's codes, not the SDR picture's). The mouse is taken through the TV's curve to where the options and the game's own menus were drawn (`n64_rules.h` `screen_point`, `vk_n64.h` `n64_screen_point`; the game's through the renderer's `screen_point`). `RX_VK_N64_TV_MENU=0`: the options over the TV, flat, as before. The log says `vk: N64 Classic:` at its first grid and each new size |
| `RX_VK_STUB_SAME_SIZE=0` | (Triforce, 11-22, the performance audit's GPUWORK-21, after Source B's and Source A's; `gpu/vk/stub_same_size.h`) On unless `0`. A gameplay upscale network that cannot run (left out or not translated: `RX_VK_NO_F16`, a card or driver that cannot build it) is stood in for by its input drawn into its output (`gpu/vk/vk_draw.cpp` `upscale_stub`) also where the two are one size: `9dc98871eb7fc101`, the network of Render resolution 100%, was declined as "no larger than its input" and skipped whole, a black 3D under the HUD. Both gameplay networks now take the typed upscale first (it reads the scene's shared-exponent picture and undoes the network's square-root encoding; it was the 3/4 network's alone), then the blit, which warns of wrong colours for both, then nothing. The picture is the upscaler Off's: softer, none of the network's anti-aliasing. Only where the network cannot run. `0`: the decline, and the 3/4 network alone in the typed upscale, as before. `RX_VK_NO_UPSCALE_STUB=1` still turns the whole stub off; `RX_VK_FORCE_UPSCALE_STUB=2` sends every network through it, for a look |
| `RX_VK_DLSS=0/1/2`, `RX_VK_DLSS_PRESET=<letter>`, `RX_VK_DLSS_LOG=1`, `RX_VK_REFLEX`, `RX_VK_REFLEX_LOG=1`, `RX_VK_ANTILAG=0/1` | NVIDIA DLSS and Reflex, and AMD Anti-Lag 2, for one run (`=-` on Reflex or Anti-Lag 2: its extensions not even enabled): the readme's NVIDIA DLSS section. `RX_VK_DLSS_TRACE=<frames>` logs one frame's large draws every that many frames, `RX_VK_DLSS_DEBUG=motion` shows the motion vectors, `=alternate` the game's own upscale every other frame |
| `RX_VK_FSR4=0/1/2`, `RX_VK_FSR_DIR=<folder>` | AMD FSR 4 for one run (0 never, 1 FSR 4, 2 its Native AA), and another folder for AMD's DLLs (not from `hookshot_env.txt`): the readme's AMD FSR 4 section. `RX_VK_FSR4=1/2` and `RX_VK_DLSS=1/2` go over the Upscaler row, a saved FSR 3.1 too where the engine they ask for runs; `RX_VK_FSR=1` goes over them (one upscaler at a time; `=2`: FSR 3.1 as its Native AA, the 3D at full size). The DLSS trace and debug switches above apply to FSR 4 too, on the frame chain they share |
@@ -393,12 +394,16 @@ case-sensitive, and an unknown one is ignored.
| `RX_VK_CAP_FREE_ASYNC=0` | (Triforce, on by default; `=0` as before) A retired capture buffer the spares cannot keep (past 12 buffers or 768 MB, 32 MB on a card of 6.5 GB or less) is destroyed on a thread of its own (`gpu/vk/vk_memory.cpp` `cap_buf_free`, `destroy_buffer_later`), not in the capture's take on the replay's thread with its locks held: freeing a 64-256 MB host-cached buffer makes the driver unmap and release every page, the `retires` part of a `vk: slow capture take` line. Only buffers the GPU is done with get there; the memory comes back a moment later. The 600-take line counts the buffers and MB handed over. With no thread to be had they are destroyed where they were retired |
| `RX_VK_PARALLEL=<0..8>`, `RX_VK_PARALLEL_AUTO=<2..8>` | The parallel replay: a frame's large command buffers recorded on that many threads, always, or wherever short trials as the game runs find it faster than the replay thread alone; `RX_VK_PARALLEL=0`: never. The Debug tab's Replay helper threads row is the second without an environment to set (`replay_helper_threads=` 1 to 7 for 2 to 8 threads); either switch goes over the row. The row's Automatic (8), which it is unless the options file says otherwise, is the count `gpu/vk/replay_threads.h` gives the PC: none with four cores or fewer or on AMD's driver for RDNA 1 and 2, 2 threads with five to seven cores, 3 with eight or more. The log says at the start what was chosen (`replay helper threads:`) and at each trial which way is in use (`parallel replay, trial`). Between trials the tuner's rule (`gpu/vk/replay_threads.h` `rule`) judges every 120 frames on the replay thread alone: where the replay is plainly the frame's limit (70% of the frame or more) and the helper threads would take at least 1 ms and a tenth of the frame off it, never counting below the GPU's time (the game waits for each frame's GPU work), they are turned on without a trial; where they cannot pay (no command buffer large enough to cut, the GPU's time about as long as the replay's, or the replay under 60% of the frame: the game's own threads are its limit) no trial is made while that holds; trials decide the rest, and a trial that takes the helpers back off holds the rule's "on" for 3,600 presents. The log says so (`parallel replay, the rule`) when its verdict changes. `RX_VK_PARALLEL_RULE=0`: trials only, as before. With DLSS or FSR on, for upscaling or frame generation, the dry pass tells their hooks in the draws in stream order, and each command buffer from the first draw or dispatch that takes what they noted (the upscale, or the engine's point before the bloom) on is recorded in order after the segments before it (`gpu/vk/stream_order.h`); `RX_VK_PARALLEL_TEMPORAL=0`: the replay thread records alone then, as before. The frame statistics' `a frame's parallel replay:` line says in how many frames the threads recorded, the command buffers in segments and alone (and why), and the time in them; the next one (`its parts`) where that time went: the setup before the threads begin, how soon each command buffer's first segment reached the GPU, the helper threads' wake-up, each command buffer's longest segment, the replay thread's wait, the submits, the recording lock's waits, and the segments' GPU time (the `GPU time` line counts the segments too; it left them out). After each trial's line a `trial N's parts` line gives its three parts' frame, replay thread's time, GPU time, the rest of the frame, full barriers and draws, and the helper threads' parts. That header lists what an audit of the parallel replay found and fixed, and what is left. `RX_VK_NO_DRY_COPIES=1`: the dry pass does not mark what copies and texture clears write, as before. The replay thread records the next segment to submit itself when no helper thread has begun it (it only waited before, on the core kept for it); `RX_VK_PARALLEL_OWN=0`: it waits for the helper threads, as before. `RX_VK_PARALLEL_SEG=<32..>`: the draws and dispatches a segment is cut for (160); `RX_VK_PARALLEL_SEGS=<2..12>`: the most segments a command buffer is cut into (6), without which a smaller `RX_VK_PARALLEL_SEG` cuts no finer once a command buffer has six segments' worth |
| `RX_VK_PARALLEL_BACKOFF=0` | The tuner's trials as before: one every 1,800 presents after one that kept the way, each with 104 frames the other way. With the back-off (the default, `gpu/vk/replay_threads.h` `Tuner`) each trial that keeps the way, the other way longer than both of its own parts, puts the next one off twice as long (3,600, 7,200, then 14,400 presents at most; a margin of 10% or more counts twice), one too close to tell keeps the old interval (the first such one after a change of scene or way: 900 presents), and once the way has held so the other way is tried for 64 frames, not 104; a short trial that finds the other way shorter changes nothing itself, a full trial follows at once. The next trial comes early (900 presents after the last one at the soonest, never while the rule says no trial) when the scene clearly changes: two windows of 120 frames in a row whose draws moved by a quarter (200 at least) or whose replay or GPU time moved by 30% (1 ms at least) from the first window after the way was set, or a trial whose first and last parts did. In the lab's steady Market a trial came every ~2,090 presents, each ~100 frames 1.9 ms longer; the trial lines now end with when the next may come, and `parallel replay, the scene changed` says when one was brought forward |
| `RX_VK_TUNER_SETTLED=0` | The tuner's rule judges every window and a trial the scene changed under decides, as before. With settled scenes only (the default, `gpu/vk/replay_threads.h` `Tuner`, after Kaefergeneral's #dev-fixes post: on his 5900X and RTX 3090 the rule turned the helper threads on in an area's load and the first trial after the arrival kept them, and Automatic was 6 to 10% slower than Off) the rule judges a window of 120 frames only if the one before it describes the same scene (its draws within a quarter, 200 at least, its replay and GPU times within 30%, 1 ms at least: the back-off's test), so a load's window and the first after it get no verdict and the rule's "on" comes a window after a scene settles; a trial whose first and last parts moved so changes nothing, either way, and the next comes 120 presents after a window like the one before it, not 900 or more later. The trial's line says so (`the scene changed under it`), and `parallel replay, the scene settled` when the next is set |
| `RX_VK_TUNER_SETTLED=0` | The tuner's rule judges every window and a trial the scene changed under decides, as before. With settled scenes only (the default, `gpu/vk/replay_threads.h` `Tuner`, after Kaefergeneral's #dev-fixes post: on his 5900X and RTX 3090 the rule turned the helper threads on in an area's load and the first trial after the arrival kept them, and Automatic was 6 to 10% slower than Off) the rule judges a window of 120 frames only if the one before it describes the same scene (its draws within a quarter, 200 at least, its replay and GPU times within 30%, 1 ms at least: the back-off's test), so a load's window and the first after it get no verdict and the rule's "on" comes a window after a scene settles; a trial whose first and last parts moved so changes nothing, either way, and the next comes 120 presents after a window like the one before it, not 900 or more later. The trial's line says so (`the scene changed under it`), and `parallel replay, the scene settled` when the next is set. Between trials the scene is calm while two windows in a row of the way in use describe one scene: a trial due waits for a calm scene (900 presents at most), none begins where nothing is cut (a loading screen), and after a trial the scene moved under the next is never more than 900 presents late. The rule's "on" holds only for the scene it judged: the first window that moved from the first with the helper threads on takes them back off (`the rule's "on" withdrawn`), and the rule judges the new scene; and the rule's "on" needs three windows in a row, each within those margins of the first of them (an arrival whose texture load comes down a little each window passes two alike, not three) |
| `RX_VK_RECORDER=thread`, `=defer`, `=sync`, `=off` | (unset: `thread` on an NVIDIA GPU with 12 logical processors or more, and on an AMD GPU with 6 physical cores or more in the process's affinity but for AMD's Windows driver for RX 5000 and RX 6000 (`gpu/vk/recorder_auto.h`); else off. The log's `vk: recorder thread on/off by default` line says which rule applied; `RX_VK_LAB_AB=norec` makes the calls directly in its phases, to measure it) `thread`: the replay thread's `vkCmd*` calls packed with copies of their arguments into a ring and made by a recorder thread of their own, in order (`gpu/vk/vk_recorder.h`); the replay thread waits for it at every command buffer begin, end and reset, submit, wait, readback and destruction. Beside the Replay helper threads too (no longer refused with `RX_VK_PARALLEL`): a parallel replay's segments make their calls themselves, after the ring has been run (`segments_begin`), and the recorder is idle while they record. With it on, the frame statistics' `a frame's recorder thread` line says how many of the replay's calls it made a frame and in how long, and how long the replay thread waited for it; what it saves is the replay time line's `commands` with it against without it. `defer` and `sync` are its test steps (held and run on the same thread). `RX_VK_RECORDER_RING_MB` (8), `RX_VK_RECORDER_SPIN_US`, `RX_VK_RECORDER_STATS=0`, `RX_VK_RECORDER_POISON=1`, `RX_VK_RECORDER_PIN` (`next`, `sibling` or a mask) |
| `RX_VK_REPLAY_PRIO=0` or `1` | (Triforce, on by default, after NX2navi's `recorder_prio`; `=0` as before) A thread runs at the highest priority while it replays the game's frames (the submitting thread's replay and its capture, the present, the stopped work the order thread lets on: `gpu/vk/vk_replay.cpp` `ReplayPin`) and gets its own priority back after, so the game's code it runs between replays keeps the game's priority; the core kept for the replay is kept from the game's threads only, and the helper threads and the capture's copy helpers (above normal) outranked a replay at the game's priority there. A thread at that priority or above already is left alone. The replay thread of `RX_VK_ASYNC=1` and the recorder thread of `RX_VK_RECORDER=thread` take the level for good. `=1`: above normal. The log's `vk: a thread that replays runs at` line says which (`gpu/vk/replay_prio.h`) |
| `RX_VK_REPLAY_PIN_SOFT=0`, `=2` | (Triforce, 11-22, the performance audit's THREAD-09, after Source A's; Windows) A thread is pinned while it replays to the core the host keeps for the replay, and that core is kept from the game's threads, not from other programs': where another program's high-priority thread holds it, the pinned replay waits for it, ready to run (Source A, a 6+8-core hybrid processor with an overlay service at priority 15: 14 to 37 frames over 40 ms in a 40 s run, none with this). Not set: on a processor with cores of more than one kind the pin is soft: the thread may run on the reserved core and on the fastest-kind cores among its own processors, the reserved core's last logical processor is its ideal one, and the core it is on when the pin starts is left out so that it moves at once; its affinity and ideal processor come back after the replay. The replay thread of `RX_VK_ASYNC=1` gets the same processors for good. A processor of one kind of core keeps the strict pin, and nothing changes there. `0`: the reserved core alone everywhere, as before; `2`: soft everywhere (the lab; the knob `pinsoft` of `RX_VK_LAB_AB` does it by phases). A thread of another program that wakes on the core every millisecond moves the replay again and again (Source A: 54.3 against 44.6 fps, one run each): `0` is for that. The log's `vk: a replay's pin is` line says which (`gpu/vk/replay_pin.h`, `gpu/vk/vk_replay.cpp` `ReplayPin`, `replay_pin_soft`) |
| `HOS_VCORES=0`, `HOS_CORES=<1..8>`, `HOS_RESERVE_CORE=0` | No virtual cores; the cores the game sees (6); no core kept for the replay (one is, with 8 or more logical processors) |
| `HOS_VCORES=0`, `HOS_CORES=<1..8>`, `HOS_RESERVE_CORE=0`, `=1` | No virtual cores; the cores the game sees (6); no core kept for the replay (one is, with 8 or more logical processors). (Triforce, 11-22, the performance audit's THREAD-49, after Source A's) On the cache die of a two-die X3D processor with SMT off none is kept unless `HOS_RESERVE_CORE=1` asks for it or the replay has a thread of its own (`RX_VK_ASYNC=1`): the game then has all 8 of the die's cores (Source A, a 9950X3D with SMT off: 59.8-59.9 fps with none kept against 56.9-57.4 with one). The log's `cpu: no core kept for the replay on the cache die` line says so. With SMT on and on every other processor nothing changes (`host/hos_x3d.h` `hos_x3d_keep_replay_core`) |
| `HOS_L3_HOME=0` | (Triforce, 11-23, Windows) On a processor with two or more L3 caches of the same size and 6+ cores under the first (a Ryzen 9 5900X, 5950X, 7900X, 7950X, 9900X, 9950X), the core kept for the replay is the first die's last core, not the processor's last on the second die, and the game's main and presenting threads are kept on the first die's other cores, so that what the main thread writes is in the L3 the replay reads it from; the game's other threads, the renderer's helpers and the driver's stay where Windows puts them. Nothing with one L3, with L3 caches of different sizes (`host/hos_x3d.h` has those), with fewer than 6 cores under the first, or with more than one processor group. The log's `cpu: logical processors ... share one of` line says what was found. `0`: as before (`host/hos_l3_home.h`, `host/hos_thread.c`, `tests/test_l3_home.py`) |
| `RX_VK_DYNRES_UNION=0` | (Triforce, 11-23) Resolution Auto's clock takes the frames' GPU time as the union of the recordings' timestamp intervals, each moment once (`gpu/vk/gpu_busy.h`). Their sum, as before with `0`, counted again the overlaps of AMD's first timestamps, written while the recording before still runs: 14.9 ms against a 7.8 ms span on an RX 6700 XT, and Auto drew the 3D at 854 x 480 on a card half idle. The union still counts a recording's waits on the GPU for events the CPU sets later (19.8 ms against a 5.9 ms span on the same card), so while the host does not wait for the GPU (its waits on all threads, `gpu_wait_kinds.h`, the compositor's image excluded: the card is the limit from 2 ms a frame on average, until they fall under 1 ms) the clock says at most the replay's span: only a card that holds the frame back steps the 3D down. `0` takes both away. The log's `vk: dynamic resolution's clock` line says which (`gpu/vk/vk_replay.cpp` `ts_dyn_present`, `tests/test_gpu_busy.py`) |
| `RX_VK_ACQUIRE_AHEAD=0`, `=1` | (Triforce, 11-23, Windows) On AMD's driver the present thread (`RX_VK_PRESENT_THREAD`, wanted for this) acquires the next swapchain image right after its present and waits for it to be free there, while the presenting thread replays the frame; `present_image` then finds the image held and free and records its blit at once. An RX 6700 XT (26.11.2) waited 2.4 to 4.2 ms of every frame for the image in `present_image` (the pacing's wait in the present line), 16% of the presenting thread in a profile: AMD presents through DXGI and the image comes back with the compositor's refresh. Only with the acquire's fence (`RX_VK_ACQUIRE_FENCE`), without DLSS frame generation; nothing while an image is held or a resize or lost surface waits. A `vk: the next image acquired ahead` line every 600 presents. `0`: off; `1`: on any card (`gpu/vk/vk_replay.cpp` `acquire_ahead`, `tests/test_acquire_ahead.py`) |
| `RX_VK_QUERY_RING=0` | (Triforce, 11-23) A recording's GPU timestamps are read from a mapped, host-coherent ring the GPU copies them into, not with `vkGetQueryPoolResults` (about 0.6 ms a frame on AMD's Windows driver on the replay thread, and a recorder boundary with `RX_VK_RECORDER=thread`): a slot's next use copies its last use's timestamps, each with its availability word, before it resets them, behind a transfer-to-host barrier; the slot's turn after that reads them, so the GPU time arrives a turn of the ring later (48 recordings). The upload command buffer's timestamps are read as before. Not without host-coherent memory. `0`: as before (`gpu/vk/vk_replay.cpp` `query_ring_make`, `gpu_time_begin`, `gpu_time_collect`; `tests/test_query_ring.py`) |
| `HOS_AV1=mf`, `HOS_AV1_MISSING=1` | (Triforce, 11-22, the performance audit's IO-32; Windows) The game's AV1 movies on Media Foundation first (Microsoft's AV1 Video Extension), as before, and on dav1d only where the PC has no such decoder. Without it dav1d goes first where the FFmpeg the build links has libdav1d, as on Linux, and Media Foundation where it has not or where libdav1d does not open (`host/video_av1.h`, `host/nn_video.c` `dec_init_sized`): Media Foundation's path decodes in software on every GPU (`host/mf_av1.c` takes the synchronous decoder). `HOS_AV1=dav1d`, the old way to ask for dav1d first, is the default now. `HOS_AV1_MISSING=1`: Media Foundation as if the extension were missing. Each movie logs one line at its Stop, Flush or its decoder's end: its pictures, the decoder, the mean and the worst time to decode a submission, and the pictures skipped to catch up (`host/video_movie.h`). The two decoders were not timed against each other in the game |
| `HOS_VIDEO_RGBA=1` | (Triforce, 11-22, the performance audit's IO-36) Every planar 4:2:0 movie picture (libdav1d's) is converted to RGBA when it is decoded, as before: a swscale pass, an 8 MB allocation and an 8 MB row copy for a 1080p picture, on the movie thread. Without it such a picture is kept as NV12 alone, as Media Foundation's NV12 pictures already were, and its pool makes the RGBA only if the game reads RGBA, which this game's movie library does not; planar 4:2:0 with alpha is converted at once either way. The NV12 buffer is zeroed only for an odd size or a format that is not copied into it, and U and V are interleaved 16 pairs a step with SSE2 (`host/video_nv12.h`, `host/nn_video.c` `queue_frame`). The movie's line in the log (IO-32) has the time a picture took with either. Not timed in the game |
| `HOS_VIDEO_UNBOUNDED_CATCHUP=1`, `HOS_VIDEO_NO_CATCHUP=1` | (Triforce, 11-22, the performance audit's THREAD-82) The movie decoder's acquire skips the pictures behind the movie's clock and decodes the next ones to skip them too. `HOS_VIDEO_UNBOUNDED_CATCHUP=1`: with no bound but a guard of 600 steps, as before: with a decoder slower than the movie (19.5 ms a picture against 16.7) each picture decoded to catch up puts the clock further ahead, so an acquire decoded up to about 300 pictures with its lock held, threw them away, and the next started further behind. Without it each decode that gives a picture is timed, about the last 8 kept as one number, and the acquire stops decoding ahead when that number is more than the gap between two pictures (from the pictures' own times) or once it has decoded for one gap, and shows the late picture it has (`host/video_catchup.h`, `host/nn_video.c` `dec_acquire`): such a movie falls behind its sound instead of stalling, and its line in the log says "slower than it plays". A decoder faster than the movie catches up as before, a few pictures an acquire. `HOS_VIDEO_NO_CATCHUP=1`: no picture skipped at all (the movie in slow motion under 60 fps). Not run in the game |
@@ -542,10 +547,11 @@ number is not the obvious one:
| `frame_pacing` | 0 Off, 1 frames on an even line. With `steady_frame_rate`, the Frame pacing row (`gpu/vk/merged_rows.h`): Off is 0 and 0, Even 1 and 0, Steady (any rate) 1 and 1, Steady (refresh steps) 1 and 2 |
| `steady_frame_rate` | 0 Off, 1 any rate (the cap, then 200, 180, 160, 144, 120, 110, 100, 90, 80, 72, 66, 60, 55, 50, 45, 40, 36, 30 under it), 2 whole divisions of the display's refresh rate under the cap, from 30 up (`host/pace_steady.h`) |
| `resolution` | 0 Auto, 1 100%, 2 75%, 3 67%, 4 50%, 5 58%, 6 33% (with DLSS and FSR: 3 Quality, 5 Balanced, 4 Performance, 6 Ultra Performance; their Native (100%) is `dlss` 2, 5 or 6) |
| `output_res` | 0 2048x1152, 1 2560x1440, 2 3840x2160, 3 1920x1080, 4 5120x1440, 5 5120x2880, 6 5120x2160, 7 1536x864 (the handheld profile; before `options_version` 8 it was `handheld_profile=1`, read as 7) |
| `ultrawide` | 0 16:9, 1 16:10, 2 21:9, 3 32:9 (before `options_version` 6, 1 was the monitor's shape: read as the nearest of the four, `gpu/vk/ultrawide_rows.h`) |
| `output_res` | 0 2048x1152, 1 2560x1440, 2 3840x2160, 3 1920x1080, 4 5120x1440, 5 5120x2880, 6 5120x2160, 8 Screen, 9 Custom (`output_width` x `output_height`), 7 1536x864 (the handheld profile; before `options_version` 8 it was `handheld_profile=1`, read as 7) |
| `ultrawide` | 0 16:9, 1 16:10, 2 21:9, 3 32:9, 4 4:3 (before `options_version` 6, 1 was the monitor's shape: read as the nearest of the first four, `gpu/vk/ultrawide_rows.h`) |
| `hdr`, `renodx_hdr` | the HDR row (`gpu/vk/merged_rows.h`): `hdr` 0 Off, 1 Expanded, 2 Native (the game's own); `renodx_hdr` 1 with `hdr` 2 is Native + RenoDX |
| `nvidia_reflex`, `amd_anti-lag_2` | the Low latency row by the card's maker: 0 Off, 1 On, 2 On + Boost (NVIDIA alone) |
| `output_width`, `output_height` | Custom's size in pixels (`output_res=8`): a connected screen's as chosen in the menu, or any size set with the Output width and Output height rows, shown while it is the choice: 640 to 7680 and 360 to 2880, in steps of 8 in the menu; 2560 and 1440 until they are set |
| `hdr_paper_white`, `hdr_peak_brightness` | nits: 80 to 400, and 400 to 10,000 |
| `renodx_tonemapper` | 0 Vanilla, 1 PsychoV35, 2 RenoDRT |
| `renodx_gamma_correction` | 0 Off, 1 2.2, 2 BT.1886 (2.4) |
@@ -567,6 +573,8 @@ number is not the obvious one:
| `robust_buffers` | 0 Auto (on), 1 Off, 2 On |
| `game_speed` | 0 Per frame, 1 Real time |
| `text_speed` | 0 Normal, 1 2x, 2 4x, 3 Instant |
| `achievements` | 1 on, 0 off: whether anything is earned (`host/achievements.c`, option id 175); at once |
| `achievement_notices` | 1 on, 0 off: an earned one's notice and its sound (option id 176); it is earned and listed either way |
| `menu_sounds` | percent, 0 to 100: 80 unless set, 0 silent. The settings' own sounds, the game's interface sounds from its RomFS (`host/menu_sound.c`, `gpu/vk/menu_sound_events.h`; option ids 135 and 136), under `master_volume` |
| `microphone` | 0 Off, 1 Default, 2 and up a microphone (the name in `microphone_device` decides which) |
| `mouse_camera` | 0 As the stick, 1 Native |
@@ -645,3 +653,23 @@ force and why; the Full overlay's Frame limit line names RivaTuner or NVIDIA Ref
License: GPL-3.0-or-later, as mkw-recomp: a64-kit's translator is suyu's (GPL-2.0-or-later) and Eden's code is
GPL-3.0.
### Native ultrawide on 0.6
`options_version=9` keeps output 7 for handheld and uses 8 for Screen, 9 for Custom.
The menu lists connected monitors by name and saves their size, so unplugging or
reordering monitors does not change the picture. Custom retains the entered pair
when choosing a monitor; Use current window size copies the drawable pixel size.
A non-16:9 output owns the picture shape; the Aspect ratio row keeps the upstream
four shapes for 16:9 outputs. The HUD, menus and story movies retain 16:9 geometry.
The title movie fills through 12:5 (+1% rounding tolerance); wider titles keep bars.
Both stock 0.6 and native 0.5.2 wrote version 8. Native files are identified by
`output_width` or `output_height`, which their writer always emitted. Their old
Screen 7 and Custom 8 become 8 and 9. Stock handheld 7 stays 7. Native version-8
fixed wide pictures stay wide; stock fixed wide outputs migrate by their old
Aspect ratio choice. Files before version 8 retain the earlier shape migrations.
The host, menu and native launcher apply these rules before saving version 9.
The generic manifest cannot migrate a whole file, so offers only fixed values
that mean the same under all file versions; use the menu or native launcher for
handheld, Screen and Custom.