Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.
Swift apple-silicond3dmetaldxmtdxvkfexgame-porting-toolkitgamingmac-gamingmacosmetalmoltenvksteamswiftuivkd3d-protonwhisky-alternativewindows-gameswinewine-wrapper
Turn off DLSS when the renderer lacks its bridge
Matias G.3dbefadbfbb8
diff --git a/Sources/HighballApp/AppState.swift b/Sources/HighballApp/AppState.swiftindex c3c5f83..d168537 100644--- a/Sources/HighballApp/AppState.swift+++ b/Sources/HighballApp/AppState.swift@@ -842,6 +842,7 @@ final class AppState {try? runnerOld.kill()try? await Task.sleep(for: .seconds(2))bottle.settings.engineID = fresh.id+ if !bottle.supportsDLSS(engine: fresh) { bottle.settings.dlssEnabled = false }try bottle.save()await MainActor.run { self.appendLog("bottle '\(bottle.name)' moved to \(fresh.id) (same Wine, no prefix refresh needed)") }}@@ -888,6 +889,7 @@ final class AppState {try? await Task.sleep(for: .seconds(2))}bottle.settings.engineID = target.id+ if !bottle.supportsDLSS(engine: target) { bottle.settings.dlssEnabled = false }try bottle.save()guard EngineManifest.needsPrefixRefresh(from: source?.manifest, to: target.manifest) else {await MainActor.run { self.appendLog("bottle '\(bottle.name)' moved to \(target.id) (same Wine, no prefix refresh needed)") }diff --git a/Sources/HighballApp/BottleView.swift b/Sources/HighballApp/BottleView.swiftindex db705fa..040758b 100644--- a/Sources/HighballApp/BottleView.swift+++ b/Sources/HighballApp/BottleView.swift@@ -309,6 +309,9 @@ struct BottleSettingsSheet: View {var copy = state.bottles.first { $0.name == bottle.name } ?? bottlecopy.settings.renderer = newValuecopy.settings.rendererExplicit = true+ if let engine, !copy.supportsDLSS(engine: engine, renderer: newValue) {+ copy.settings.dlssEnabled = false+ }Task { @MainActor in state.update(copy) }})) {Text(L("DXMT — D3D10/11 → Metal (default)")).tag(Renderer.dxmt)@@ -320,8 +323,14 @@ struct BottleSettingsSheet: View {if vkd3dAvailable || currentRenderer == .vkd3d { Text(L("vkd3d-proton — D3D12 → Vulkan (experimental)")).tag(Renderer.vkd3d) }Text(L("WineD3D — slow fallback")).tag(Renderer.wined3d)}- Toggle(L("Enable DLSS (MetalFX)"), isOn: binding(\.dlssEnabled))- .disabled(!dlssAvailable && !liveBottle.settings.dlssEnabled)+ Toggle(L("Enable DLSS (MetalFX)"), isOn: Binding(+ get: { dlssAvailable && liveBottle.settings.dlssEnabled },+ set: { enabled in+ var copy = liveBottle+ copy.settings.dlssEnabled = dlssAvailable && enabled+ Task { @MainActor in state.update(copy) }+ }))+ .disabled(!dlssAvailable)Text(L("Lets games that support DLSS use the MetalFX translation in DXMT or D3DMetal. Turn DLSS on in the game's own graphics settings too. Stop and relaunch the environment after changing this.")).font(.caption).foregroundStyle(.secondary)if !d3dmetalAvailable, currentRenderer == .d3dmetal, let engine, let why = Renderer.d3dmetal.unavailableReason(in: engine) {