Triforce v0.8.5

A Randomizer page in the launcher, a new title screen with Mods and Save Select tabs, scaling changes applied in game, the Jabu-Jabu bars fixed, renderer frame-time work and the brightness-flash fix, and fixes from the 0.8.4 reports.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-28 10:54:41 -06:00
parent 2df08c751e
commit b527e29adb
203 changed files with 18821 additions and 2051 deletions

View File

@@ -11,9 +11,9 @@
// after the work before its signal, and a wait's work after the work before the signal it waits for. A signal is no barrier on
// the console: the work after it in the same queue is not ordered after the work before it.
//
// 1. A part's split (RX_VK_SPLIT_BARRIER; vk_replay.cpp maybe_split). A long submission goes to the GPU in parts of 120 draws and
// dispatches (RX_VK_CHUNK) so that the GPU starts early. Each part ended its pass with a full barrier, and the next began with
// another: the GPU drained between two draws of one of the game's passes, about 27 times a frame. With the rule the open pass
// 1. A part's split (RX_VK_SPLIT_BARRIER; vk_replay.cpp maybe_split). A long submission goes to the GPU in parts (RX_VK_CHUNK,
// part_draws below) so that the GPU starts early. Each part ended its pass with a full barrier, and the next began with
// another: the GPU drained between two draws of one of the game's passes, ~27 times a frame at 120. With the rule the open pass
// goes on in the next part: the part ends it, and the next begins it again with the same targets behind a barrier of the
// attachments' outputs alone (colour output and the depth and stencil tests, their writes before their reads and writes), and
// keeps what the pass's draws sampled and wrote, so that draw_hazards ends the pass where it would have without the split. That
@@ -108,22 +108,40 @@ inline bool split_start_full(bool carry, bool recorded_between) {
}
/// ((Triforce, 11-22, the performance audit's SYNC-66, after Source B's) RX_VK_CHUNK: how many draws and dispatches a part of a
/// long submission has (vk_replay.cpp maybe_split). 120 on every card since the parts were made: the GPU starts early, and each
/// long submission has (vk_replay.cpp maybe_split). 120 on every card until 11-26 (below): the GPU starts early, and each
/// split costs a queue submit, two full barriers and the part's bookkeeping, about 27 times a frame in a serial replay. Source B
/// cuts at 128 where the GPU idles while the CPU records and at 4096 on desktop drivers; what pays here is not measured on any
/// driver, so the default by driver is 120 for each until the lab picks one (S1 and S2 with RX_VK_PARALLEL=0 and the lab knob
/// chunk:<n>). vendor: the card's PCI vendor; radv: Mesa's RADV
/// cuts at 128 where the GPU idles while the CPU records and at 4096 on desktop drivers.
/// ((Triforce, 11-26) The lab picked NVIDIA's: 240 (kPartDrawsNvidia). On an RTX 5090 at 2560 x 1440, uncapped, the
/// benchmark's four scenes with the camera held (HOS_BENCH_PAN=0) and RX_VK_PARALLEL=0, 300-present phases of the knob
/// chunk:<n> against 120 beside them, on v0.8.3: 240 took 0.37, 0.18, 0.21 and 0.08 ms off the frame (Lake Hylia, the
/// Market, Hyrule Field, Kakariko: +3.1, +1.9, +2.5, +0.8% fps; the replay's time 0.15-0.48 ms less, the host's waits for
/// the GPU no longer), 480 was mixed (Hyrule Field 0.43 ms worse) and 960 lost 1.2 ms everywhere (the write-backs the game
/// waits for start too late on the GPU). On v0.8.4 Hyrule Field went the other way (120 faster by 0.05 ms), and with the
/// PC's default helper threads the gain was 0.05 to 0.06 ms (docs/development.md's RX_VK_CHUNK row). Measured on that one
/// desktop only. Fewer cuts change which occlusion counts arrive in time (fewer straddle a split and are lost, some finish
/// later); a count is written only when whole (occ_answer.h: an unknown count keeps the visible placeholder, never 0), so
/// none is ever hidden. NVIDIA's driver is the device's driver id (VK_DRIVER_ID_NVIDIA_PROPRIETARY, one id on Windows and
/// Linux), not the card's vendor: NVK, Dozen and Venus on an NVIDIA card, and every other driver (AMD, Intel, RADV and the
/// Deck), keep 120 until the lab has measured them. These sizes apply where parts are cut by count: Threaded rendering off
/// (and RX_VK_PART_PASS_END not 1, which gives the pass-end parts on any run), or RX_VK_PART_PASS_END=0. With Threaded
/// rendering on and RX_VK_PART_PASS_END unset a part ends where the game ends its render pass and neither size is read
/// (vk_replay.cpp pass_end_parts); any RX_VK_CHUNK turns those parts off, so leave it unset there. Where parts are counted,
/// RX_VK_CHUNK=120 is the old size on NVIDIA's driver too, and the knob chunk:120 compares it inside a run; with the pass-end
/// parts on, the knob's phases are counted and the phases between end at the game's passes, so the knob compares those two.
/// driver_id: the device's VkDriverId (dev.driver_id; 0 not known)
constexpr int64_t kPartDraws = 120;
inline int64_t part_draws_default(uint32_t vendor, bool radv) {
(void)vendor, (void)radv;
return kPartDraws;
constexpr int64_t kPartDrawsNvidia = 240;
constexpr uint32_t kDriverNvidiaProprietary = 4; // (VK_DRIVER_ID_NVIDIA_PROPRIETARY; tests/test_chunk_default.py checks it)
inline int64_t part_draws_default(uint32_t driver_id) {
return driver_id == kDriverNvidiaProprietary ? kPartDrawsNvidia : kPartDraws;
}
/// The size in force: RX_VK_CHUNK's number when the variable is set (0 or less: whole submissions, never split); else
/// knob_or_default, the lab knob chunk:<n>'s number in its phases and the driver's default outside them
inline int64_t part_draws(bool env_set, int64_t env_value, int64_t knob_or_default) {
return env_set ? env_value : knob_or_default;
}
/// As the size was read before: the variable's number, 120 unset
/// As the size was read before: the variable's number, 120 unset (since 11-26 the unset size on NVIDIA's driver is
/// kPartDrawsNvidia: part_draws_default)
inline int64_t part_draws_before(const char* env) { return env ? std::atoll(env) : 120; }
/// RX_VK_EVENT_BARRIER: "late" the rule on any card; "full" (or any other value) as before; unset or empty: with the pass barrier's