mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-17 04:59:57 -04:00
Apply the DLSS mode's render scale every frame, so native DLAA and the other modes take effect when picked.
The res_fixed patch sends the game's dynamic-resolution controller down its fixed path, which returns its scale with state 1 or 2. The caller makes a new scene scale only on state 0, so the menu's mode reached the scene only by chance: a mode switch in play left the scene at its old size, and a scene reload put it back at full size. The fixed path now returns state 0, and the page's scale applies every frame. Ocarina also no longer logs that DLSS needs nvngx_dlss.dll and follows render_scale, which was true only of the builds with a scene patch set. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -105,7 +105,9 @@ static double dlss_share(const char *m) {
|
||||
if (!cfg_bool("NX2NAVI_DLAA")) return 0;
|
||||
for (int i = 0; i < (int)(sizeof dlss / sizeof dlss[0]); i++)
|
||||
if (!strcmp(m, dlss[i].name)) {
|
||||
if (dll < 0 && !(dll = dlss_dll())) {
|
||||
// Ocarina's builds have no scene patch set: its DLSS render scale is widescreen.c's (dlss_share there),
|
||||
// and the driver's NGX supplies the model where the file is missing, so there is nothing to report
|
||||
if (dll < 0 && !(dll = dlss_dll()) && res_adjustable()) {
|
||||
#ifdef _WIN32
|
||||
rt_log("resolution: DLSS %s needs nvngx_dlss.dll next to nx2navi.exe, which is missing: the scene follows "
|
||||
"render_scale", m);
|
||||
|
||||
Reference in New Issue
Block a user