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

@@ -330,6 +330,13 @@ int hos_oot_options_front(void) {
const LONG64 t = InterlockedCompareExchange64(&options_seen_ns, 0, 0);
return t && (LONG64)hos_now_ns() - t < 200000000LL;
}
/* ((Triforce, 11-30) the pause menu's screen updated within 200 ms, as hos_oot_options_front for the Options': it stops while
the Options screen is over it (OPTIONS_FROM_PAUSE_NS) and when the pause menu closes. nn_hid.c compare_to_play */
static volatile LONG64 pause_seen_ns;
int hos_oot_pause_front(void) {
const LONG64 t = InterlockedCompareExchange64(&pause_seen_ns, 0, 0);
return t && (LONG64)hos_now_ns() - t < 200000000LL;
}
/* (Triforce) the renderer is told of the Options screen (its tabs over the header): HOS_OPTIONS_TABS=0 keeps it untold */
static int options_tabs_on(void) {
static int tabs = -1;
@@ -1183,7 +1190,7 @@ void hos_oot_menu_tick(Ctx *c, uint64_t screen) {
(kept for the run; a run begins after 200 ms with no Options frame, as hos_oot_options_front's) */
static int64_t pause_ran_ns; /* (under seen_lock) */
static int options_from_pause;
if (peek64(screen) == PAUSE_SCREEN_VTABLE) pause_ran_ns = now;
if (peek64(screen) == PAUSE_SCREEN_VTABLE) pause_ran_ns = now, InterlockedExchange64(&pause_seen_ns, (LONG64)now);
if (me->options) {
const LONG64 was = InterlockedCompareExchange64(&options_seen_ns, 0, 0);
if (!was || now - was >= 200000000LL) options_from_pause = pause_ran_ns && now - pause_ran_ns < OPTIONS_FROM_PAUSE_NS;
@@ -1270,6 +1277,7 @@ void hos_oot_menu_tick(Ctx *c, uint64_t screen) {
#include <string.h>
#include "../gpu/vk/vk_api.h" /* (HOS_OPT_GAME_OPTIONS) */
static int64_t options_seen_ns; /* (the screens' updates run on several of the game's threads: read and written whole) */
static int64_t pause_seen_ns; /* ((Triforce, 11-30) the pause menu's last update, hos_oot_pause_front: the same) */
void hos_input_clear_toggles(void); /* ((Triforce) 11-24: host/nn_hid.c, hold-to-toggle's latches) */
/* (the pause page's focus hook runs here too, without the mouse's menu navigation: a latched button is let go for it) */
void hos_oot_menu_focus(Ctx *c, uint64_t screen, uint64_t pane, uint64_t lr) {
@@ -1300,7 +1308,7 @@ void hos_oot_menu_tick(Ctx *c, uint64_t screen) {
static int64_t pause_ran_ns; /* ((Triforce, 11-20) the pause menu's last update: where the Options were chosen from) */
static int options_from_pause;
const int64_t now = hos_now_ns();
if (vt == PAUSE_SCREEN_VTABLE) __atomic_store_n(&pause_ran_ns, now, __ATOMIC_RELAXED);
if (vt == PAUSE_SCREEN_VTABLE) __atomic_store_n(&pause_ran_ns, now, __ATOMIC_RELAXED), __atomic_store_n(&pause_seen_ns, now, __ATOMIC_RELAXED);
oot_menu_screen_tick(vt); /* ((Triforce) the screen's class, each frame it runs: oot_title_movie.h) */
if (vt != OPTIONS_SCREEN_VTABLE) return;
static int tabs = -1;
@@ -1318,6 +1326,10 @@ int hos_oot_options_front(void) {
const int64_t t = __atomic_load_n(&options_seen_ns, __ATOMIC_RELAXED);
return t && hos_now_ns() - t < 200000000LL;
}
int hos_oot_pause_front(void) { /* ((Triforce, 11-30) the Windows half's, nn_hid.c compare_to_play) */
const int64_t t = __atomic_load_n(&pause_seen_ns, __ATOMIC_RELAXED);
return t && hos_now_ns() - t < 200000000LL;
}
/* ((Triforce, 11-18) the Mods entry under the game's lists is the Windows half's (mods_list_tick): here no list's last button
has the cursor, so nn_hid.c never keeps a Down from the game. Without it every Linux build of v0.5.0 stopped at the link,
"undefined reference to hos_oot_mods_down" (#bug-tracker, 11-18). tests/test_oot_menu_linux_half.py) */