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

@@ -269,7 +269,7 @@ static unsigned process_physical_cores() {
// and, for Auto, whether the run is safe for it: the capture off (RX_VK_CAPTURE=0: a replay behind the game is right only from the
// capture), RX_VK_LOW_SPEC, a frame dump (RX_VK_DUMP), the bench (RX_VK_BENCH); then, only when Auto would pick the threads, the
// buffer pools' mirrors, which read the device (asked at pick_device, after it is known: a reader before it gets Auto off).
// On is the player's word: nothing is checked for it. Off, the default: every reader as before
// On is the player's word: nothing is checked for it. Off: every reader as before. Auto is the row's default (options_version 11)
const threaded::Choice& threaded_choice() {
static const threaded::Choice choice = [] {
menu_init();
@@ -672,8 +672,9 @@ bool create_device() {
// culling pass 53caac5f faulted the device while a save loaded, about one start in three, and the scene's lighting read garbage
// for single frames (the black flashes); with it, neither in A/B runs at the same GPU time. Lichii's OoT branch keeps it on too.
// The 'Robust buffers' row of triforce_options.ini chooses (0 Auto: off since 11-17, the owner's call; 1 Off; 2 On); RX_VK_ROBUST=0 or 1
// over it. Off is null descriptors only: some NVIDIA cards ran slower with it on, issues 394, 418, 419)
static const bool robust = []() -> bool {
// over it. Off is null descriptors only: some NVIDIA cards ran slower with it on, issues 394, 418, 419. ((Triforce, 11-30)
// And on with Intel's Windows driver whatever the row says, below the vendor fixes: vk_vendor.h robust_buffers)
static const bool robust_row = []() -> bool {
if (const char* e = getenv("RX_VK_ROBUST")) return atoi(e) != 0;
char exe[MAX_PATH];
const DWORD n = game_module_path(exe, MAX_PATH); // (the game folder, not bin beside the launcher: vk_paths.h)
@@ -692,8 +693,7 @@ bool create_device() {
// ((Triforce) 11-17, the owner's "keep robust buffers off by default": Auto is off now; only On (2) turns it on)
return v == 2;
}();
const bool robust_ok = robust && robust2.robustBufferAccess2 && f.features.robustBufferAccess;
robust2.robustBufferAccess2 = robust_ok ? VK_TRUE : VK_FALSE;
bool robust = robust_row, robust_ok = false; // (with the vendor fixes, below)
robust2.robustImageAccess2 = VK_FALSE;
dev.null_descriptor = dev.null_descriptor && robust2.nullDescriptor;
pv.transformFeedbackPreservesProvokingVertex = VK_FALSE;
@@ -735,9 +735,15 @@ bool create_device() {
amd_older = amd_older_compiler(facts);
dev.amd_older_compiler = amd_older;
vendor_fixes_env(dev.fixes, [](const char* name) -> const char* { return getenv(name); });
logf("vk: vendor fixes for %s (%s): out-of-bounds texel fetches 0 %d, NaN tests by bits %d, gather offset %d",
drv.driverName, drv.driverInfo, (int)dev.fixes.fetch_bounds, (int)dev.fixes.nan_bits, (int)dev.fixes.gather_offset);
logf("vk: vendor fixes for %s (%s): out-of-bounds texel fetches 0 %d, NaN tests by bits %d, gather offset %d, robust "
"buffers %d", drv.driverName, drv.driverInfo, (int)dev.fixes.fetch_bounds, (int)dev.fixes.nan_bits,
(int)dev.fixes.gather_offset, (int)dev.fixes.robust_buffers);
}
// ((Triforce, 11-30) the Robust buffers row (robust_row), or the vendor fix: Intel's Windows driver lost the device at the
// file select without it (vk_vendor.h robust_buffers); RX_VK_ROBUST=0 turns both off)
robust = robust || dev.fixes.robust_buffers;
robust_ok = robust && robust2.robustBufferAccess2 && f.features.robustBufferAccess;
robust2.robustBufferAccess2 = robust_ok ? VK_TRUE : VK_FALSE;
// ((Triforce, 11-18, EstebanGGM's port of NX2navi issue #67) AMD's older proprietary shader compiler (vk_vendor.h
// amd_older_compiler) applies alpha to coverage while the dynamic state says off: white stippling over foliage, grass, Link's
// hair and tunic on RX 470-590 (#bug-tracker "Texture glitch again ... (RX 580)", 11-18 screenshots). There the state goes in
@@ -870,7 +876,9 @@ bool create_device() {
logf("vk: %s programs use the compute fallback (RX_VK_TASK_MESH_FALLBACK=0: native%s)",
dev.mesh_only_fallback ? "mesh-only and task + mesh" : "task + mesh",
dev.mesh_only_fallback ? "; RX_VK_MESH_ONLY_FALLBACK=0: task + mesh alone" : "");
if (robust) logf("vk: robust buffer access %s", robust_ok ? "on" : "not supported");
if (robust)
logf("vk: robust buffer access %s%s", robust_ok ? "on" : "not supported",
robust_row ? "" : " (Intel's Windows driver: whatever the Robust buffers row says; RX_VK_ROBUST=0: off)");
f.features.robustBufferAccess = robust_ok ? VK_TRUE : VK_FALSE; // (off by default: the game's accesses stay in their buffers)
dev.features = f.features;
dev.sparse_images = (families[dev.queue_family].queueFlags & VK_QUEUE_SPARSE_BINDING_BIT) && f.features.sparseBinding &&