Triforce v0.9.0

Character tab, faster renderer defaults, HD rumble shipped, and the 11-30 bug pass: ending softlock below 60 fps, adult first-night lock, Intel Arc robust buffers, adult map, randomizer load order.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-30 20:55:14 -06:00
parent 8cb23131f9
commit 822ee913bc
86 changed files with 8128 additions and 438 deletions

View File

@@ -1,6 +1,7 @@
// (Triforce) Threaded rendering, the Debug tab's row (vk_menu.cpp, threaded_rendering= in triforce_options.ini) and its switch
// RX_VK_THREADED (over the row: 0 or off, 1 or on, 2 or auto): one rule for every reader. Off by default, the row and the switch
// both: Off changes nothing at all, every piece below keeps its own switch and default as before.
// RX_VK_THREADED (over the row: 0 or off, 1 or on, 2 or auto): one rule for every reader. The row is Auto by default since
// options_version 11 (11-29, the owner: "Yes default"; vk_menu.cpp menu_init turns an older file's Off into Auto once); unset, the
// switch leaves it to the row. Off changes nothing at all, every piece below keeps its own switch and default as before.
//
// What On turns on, as one design (the threads of a renderer of the same base, rewritten there as one: a render thread for the
// replay, the recorder thread beside it handed whole parts, the presents on a thread of their own, parts that end where the
@@ -20,16 +21,18 @@
// finished frames, in order (RX_VK_PRESENT_CHECK=1 counts any present that is not)
// the parts a submission's part ends where the game has ended its render pass, from 120 draws (the first part
// from 32), at 512 at the latest (vk_replay.cpp maybe_split; RX_VK_PART_MIN, RX_VK_PART_FIRST,
// RX_VK_PART_MAX), not every RX_VK_CHUNK draws wherever that falls
// RX_VK_PART_MAX), not every RX_VK_CHUNK draws wherever that falls. ((Triforce, 11-29) On NVIDIA's
// driver these parts are the default with Off too: barrier_rules.h part_pass_end_default)
//
// Each piece's own switch, when set, still goes over this (RX_VK_ASYNC, RX_VK_RECORDER, RX_VK_RECORDER_PARTS,
// RX_VK_PRESENT_THREAD, RX_VK_ACQUIRE_AHEAD, RX_VK_CHUNK). The replay helper threads (the parallel replay) are not part of it:
// with the render thread on there are none, whatever their row says (vk_replay.cpp par_threads_max; RX_VK_PARALLEL or
// RX_VK_PARALLEL_AUTO still goes over this).
//
// Off (the default) as before: the replay on the game's submitting thread, the recorder as Triforce chooses it
// Off as before: the replay on the game's submitting thread, the recorder as Triforce chooses it
// On all of the above, whatever the CPU
// Auto decided from the physical cores the process may run on (its affinity mask, a core's SMT siblings counted once):
// Auto (the default) decided from the physical cores the process may run on (its affinity mask, a core's SMT siblings
// counted once):
// kAutoCores (4) or more: all of the above;
// fewer: off, as Off.
// With no buffer-pool mirrors (an integrated GPU, RX_VK_MIRROR=0) the render thread, which runs a frame behind the
@@ -41,7 +44,9 @@
// render thread alone 67.6 / 67.9 fps against 65.5 / 65.0 serial; from 6 cores both threads 72.9 / 72.4 against 67.4 / 68.4.
// After the rewrite (a Ryzen 7 5700X3D held to 4 cores, RX 9070 XT): both threads 78.7 fps against the render thread alone's
// 64.6 (4 cores, 8 threads). The recorder alone at 6 or more cores without mirrors: +18.0% 1% lows, +5.6% fps in the Market.
// Not measured here: the coordinator's lab A/B is RX_VK_THREADED=0 against RX_VK_THREADED=1.
// (11-29, an RTX 5090, 8 cores, the benchmark tour, RX_VK_THREADED=0 against 1, 2 rounds) +8.4% fps with the owner's options
// (186.6 -> 202.2), +4.7% with the defaults (195.0 -> 204.2), every scene up, the 1% low better in 13 of 14 rows; with the camera
// moving 183.3 fps against 165-167, the picture the same. The coordinator's lab A/B is RX_VK_THREADED=0 against RX_VK_THREADED=1.
// Read once, at the start (vk_main.cpp threaded_choice): a change of the row applies at the next start.
// Plain code with no Vulkan or system calls: tests/test_threaded_rendering.py compiles it alone.
#pragma once
@@ -53,7 +58,7 @@
namespace mkwvk::threaded {
enum { OFF = 0, ON = 1, AUTO = 2 }; // (the row's values, in its order: Off, On, Auto; 0 the default)
enum { OFF = 0, ON = 1, AUTO = 2 }; // (the row's values, in its order: Off, On, Auto; 2 the default since options_version 11)
/// Auto's tier, in physical cores the process may run on: from here the render thread and the recorder thread
constexpr unsigned kAutoCores = 4;