mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 23:59:59 -04:00
Draw the picture above 1440p, and fold scaling, FSR 1 and DLSS into one Upscaling choice.
NX2NAVI_GAME_RES (1440, 1800, 2160, 2880 or window, read at start) sets the picture's height; the widescreen patch sets now also run at 16:9 when the height is not the game's, with the width following the shape and the scene 3/4 of both as the game draws it. Measured at 2160p with 21:9: a 5120x2160 picture and a 3840x1620 scene at 60 fps. The Screen tab's Scaling-to-the-window row and the DLSS rows become one Upscaling row (Bilinear, AMD FSR 1, NVIDIA DLSS) over NX2NAVI_UPSCALER and NX2NAVI_DLAA (option_rows: opt_choice_index and opt_apply for a row over several settings), with the FSR strength greyed out unless FSR is chosen and a Resolution row beside the widescreen one. DLSS always uses NVIDIA's model for its scale (no model row). There are no DLSS quality modes: the game sizes its scene from the picture by its own 3/4 share, and writing a smaller scene into wide_scene's constant left the light target as it was, so every mode would render the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -45,6 +45,12 @@ bool opt_choice(const char *key, UiTextId label, const UiTextId *names, int n, U
|
||||
// unset. cur: the index in effect, -1 to find cfg_value(key) in values (no match: the value shown as it is).
|
||||
bool opt_choice_list(const char *key, UiTextId label, const char *const *values, const char *const *names, int n,
|
||||
UiTextId desc, int cur = -1, const char *note = nullptr);
|
||||
// A choice whose value is spread over several settings: the caller gives the index in effect and the default's and
|
||||
// writes the settings itself (opt_apply) when this returns the new index; -1 while unchanged. key: the setting the row
|
||||
// stands for (its restart mark and the environment check).
|
||||
int opt_choice_index(const char *key, UiTextId label, const char *const *names, int n, int cur, int def, UiTextId desc,
|
||||
const char *note = nullptr);
|
||||
void opt_apply(const char *key, const char *value); // what a row writes: "" unsets the key; saved a moment later
|
||||
// A row that runs an action: true on A or a click. id: unique on the page and not a setting ("##copy_info"); value:
|
||||
// shown on the right ("" none).
|
||||
bool opt_button(const char *id, UiTextId label, UiTextId desc, const char *value = "");
|
||||
|
||||
Reference in New Issue
Block a user