Clarify DLSS frame generation availability
(cherry picked from commit d9d629672a8b3b8a0ab8cf6b6a2bb4aff525a155)
This commit is contained in:
1 parent
c12c4959a5
commit
de4c8af474
2 files changed
+12
No files matched your search
@@ -470,6 +470,8 @@ fn notice_of(f: &Facts, dlss_live: bool, fsr_live: bool) -> Vec<String> {
|
||||
if no_dlss_fg {
|
||||
lines.push(if f.files_missing {
|
||||
"DLSS FRAME GEN: NVIDIA DLSS FILES NOT FOUND"
|
||||
} else if dlss_framegen_card(&f.adapter) {
|
||||
"DLSS FRAME GEN: UNAVAILABLE (CHECK HAGS AND LOG)"
|
||||
} else {
|
||||
"DLSS FRAME GEN: NOT ON THIS CARD (RTX 40 AND UP)"
|
||||
}.into());
|
||||
|
||||
@@ -909,6 +909,16 @@ mod tests {
|
||||
rtx40.adapter = "NVIDIA GeForce RTX 4070".into();
|
||||
let rtx40 = lines(rtx40, true, false);
|
||||
assert!(rtx40.contains("FRAME GEN: DLSS, SUPPORTED") && !rtx40.contains("MOD"), "{rtx40}");
|
||||
// A supported card can still be rejected for an OS or driver requirement (for
|
||||
// example, HAGS being disabled); do not misreport that as incompatible hardware.
|
||||
let mut rtx40_unavailable = facts(true, false, false, false);
|
||||
rtx40_unavailable.adapter = "NVIDIA GeForce RTX 4080".into();
|
||||
let rtx40_unavailable = lines(rtx40_unavailable, false, false);
|
||||
assert!(
|
||||
rtx40_unavailable.contains("UNAVAILABLE (CHECK HAGS AND LOG)")
|
||||
&& !rtx40_unavailable.contains("NOT ON THIS CARD"),
|
||||
"{rtx40_unavailable}"
|
||||
);
|
||||
// RTX 20/30 with DLSS frame generation running: a mod unlocked it (MFG Unlocker).
|
||||
let unlocked = lines(facts(true, true, true, false), true, false);
|
||||
assert!(unlocked.contains("UNLOCKED BY A MOD") && !unlocked.contains("SUPPORTED HERE"), "{unlocked}");
|
||||
|
||||
Reference in new issue
Block a user