mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-24 21:55:57 +00:00
Tick the setup's AMD FSR box by default only with an AMD display adapter
The FSR step downloads on any GPU since #1, but the box was ticked for every player. The window now lists the display adapters Windows reports (screens.windows_adapter_names) and ticks it when one is AMD, or when none could be listed. The README's install list gets its fourth step back, and the menu's Upscalers text no longer says FSR runs on AMD GPUs alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
dab62eaf49
commit
48cb8a198a
11 files changed
+77
-20
No files matched your search
@@ -41,7 +41,8 @@ from installer.runner import Context # noqa: E402
|
||||
from installer.steps import Fonts, all_steps # noqa: E402
|
||||
from installer.guilogic import (DONE, FAILED, PENDING, RUNNING, SKIPPED, UI_LANGUAGE_LABELS, # noqa: E402
|
||||
UI_LANGUAGES, Catalog, Form, Model, Process, amount, default_game_language,
|
||||
describe_event, parse_line, ui_language_for_langid, windows_ui_language)
|
||||
describe_event, fsr_default, parse_line, ui_language_for_langid,
|
||||
windows_ui_language)
|
||||
|
||||
INSTALLED = ROOT / 'build' / 'install-test'
|
||||
FIXTURE = ROOT / 'build' / 'inst-gui' / 'e2e-install'
|
||||
@@ -181,6 +182,21 @@ class RunStatesTest(unittest.TestCase):
|
||||
self.assertEqual(m.result, 'ok')
|
||||
|
||||
|
||||
class FsrDefaultTest(unittest.TestCase):
|
||||
"""Download AMD FSR is ticked at start with an AMD adapter only, and when no adapter could be listed."""
|
||||
|
||||
def test_amd(self):
|
||||
self.assertTrue(fsr_default(['AMD Radeon RX 9060 XT']))
|
||||
self.assertTrue(fsr_default(['Intel(R) UHD Graphics', 'AMD Radeon(TM) Graphics']))
|
||||
|
||||
def test_other_gpus(self):
|
||||
self.assertFalse(fsr_default(['NVIDIA GeForce RTX 4080 SUPER']))
|
||||
self.assertFalse(fsr_default(['Intel(R) Arc(TM) A770 Graphics', 'Microsoft Basic Render Driver']))
|
||||
|
||||
def test_unknown(self):
|
||||
self.assertTrue(fsr_default([]))
|
||||
|
||||
|
||||
class FormTest(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.tmp = tempfile.TemporaryDirectory()
|
||||
|
||||
Reference in new issue
Block a user