Skip to content

Commit 1a8347a

Browse files
committed
Assign 100% resolution scale Perf/Quality settings the title "DLAA" implicitly
1 parent 16604af commit 1a8347a

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

src/render/ngx/ngx.cpp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1935,6 +1935,18 @@ SK_NGX_DLSS_GetCurrentPerfQualityStr (void)
19351935

19361936
unsigned int perf_quality = NVSDK_NGX_PerfQuality_Value_MaxPerf;
19371937

1938+
// Implicitly assign anything that is full resolution scale to
1939+
// "DLAA" because some games are using native scaling with
1940+
// other quality levels...
1941+
void SK_NGX_DLSS_GetResolution (int& x, int& y, int& out_x, int& out_y);
1942+
1943+
int x, y,
1944+
out_x, out_y;
1945+
SK_NGX_DLSS_GetResolution (x, y, out_x, out_y);
1946+
1947+
if ( x == out_x &&
1948+
y == out_y ) return "DLAA";
1949+
19381950
NVSDK_NGX_Parameter_GetUI_Original (params, NVSDK_NGX_Parameter_PerfQualityValue, &perf_quality);
19391951

19401952
switch (perf_quality)
@@ -2885,6 +2897,18 @@ SK_NGX_DLSS_ControlPanel (void)
28852897
szPerfQuality = "Unknown Performance/Quality Mode";
28862898
break;
28872899
}
2900+
2901+
// Implicitly assign anything that is full resolution scale to
2902+
// "DLAA" because some games are using native scaling with
2903+
// other quality levels...
2904+
int x, y,
2905+
out_x, out_y;
2906+
SK_NGX_DLSS_GetResolution (x, y, out_x, out_y);
2907+
2908+
if ( x == out_x &&
2909+
y == out_y )
2910+
szPerfQuality = "DLAA";
2911+
28882912
ImGui::TextUnformatted (szPerfQuality);
28892913
ImGui::EndGroup ();
28902914

0 commit comments

Comments
 (0)