mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-28 20:08:51 -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:
@@ -974,23 +974,27 @@ std::string own_said(Out& o) {
|
||||
|
||||
} // namespace
|
||||
|
||||
bool fsr3_wanted() {
|
||||
bool fsr3_wanted_of(int choice, bool now) {
|
||||
static const int env = env_switch("RX_VK_FSR");
|
||||
if (env == 0) return false;
|
||||
// ((Triforce, 11-22, N64 Classic) not while its 3D pass draws the gameplay upscale: n64_rules.h upscaler, the switch too)
|
||||
if (n64_rules::upscaler(n64_in_front(), upscaler_rows::FSR3) != upscaler_rows::FSR3) return false;
|
||||
if (now && n64_rules::upscaler(n64_in_front(), upscaler_rows::FSR3) != upscaler_rows::FSR3) return false;
|
||||
// (the Upscaler row's FSR 3.1 or its Native AA, upscaler_rows.h, read each time: the row changes it while the game runs.
|
||||
// RX_VK_DLSS=1 / 2 or RX_VK_FSR4=1 / 2 goes over the row, its FSR 3.1 too: vk_temporal.cpp's chain draws then)
|
||||
return (env > 0 || (upscaler_rows::is_fsr3(opts.dlss) && !temporal_env_chosen())) && fsr3::supported();
|
||||
return (env > 0 || (upscaler_rows::is_fsr3(choice) && !temporal_env_chosen())) && fsr3::supported();
|
||||
}
|
||||
|
||||
bool fsr3_native() {
|
||||
bool fsr3_native_of(int choice, bool now) {
|
||||
static const int env = env_switch("RX_VK_FSR");
|
||||
// (the switch decides the size too when it turns FSR 3.1 on: 1 scaled, 2 and up its Native AA, as RX_VK_DLSS and
|
||||
// RX_VK_FSR4 count)
|
||||
return fsr3_wanted() && (env > 0 ? env >= 2 : opts.dlss == upscaler_rows::FSR3_AA);
|
||||
return fsr3_wanted_of(choice, now) && (env > 0 ? env >= 2 : choice == upscaler_rows::FSR3_AA);
|
||||
}
|
||||
|
||||
// ((Triforce, 11-26) the row as applied (vk_menu.h applied_dlss): a choice not applied yet runs nothing)
|
||||
bool fsr3_wanted() { return fsr3_wanted_of(applied_dlss(), true); }
|
||||
bool fsr3_native() { return fsr3_native_of(applied_dlss(), true); }
|
||||
|
||||
bool fsr3_pre_wanted() { return fsr3_wanted() && fsr3fi::frames_wanted() == 0; }
|
||||
|
||||
bool fsr3_pre(VkCommandBuffer cmd, Texture* scene, VkImageView scene_view, uint32_t ow, uint32_t oh, VkImageView* picture,
|
||||
|
||||
Reference in New Issue
Block a user