Triforce v0.8.4

Smoother frames and less memory: a compact pipeline cache on NVIDIA, the renderer and game-code profiles, native float in the hot game code, late GPU work left as before. A PC whose NVIDIA shader cache drops the game's gets a driver cache folder of its own. Fixes from the 0.8.3 reports: RenoDX's encoder and tone mapping matched on NVIDIA again; the out-of-memory notice at the next start; no microphone open without a recording device; Evil HD undergrowth kept to 80/120 m; the FG HUD layer keeps what it learned; a stick past 92% is a full push; the DualSense jack read only when used; Linux Save Select, Quit and Restart, and the Linux launcher's sound; the update check uses the program's own version.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-26 20:04:11 -06:00
parent ecb4d5cc99
commit 2df08c751e
45 changed files with 2828 additions and 567 deletions

View File

@@ -1307,6 +1307,17 @@ NV(nvnSyncWait) {
(unsigned long long)s->fence, (unsigned long long)U64(1), (unsigned long long)c->x[30],
(unsigned long long)rx_nvn_fence(), (unsigned long long)rx_nvn_replayed());
if (!s->fenced) { RET(NVN_SYNC_WAIT_RESULT_TIMEOUT_EXPIRED); return; }
{ /* ((Triforce, 11-26, LAB ONLY) HOS_SYNC_SKIP_LR=<hex lr>: a blocking wait from that return address answers "signalled" at
once: what the game's own per-frame GPU wait costs, its readbacks left to their own write-back waits. NOT correct for
anything the game reads without a readback; never on by default) */
static uint64_t skip_lr = ~0ull;
if (skip_lr == ~0ull) skip_lr = getenv("HOS_SYNC_SKIP_LR") ? strtoull(getenv("HOS_SYNC_SKIP_LR"), NULL, 16) : 0;
if (skip_lr && c->x[30] == skip_lr && U64(1)) {
if (s->fenced == 1 && s->fence > rx_nvn_fence()) held_flush();
RET(NVN_SYNC_WAIT_RESULT_CONDITION_SATISFIED);
return;
}
}
if (s->fenced == 1 && s->fence > rx_nvn_fence()) held_flush(); /* (a wait flushes what it waits for) */
if (rx_nvn_wait(s->fence, 0)) { RET(NVN_SYNC_WAIT_RESULT_ALREADY_SIGNALED); return; }
static int block = -1; /* HOS_NVN_SYNC_BLOCK=1 (experiment): a poll waits for the GPU */