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
Launch logs keep MoltenVK's warnings and errors and drop its info output. MoltenVK printed its whole extension list, about 160 lines, at info level each time a process made a Vulkan instance, and a Steam launch makes dozens. The end of a log, where a crash lands, was more of that list, so the reports' digests and the logs players paste ended before the failure (highball#486, #490, #492, Portal 2 on Discord). Every launch now sets MVK_CONFIG_LOG_LEVEL=2: [mvk-warn] and [mvk-error] lines stay, our MoltenVK patches' HIGHBALL markers among them, and a level the engine or the player sets wins. 591 tests pass on the M4.
Gauthier Piarrette86c161d1f41d
diff --git a/Sources/HighballKit/Bottle.swift b/Sources/HighballKit/Bottle.swiftindex 36a8944..b298f67 100644--- a/Sources/HighballKit/Bottle.swift+++ b/Sources/HighballKit/Bottle.swift@@ -769,6 +769,13 @@ public struct Bottle: Sendable {// CrossOver switch the engine's winemac.so carries adds the bit for them (Tomb Raider IV-VI// Remastered, highball#136). It touches nothing that succeeded before.env["CX_FWD_COMPAT_GL_CTX"] = "1"+ // MoltenVK prints its whole extension list, about 160 lines, at info level each time a+ // process makes a Vulkan instance, and a Steam launch makes dozens. The end of the log,+ // where a crash lands, was more of that list, so the reports' digests and the logs players+ // paste ended before the failure (highball#486, #490, #492, Portal 2 on Discord). Warnings+ // and errors stay, our patches' markers among them, and a level the engine or the player+ // sets wins.+ if env["MVK_CONFIG_LOG_LEVEL"] == nil { env["MVK_CONFIG_LOG_LEVEL"] = "2" }let r = effective// The async toggle travels in the generated dxvk.conf, NOT the DXVK_ASYNC env var:// the async fork reads `env == "1" || config.enableAsync`, so an env 1 can never bediff --git a/Tests/HighballKitTests/EngineArchTests.swift b/Tests/HighballKitTests/EngineArchTests.swiftindex 6dbb1f4..eccab50 100644--- a/Tests/HighballKitTests/EngineArchTests.swift+++ b/Tests/HighballKitTests/EngineArchTests.swift@@ -223,4 +223,12 @@ final class EngineArchTests: XCTestCase {let intel = InstalledEngine(manifest: manifest("x86_64", requires: ["rosetta2"]), root: tempRoot("x64-engine"))XCTAssertEqual(try bottle.environment(engine: intel, renderer: .wined3d)["ROSETTA_ADVERTISE_AVX"], "1")}++ func testMoltenVKLogsWarningsNotItsExtensionList() throws {+ var bottle = Bottle(url: URL(fileURLWithPath: "/tmp/hb-arch-test-bottle"), settings: BottleSettings(name: "t", engineID: "x64-test-r1"))+ let intel = InstalledEngine(manifest: manifest("x86_64", requires: ["rosetta2"]), root: tempRoot("x64-engine"))+ XCTAssertEqual(try bottle.environment(engine: intel, renderer: .wined3d)["MVK_CONFIG_LOG_LEVEL"], "2", "warnings and errors only")+ bottle.settings.environment["MVK_CONFIG_LOG_LEVEL"] = "3"+ XCTAssertEqual(try bottle.environment(engine: intel, renderer: .wined3d)["MVK_CONFIG_LOG_LEVEL"], "3", "a player's own level wins")+ }}