Triforce v0.8.5

A Randomizer page in the launcher, a new title screen with Mods and Save Select tabs, scaling changes applied in game, the Jabu-Jabu bars fixed, renderer frame-time work and the brightness-flash fix, and fixes from the 0.8.4 reports.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-28 10:54:41 -06:00
parent 2df08c751e
commit b527e29adb
203 changed files with 18821 additions and 2051 deletions

View File

@@ -25,6 +25,8 @@
#include <cstdlib>
#include <cstring>
#include "capturepushkeep.h" // ((Triforce, 11-26, C15) the capture push a command buffer holds: CmdWork::cap)
namespace mkwvk {
extern std::atomic<uint64_t> work_epoch; // (vk_texture.cpp: RX_VK_BARRIER_CONTEXT=0's count, every thread's commands)
@@ -52,6 +54,9 @@ struct CmdWork {
uint64_t pass_end_at = UINT64_MAX; // (right after its last draw pass ended, unless the replay split that pass for a hazard)
uint64_t dispatch_at = UINT64_MAX; // (right after its last dispatch: RX_VK_DISPATCH_BARRIER)
bool known = true; // (false: the stand-in for a command buffer the table had no room for, never right after anything)
// ((Triforce, 11-26, C15) capturepushkeep.h: the zeros the plain draws' capture push left on it, told of every push and
// bind by vk_work.h's macros and started afresh by work_begun; not a count, no barrier rule reads it)
capturepushkeep::State cap;
};
/// The table: a slot a command buffer, taken at its first command or begin by whichever thread comes first and kept for good (the
@@ -62,7 +67,7 @@ struct alignas(64) CmdWorkSlot { // (a cache line each: two threads recording
CmdWork w;
};
inline CmdWorkSlot cmd_work_slots[kCmdWorkSlots];
inline thread_local CmdWork cmd_work_none{0, UINT64_MAX, UINT64_MAX, UINT64_MAX, false}; // (vk_texture.cpp full_barrier tells it once)
inline thread_local CmdWork cmd_work_none{0, UINT64_MAX, UINT64_MAX, UINT64_MAX, false, {}}; // (vk_texture.cpp full_barrier tells it once)
inline CmdWork* cmd_work_find(VkCommandBuffer cmd) {
if (cmd == VK_NULL_HANDLE) return &cmd_work_none;
const size_t h = (size_t)(((uint64_t)(uintptr_t)cmd * 0x9E3779B97F4A7C15ull) >> 54); // (10 bits: kCmdWorkSlots)
@@ -109,6 +114,7 @@ inline VkCommandBuffer work_begun(VkCommandBuffer cmd) {
CmdWork& w = cmd_work(cmd);
w.n++;
w.barrier_at = w.pass_end_at = w.dispatch_at = UINT64_MAX;
capturepushkeep::begun(w.cap); // ((Triforce, 11-26, C15) push constants are undefined in a new recording)
return cmd;
}
/// A submit to the queue (vkQueueSubmit2), any thread's