mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-21 09:09:58 -04:00
Triforce v0.6.0 "Sage Of Power"
Faster frames (the replay's memory work, held submits, helper threads, collection and capture cuts), the game letting old areas go (QueryMemoryInfo), the 0.5.2 stutter fixed, AMD RX 5000/6000 and integrated-GPU fixes, the GPU device chosen by name, the in-game menus and launcher reworked, controller, Linux and benchmark fixes.
This commit is contained in:
@@ -25,6 +25,10 @@
|
||||
namespace menu_sound {
|
||||
// (vk_api.h HOS_MENU_SOUND_*: vk_menu.cpp holds them against these)
|
||||
constexpr int kNone = 0, kOpen = 1, kClose = 2, kCursor = 3, kDecide = 4, kCancel = 5, kTabLeft = 6, kTabRight = 7;
|
||||
// ((Triforce) and the Mods screen's and entry's own, which sound_of never names: the fanfare of a mod installed, and the
|
||||
// system menu's cursor and "decide" of the game's lists the Mods entry is under. (11-19) The queue took the seven above
|
||||
// only and dropped these without a word: moving onto Mods, A on it, Quit's dialog and the fanfare were silent)
|
||||
constexpr int kFanfare = 8, kSysCursor = 9, kSysDecide = 10, kLast = kSysDecide;
|
||||
|
||||
// (State::page: the tabs' rows, a page over them, and the restart question, whose two buttons L and R choose between)
|
||||
constexpr int kPageRows = 0, kPageAsk = 5;
|
||||
@@ -104,9 +108,9 @@ struct Queue {
|
||||
Entry entries[kQueue] = {};
|
||||
std::atomic<unsigned> head{0}, tail{0}; // (taken up to head, put up to tail)
|
||||
|
||||
/// The menu's thread: a sound asked for at now_ns. false when it is none of the seven, or the queue is full
|
||||
/// The menu's thread: a sound asked for at now_ns. false when it is none of the sounds (1 to kLast), or the queue is full
|
||||
bool put(int sound, int64_t now_ns) {
|
||||
if (sound <= kNone || sound > kTabRight) return false;
|
||||
if (sound <= kNone || sound > kLast) return false;
|
||||
const unsigned t = tail.load(std::memory_order_relaxed);
|
||||
if (t - head.load(std::memory_order_acquire) >= kQueue) return false;
|
||||
entries[t % kQueue] = {sound, now_ns};
|
||||
|
||||
Reference in New Issue
Block a user