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
Frame generation: a button picks lsfg-vk.dll from anywhere
Gauthier Piarrettee6f3fa6b12ae
diff --git a/Sources/HighballApp/BottleView.swift b/Sources/HighballApp/BottleView.swiftindex fb6d5af..1e6a4e4 100644--- a/Sources/HighballApp/BottleView.swift+++ b/Sources/HighballApp/BottleView.swift@@ -1,5 +1,7 @@+import AppKitimport HighballKitimport SwiftUI+import UniformTypeIdentifiers// MARK: - Design tokens@@ -391,6 +393,20 @@ struct BottleSettingsSheet: View {case .off:EmptyView()}+ // The shader DLL is a plain file, so a copy of Lossless Scaling in another Wine+ // setup (CrossOver, a second account) serves as well as one installed here. A+ // picker beats typing LSFGM_DLL_PATH by hand (discussion #196).+ if liveBottle.settings.frameGen > 1 {+ HStack(spacing: 8) {+ Button(L("Use a Lossless Scaling DLL from elsewhere…")) { chooseFrameGenDLL() }+ .controlSize(.small)+ if let override = liveBottle.settings.environment["LSFGM_DLL_PATH"], !override.isEmpty {+ Text(override).font(.caption).foregroundStyle(.secondary)+ .lineLimit(1).truncationMode(.middle)+ Button(L("Clear")) { setFrameGenDLL(nil) }.buttonStyle(.link).controlSize(.small)+ }+ }+ }}Toggle(L("Metal performance HUD"), isOn: binding(\.metalHUD))Toggle(L("DXVK async shader compilation (experimental — can skip draws while a shader compiles)"), isOn: binding(\.dxvkAsync))@@ -514,6 +530,25 @@ struct BottleSettingsSheet: View {}}+ /// Picks lsfg-vk.dll wherever it lives and records it as the environment's LSFGM_DLL_PATH,+ /// the same variable the environment editor accepts by hand.+ private func chooseFrameGenDLL() {+ let panel = NSOpenPanel()+ panel.canChooseDirectories = false+ panel.allowsMultipleSelection = false+ if let dll = UTType(filenameExtension: "dll") { panel.allowedContentTypes = [dll] }+ panel.message = L("Choose lsfg-vk.dll from a Lossless Scaling install on its lsfg-vk beta branch")+ guard panel.runModal() == .OK, let url = panel.url else { return }+ setFrameGenDLL(url.path)+ }++ private func setFrameGenDLL(_ path: String?) {+ var copy = state.bottles.first { $0.name == bottle.name } ?? bottle+ if let path { copy.settings.environment["LSFGM_DLL_PATH"] = path }+ else { copy.settings.environment.removeValue(forKey: "LSFGM_DLL_PATH") }+ Task { @MainActor in state.update(copy) }+ }+private func binding<T>(_ keyPath: WritableKeyPath<BottleSettings, T>) -> Binding<T> {Binding(get: { (state.bottles.first { $0.name == bottle.name } ?? bottle).settings[keyPath: keyPath] },diff --git a/Sources/HighballApp/L10n.swift b/Sources/HighballApp/L10n.swiftindex 4dd9d7c..d94252d 100644--- a/Sources/HighballApp/L10n.swift+++ b/Sources/HighballApp/L10n.swift@@ -33,6 +33,9 @@ enum L10n {"This engine has no usable frame generation component. Build or install the component for this engine.": "Ce moteur ne dispose pas d’un composant de génération d’images utilisable. Compilez ou installez le composant pour ce moteur.","The real MoltenVK override is unusable. Use a readable driver with a different filename from libMoltenVK.dylib.": "Le chemin personnalisé du véritable pilote MoltenVK est inutilisable. Utilisez un pilote lisible dont le nom diffère de libMoltenVK.dylib.","The shader DLL override is not a readable file. Correct LSFGM_DLL_PATH or remove the override.": "Le chemin personnalisé de la DLL de shaders ne désigne pas un fichier lisible. Corrigez LSFGM_DLL_PATH ou supprimez cette valeur.",+ "Use a Lossless Scaling DLL from elsewhere…": "Utiliser une DLL Lossless Scaling située ailleurs…",+ "Choose lsfg-vk.dll from a Lossless Scaling install on its lsfg-vk beta branch": "Choisissez lsfg-vk.dll dans une installation de Lossless Scaling sur sa branche bêta lsfg-vk",+ "Clear": "Effacer","Install Lossless Scaling from Steam in any environment and select its lsfg-vk beta branch (Properties → Betas), or point LSFGM_DLL_PATH at its lsfg-vk.dll.": "Installez Lossless Scaling depuis Steam dans n'importe quel environnement et sélectionnez sa branche bêta lsfg-vk (Propriétés → Bêtas), ou faites pointer LSFGM_DLL_PATH vers son lsfg-vk.dll.",// Sidebar & shell"Update engine": "Mettre à jour le moteur",