Triforce v0.5.0

In-game mods (GameBanana browser, search and installs, with the Mask Salesman), code-patch and cheat mods, the devs' test18 to test45 work (full performance overlay, frame pacing on, steady frame rate, save export and import, bug capture, new options rows, Setup's Mods page and Add to Steam), occlusion queries and new defaults, Auto resolution that scales, replay helper threads and robust buffers off by default, the options in sections.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-17 22:40:50 -06:00
parent 93eeb714c2
commit 6f338c8f56
600 changed files with 116254 additions and 2522 deletions

View File

@@ -2,6 +2,9 @@
// block matching: one vector per 4x4 quarter-size texels (16x16 pixels), +-RADIUS quarter texels searched
layout(local_size_x = 8, local_size_y = 8) in;
layout(constant_id = 0) const int RADIUS = 8;
// ((Triforce) how much a vector must earn its length, below: 1 for the old way's vectors; the fine vectors' coarse search
// (vk_framegen.cpp, fg_fine_flow.comp) takes less, as each fine block then tries the coarse vectors around it on its own pixels)
layout(constant_id = 1) const float BIAS = 1.0;
layout(binding = 0) uniform sampler2D la;
layout(binding = 1) uniform sampler2D lb;
layout(binding = 2, rgba16f) uniform writeonly image2D flow;
@@ -20,7 +23,7 @@ void main() {
for (int i = 0; i < 64; i++)
sad += abs(pa[i] - texelFetch(lb, clamp(c + ivec2(i % 8 - 4 + dx, i / 8 - 4 + dy), ivec2(0), lm), 0).r);
// (a vector must earn its length: flat haze and sky match anywhere, and any one chosen there swims)
const float cost = sad + 0.12 * float(abs(dx) + abs(dy)) + (dx != 0 || dy != 0 ? 0.6 : 0.0);
const float cost = sad + BIAS * (0.12 * float(abs(dx) + abs(dy)) + (dx != 0 || dy != 0 ? 0.6 : 0.0));
if (cost < best) best = cost, bv = ivec2(dx, dy);
}
imageStore(flow, g, vec4(vec2(bv) * 4.0, best / 64.0, 1.0));