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

@@ -1189,6 +1189,12 @@ static void pad_headphones_forget(void *pad) { /* (the pad closed: its handle
if (hp_dev) hos_sdl_hid_close(hp_dev);
hp_dev = NULL, hp_pad = NULL, hp_failed = 0, hp_last = -2;
}
/* ((Triforce, 11-26) the reader let go while nothing needs the jack (host/pad_speaker.c headphones): its second handle
closed. A report of 11-26 had a DualSense drop seconds after every connection since v0.8.0, with the speaker rows off */
void hos_sdl_pad_headphones_release(void) {
if (hp_dev) hos_sdl_hid_close(hp_dev);
hp_dev = NULL, hp_pad = NULL, hp_failed = 0, hp_last = -2;
}
int hos_sdl_pad_headphones(void *pad) {
vib_calls_look();
if (!vib_calls.HidReadTimeout || !vib_calls.HidOpenPath || !vib_calls.HidClose || !pad) return -1;
@@ -1209,9 +1215,10 @@ int hos_sdl_pad_headphones(void *pad) {
int got = 0;
for (int i = 0; i < 256; i++) { /* (up to a second of reports queued: the newest counts) */
const int n = ((int (*)(void *, unsigned char *, size_t, int))vib_calls.HidReadTimeout)(hp_dev, report, sizeof report, 0);
if (n < 0) {
if (n < 0) { /* ((Triforce, 11-26) and not opened again each second: once a pad's life, as a failed open) */
hos_sdl_hid_close(hp_dev);
hp_dev = NULL;
hp_dev = NULL, hp_failed = 1;
hos_log("sdl: the DualSense's input report stopped reading beside SDL's: its headphones are not seen");
return -1;
}
if (n == 0) break;