mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-29 04:18:49 -04:00
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:
@@ -851,9 +851,28 @@ bool framegen_on() {
|
||||
// frame generation's display thread reads it (framegen_scale) while the replay thread writes it (wide_sides_tick)
|
||||
struct WideSides { float x0 = 0.0f; int side = 0; };
|
||||
std::atomic<bool> wide_possible{false}; // (a margin and the setting on: vk_replay.cpp takes the scale pass's path for the sides)
|
||||
// ((Triforce, 11-26) the whole picture out of focus, x0 kWholeBlur: Save Select over the title (vk_menu.cpp
|
||||
// menu_backdrop_blurred). The owner: "remove the black shadow behind the save select and replace it with blur", "adding blur
|
||||
// for the borders for 21:9 and 32:9", as the game's own Options over the title has the title blurred behind it, its sides
|
||||
// too. The sides' own blur (fg_scale.comp side_fill) with both edges past the picture's: every pixel is a side's, so no
|
||||
// shader of its own; on every screen shape, 16:9 too, as the game's)
|
||||
constexpr float kWholeBlur = -1.0f;
|
||||
float side_x0(const WideSides& w) { return w.x0 == kWholeBlur ? 2.0f : w.x0; }
|
||||
float side_x1(const WideSides& w) { return w.x0 == kWholeBlur ? 3.0f : 1.0f - w.x0; }
|
||||
WideSides wide_sides() {
|
||||
WideSides w;
|
||||
if (!host || !host->wide_menus) return w;
|
||||
static bool whole_told = false; // (each change said once: a report of a blurred title says when it came and went)
|
||||
if (menu_backdrop_blurred()) {
|
||||
w.x0 = kWholeBlur, w.side = 1;
|
||||
wide_possible.store(true, std::memory_order_relaxed);
|
||||
if (!whole_told) whole_told = true, logf("vk: the picture out of focus behind Save Select");
|
||||
return w;
|
||||
}
|
||||
if (whole_told) whole_told = false, logf("vk: the picture in focus again (Save Select shut)");
|
||||
if (!host || !host->wide_menus) {
|
||||
wide_possible.store(false, std::memory_order_relaxed);
|
||||
return w;
|
||||
}
|
||||
// (KEEP_VTABLES 1: the pause and system menus' background. 0, the item wheel's background, and 2 and 3, the event and
|
||||
// the loading fade, keep covering the whole picture.
|
||||
// (Triforce) This was 0xa: bit 3 was taken for a menu's, and it is the loading fade (host/oot_wide_hud.h's table). So
|
||||
@@ -1009,7 +1028,7 @@ VkImage scale_picture(VkCommandBuffer cmd, VkImageView src, VkImage image, uint3
|
||||
scale.small_w = smw, scale.small_h = smh;
|
||||
to_general(cmd, scale.small.image);
|
||||
}
|
||||
struct { int mode; float sharp; float x0, x1; int side; } sp{0, 0.0f, wide.x0, 1.0f - wide.x0, 3};
|
||||
struct { int mode; float sharp; float x0, x1; int side; } sp{0, 0.0f, side_x0(wide), side_x1(wide), 3};
|
||||
pass(cmd, filter, {{src, scale.linear}, {scale.small.view, VK_NULL_HANDLE}, {src, scale.linear}}, smw, smh, &sp, sizeof sp);
|
||||
VkImageView picture = src;
|
||||
if (wide.side) {
|
||||
@@ -1087,7 +1106,7 @@ VkImage scale_picture(VkCommandBuffer cmd, VkImageView src, VkImage image, uint3
|
||||
return scale.scaled.image;
|
||||
}
|
||||
struct { int mode; float sharp; float x0, x1; int side; } pc{sharpen_rules::window_mode(opts.upscale, fsr1, iw, ih, dw, dh),
|
||||
sharp / 100.0f, wide.x0, 1.0f - wide.x0, wide.side};
|
||||
sharp / 100.0f, side_x0(wide), side_x1(wide), wide.side};
|
||||
// (nothing left to do: the plain copy at 1:1, no Sharpness here, no sides. The picture goes to the window as it is)
|
||||
if (!pc.mode && !sharp && !wide.side && iw == dw && ih == dh) return VK_NULL_HANDLE;
|
||||
if (wide.side == 1) { // (the blurred sides: first the picture at 1/8, each pixel the mean of its 8 x 8, which they blur)
|
||||
|
||||
Reference in New Issue
Block a user