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:
@@ -41,18 +41,25 @@ def main():
|
||||
|
||||
# FSR 3.1 runs for either of its values, and as its Native AA for the second (RX_VK_FSR=2 for a run)
|
||||
fsr3 = (vk / "vk_fsr3.cpp").read_text(encoding="utf-8")
|
||||
wanted = function(fsr3, "bool fsr3_wanted() {")
|
||||
check("upscaler_rows::is_fsr3(opts.dlss) && !temporal_env_chosen()" in wanted and "fsr3::supported()" in wanted,
|
||||
# ((Triforce, 11-26) for a choice of the row (fsr3_wanted_of, fsr3_native_of), the applied one in play: fsr3_wanted)
|
||||
wanted = function(fsr3, "bool fsr3_wanted_of(int choice, bool now) {")
|
||||
check("upscaler_rows::is_fsr3(choice) && !temporal_env_chosen()" in wanted and "fsr3::supported()" in wanted,
|
||||
"fsr3_wanted does not take both of the row's FSR 3.1 values, or drops RX_VK_DLSS / RX_VK_FSR4 over them")
|
||||
native = function(fsr3, "bool fsr3_native() {")
|
||||
check("fsr3_wanted() &&" in native and "opts.dlss == upscaler_rows::FSR3_AA" in native and "env >= 2" in native,
|
||||
native = function(fsr3, "bool fsr3_native_of(int choice, bool now) {")
|
||||
check("fsr3_wanted_of(choice, now) &&" in native and "choice == upscaler_rows::FSR3_AA" in native and "env >= 2" in native,
|
||||
"fsr3_native is not the row's Native AA (or RX_VK_FSR=2) where FSR 3.1 runs")
|
||||
# the game draws the 3D at full scale then, and its dynamic resolution is off: the two answers the host reads at the start
|
||||
check("bool fsr3_native() { return fsr3_native_of(applied_dlss(), true); }" in fsr3, "fsr3_native is not the applied row's")
|
||||
# the game draws the 3D at full scale then, and its dynamic resolution is off: the two answers the host reads ((11-26))
|
||||
# each present, from the row as applied: FSR 3.1's Native AA is upscaler_of's FSR3_AA, which ur::full_scale holds full)
|
||||
temporal = (vk / "vk_temporal.cpp").read_text(encoding="utf-8")
|
||||
check(re.search(r"bool temporal_full_scale\(\) \{ return ur::full_scale\(temporal_mode\(\)\) \|\| fsr3_native\(\); \}", temporal),
|
||||
"temporal_full_scale does not hold the 3D at full scale for FSR 3.1's Native AA")
|
||||
menu_src = (vk / "vk_menu.cpp").read_text(encoding="utf-8")
|
||||
check("bool resolution_full() { return ur::full_scale(upscaler_of(applied_dlss(), false)); }" in menu_src and
|
||||
"if (fsr3_wanted_of(choice, now)) return fsr3_native_of(choice, now) ? ur::FSR3_AA : ur::FSR3;" in menu_src,
|
||||
"resolution_full does not hold the 3D at full scale for FSR 3.1's Native AA")
|
||||
replay = (vk / "vk_replay.cpp").read_text(encoding="utf-8")
|
||||
check("id == 2 ? resolution_auto() && !temporal_full_scale()" in replay and "id == 3 ? (temporal_full_scale() ? 10000 : resolution_scale())" in replay,
|
||||
check("id == 2 ? resolution_auto() && !resolution_full()" in replay and "id == 3 ? (resolution_full() ? 10000 : resolution_scale())" in replay,
|
||||
"the renderer no longer answers the host's scale (options 2 and 3) with the full scale of a native AA")
|
||||
# at full scale the game's upscale is its full-size pass, one of the two the stand-ins know by key: FSR 3.1 is offered it,
|
||||
# and takes an input as large as the output (it refuses only a smaller output)
|
||||
@@ -76,23 +83,27 @@ def main():
|
||||
|
||||
# the menu: what runs is shown, both of FSR 3.1's are offered where it runs, and the Render resolution row says Native
|
||||
menu = (vk / "vk_menu.cpp").read_text(encoding="utf-8")
|
||||
check("int upscaler() {\n if (fsr3_wanted()) return fsr3_native() ? ur::FSR3_AA : ur::FSR3;" in menu, # ((Triforce) 11-24: Off after it)
|
||||
# ((Triforce, 11-26) for the row's choice, upscaler_of: what it runs as once applied)
|
||||
check("int upscaler_of(int choice, bool now) {\n if (fsr3_wanted_of(choice, now)) return fsr3_native_of(choice, now) ? ur::FSR3_AA : ur::FSR3;" in menu
|
||||
and "int upscaler() { return upscaler_of(opts.dlss, true); }" in menu, # ((Triforce) 11-24: Off after it)
|
||||
"the menu does not show FSR 3.1's Native AA when it runs")
|
||||
check("ur::fsr3_bits(fsr3::supported())" in function(menu, "unsigned upscalers_available() {"),
|
||||
"the Upscaler row does not offer both of FSR 3.1's where it runs")
|
||||
# ((Triforce, options_version 7) the Upscaler row names the engine of each of the seven values; a native AA is the Render
|
||||
# resolution row's Native (100%) step, upscaler_rows.h step_resolution)
|
||||
names = function(menu, "const char* tx_upscaler(int) {")
|
||||
names = function(menu, "const char* upscaler_name(int up) {") # ((Triforce, 11-26) tx_upscaler's, for an upscaler_of
|
||||
table = re.search(r"static const char\* t\[ur::kUpscalers\] = \{(.*?)\};", names, re.S)
|
||||
check(table and [n.strip().strip('"') for n in table.group(1).replace("\n", " ").split(",")] ==
|
||||
["Game", "NVIDIA DLSS", "NVIDIA DLSS", "AMD FSR 3.1", "AMD FSR 4", "AMD FSR 4", "AMD FSR 3.1", "Off", "Intel XeSS", "Intel XeSS"], # ((Triforce) 11-24: Off; Intel XeSS after it)
|
||||
"tx_upscaler's names are not the ten values' engines in their saved order")
|
||||
# ((Triforce, FSR4-7) FSR 4 by the version AMD's library runs, fsr4_name, the engine's name too)
|
||||
check("const int up = ur::engine(std::clamp(upscaler(), 0, ur::kUpscalers - 1));" in names and "return t[up];" in names,
|
||||
check("up = ur::engine(std::clamp(up, 0, ur::kUpscalers - 1));" in names and "return t[up];" in names,
|
||||
"tx_upscaler does not name what runs by its engine")
|
||||
hints = function(menu, "const char* hn_upscaler(int v, int variant) {")
|
||||
check("v = ur::engine(v);" in hints, "hn_upscaler does not say each value's engine")
|
||||
check('if (ur::full_scale(up)) return "Native (100%)";' in function(menu, "const char* tx_resolution(int v) {"),
|
||||
# ((Triforce, 11-26) resolution_name for an upscaler_of: the row's, tx_resolution, and the performance panel's)
|
||||
check('if (ur::full_scale(up)) return "Native (100%)";' in function(menu, "const char* resolution_name(int up, int v) {") and
|
||||
"const char* tx_resolution(int v) { return resolution_name(upscaler(), v); }" in menu,
|
||||
"the Render resolution row does not say Native (100%) with a native AA")
|
||||
check("if (ur::full_scale(up))" in function(menu, "const char* hn_resolution(int v, int variant) {"),
|
||||
"the Render resolution row's help has no line for a native AA")
|
||||
|
||||
Reference in New Issue
Block a user