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

@@ -1555,7 +1555,9 @@ void EmitContext::DefineGlobalMemoryFunctions(const Info& info) {
// the wall of trees in the sky. The culling's compute programs, with hundreds of global loads, keep the helper
// (NVIDIA took 41 s on one inlined, above)
static const bool gm_inline{!getenv("EDEN_NX2_GM_INLINE") || getenv("EDEN_NX2_GM_INLINE")[0] != '0'};
const bool inline_here{gm_inline && (stage == Stage::Task || stage == Stage::Mesh ||
// ((11-28) lab: EDEN_NX2_GM_INLINE=2 inlines them in every stage, for the Jabu-Jabu bars' fragment program a9b0170b)
static const bool gm_inline_all{gm_inline && getenv("EDEN_NX2_GM_INLINE") && getenv("EDEN_NX2_GM_INLINE")[0] == '2'};
const bool inline_here{gm_inline_all || gm_inline && (stage == Stage::Task || stage == Stage::Mesh ||
(shift == 4 && runtime_info.inline_global_128_loads))};
const Id func_id{OpFunction(type, inline_here ? spv::FunctionControlMask::Inline : spv::FunctionControlMask::DontInline,
function_type)};

View File

@@ -1668,7 +1668,17 @@ void GlobalMemoryToStorageBufferPass(Environment& env, IR::Program& program,
return;
}
// (hookshot)
static const bool no_mesh{std::getenv("RX_VK_FOLLOW_MESH") == nullptr};
// ((Triforce, 11-28) the task and mesh stages too, by default: RX_VK_FOLLOW_MESH=0, the compute stage alone, as before.
// Jabu-Jabu's tentacle bars (mesh a9b0170bd5986fd6) light each vertex from a probe grid: a chunk header, then a cell
// record read through a pointer loaded from storage buffer 1. Its second vertex batch's reads were tracked to storage
// buffer 2's descriptor (c0+0x790) and read another buffer there: every probe "invalid", no ambient, the black patches
// with teal edges the bars always had (Navi's light, a pass of its own, still showed them). The first batch's reads went
// to the run-time search and were right. Left to it, as compute's are, the bars are whole. Off on 11-07 because the leaves
// went missing; the search has covered whole pools and the page table since)
static const bool no_mesh{[] {
const char* const e{std::getenv("RX_VK_FOLLOW_MESH")};
return e && *e && std::atoi(e) == 0;
}()};
g_follow_stage = program.stage == Stage::Compute || (!no_mesh && (program.stage == Stage::Task || program.stage == Stage::Mesh));
// (geometry stages only: with the fragment stage too, the sky drew black rectangles and the lighting went too bright at the castle)
g_graphics_stage = program.stage != Stage::Compute && program.stage != Stage::Fragment;