fix: run Final Fantasy VII Rebirth at D3D12 feature level 12_2

This commit is contained in:
Kurt Himebauch committed 2026-11-08 12:00:25 -05:00
1 parent a4f26799ab
commit d08a5e6a73
2 files changed
+19

No files matched your search

@@ -123,6 +123,12 @@ def deep_rock_gdk_raytracing(game):
return {}, ["-noraytracing", "-ini:Engine:[/Script/Engine.RendererSettings]:r.RayTracing=False"], "Deep Rock Galactic GDK: ray tracing off (D3D12 pipeline creation fails on Thor)"
@fix
def ff7_rebirth_feature_level(game):
if "ff7rebirth_.exe" in game.files or game.stem in ("ff7rebirth_", "ff7rebirth_-win64-shipping"):
return {"VKD3D_FEATURE_LEVEL": "12_2"}, [], "Final Fantasy VII Rebirth: D3D12 feature level 12_2 (the device-reported level fails its DX12 check)"
@fix
def arkham_city_x87(game):
if "batmanac.exe" in game.files:
+13
View File
@@ -1415,6 +1415,19 @@ class GameEnvironmentTest(unittest.TestCase):
config = {"version": 1, "shared": {}, "games": {"42": values}}
self.assertEqual(MODULE["apply_config"]({}, config, "42", env), values, name)
def test_ff7_rebirth_runs_at_feature_level_12_2_unless_the_game_overrides_it(self):
with tempfile.TemporaryDirectory() as tmp:
root = Path(tmp) / "FFVII Rebirth"
shipping = root / "ff7rebirth_/Binaries/Win64/ff7rebirth_-Win64-Shipping.exe"
shipping.parent.mkdir(parents=True)
for exe in (root / "ff7rebirth_.exe", shipping):
exe.touch()
env, extra, notes = MODULE["engine_fixes"](str(exe), [])
self.assertEqual(env, {"VKD3D_FEATURE_LEVEL": "12_2"}, exe.name)
self.assertTrue(notes)
config = {"version": 1, "shared": {}, "games": {"42": {"VKD3D_FEATURE_LEVEL": "12_1"}}}
self.assertEqual(MODULE["apply_config"]({}, config, "42", env), {"VKD3D_FEATURE_LEVEL": "12_1"})
def test_unity_players_keep_tso_over_the_preset(self):
with tempfile.TemporaryDirectory() as tmp:
def game(*names):