mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-27 19:48:49 -04:00
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:
@@ -432,6 +432,14 @@ void hos_pad_speaker_forget(void *pad) {
|
||||
/* Headphones in the jack: what the pad says (-1: it does not say), or the switch over it, each second */
|
||||
static void headphones(void *pad) {
|
||||
int plugged = env_int("HOS_PAD_SPEAKER_HEADPHONES", -1, 0, 1);
|
||||
/* ((Triforce, 11-26) the pad's jack read only while a row uses it: the Headphones row on, or a class of sounds sent to the
|
||||
pad. Read every second with them all off (the default), a second handle on the DualSense drained its reports, and a
|
||||
player's pad dropped seconds after each connection since v0.8.0 (unproven as the cause; the only new code on it) */
|
||||
const int needed = atomic_read(&hp_mode) != HOS_PAD_HEADPHONES_OFF || atomic_read(&any_class);
|
||||
if (plugged < 0 && !needed) {
|
||||
hos_sdl_pad_headphones_release();
|
||||
plugged = 0;
|
||||
}
|
||||
if (plugged < 0) plugged = pad ? hos_sdl_pad_headphones(pad) : 0;
|
||||
if (plugged < 0) plugged = 0;
|
||||
if (plugged != atomic_read(&hp_plugged)) hos_log("pad speaker: headphones %s the pad's jack", plugged ? "in" : "out of");
|
||||
|
||||
Reference in New Issue
Block a user