Skip to content

Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.

A program that only has Direct3D 12 gets a mode that has it on an environment set to another mode by hand: Forza Horizon 6 on an environment set to DXMT launched on DXMT and stalled at Steam's notice (0.10.9 release pass on an M4, 2026-10-06)

Gauthier Piarrettef1d9ee7cd4f4
diff --git a/Sources/HighballApp/AppState.swift b/Sources/HighballApp/AppState.swift
index e43aab7..ad1d815 100644
--- a/Sources/HighballApp/AppState.swift
+++ b/Sources/HighballApp/AppState.swift
@@ -413,16 +413,17 @@ final class AppState {
// A program that needs Direct3D 12 cannot run on DXMT, DXVK or Wine's Direct3D, so a
// mode that has it takes over before the launch, and the log says so (Farming
// Simulator 22 stopped at "Shader model 6.0 is required" on DXMT, highball#139;
- // Unreal 5 titles stop before their menu, highball#138). Only when nothing more
- // specific chose the mode: a row's verified mode or a per-game choice stands.
- if !wanted.servesDirect3D12, renderer == nil, rendererOverride(for: item) == nil, entry?.effectiveRenderer() == nil,
- entry?.nativeVulkan != true, programNeedsDirect3D12(item) {
- let instead = Renderer.forDirect3D12Only(chosen: wanted, engine: engine)
- if instead != wanted {
- appendLog("\(item.title) needs Direct3D 12 and \(GamePageCopy.plainName(wanted)) has none, playing with \(GamePageCopy.plainName(instead)).")
- wanted = instead
- renderer = instead
- }
+ // Unreal 5 titles stop before their menu, highball#138). A per-game choice and a
+ // row's verified mode stand; an environment's explicit mode stands too, except for a
+ // program it cannot run at all (Forza Horizon 6 on a DXMT environment, 2026-10-06).
+ if let instead = Renderer.direct3D12TakeOver(chosen: wanted, requested: renderer, gameOverride: rendererOverride(for: item),
+ row: entry?.effectiveRenderer(), environmentExplicit: bottle.settings.rendererExplicit,
+ nativeVulkan: entry?.nativeVulkan == true, engine: engine,
+ programNeedsDirect3D12: { self.programNeedsDirect3D12(item) }) {
+ let kept = bottle.settings.rendererExplicit ? " \(bottle.name) keeps \(GamePageCopy.plainName(wanted)) for everything else." : ""
+ appendLog("\(item.title) needs Direct3D 12 and \(GamePageCopy.plainName(wanted)) has none, playing with \(GamePageCopy.plainName(instead)).\(kept)")
+ wanted = instead
+ renderer = instead
}
switch wanted.availability(in: engine) {
case .available:
diff --git a/Sources/HighballApp/GameDetailView.swift b/Sources/HighballApp/GameDetailView.swift
index 7a7311d..0a421ff 100644
--- a/Sources/HighballApp/GameDetailView.swift
+++ b/Sources/HighballApp/GameDetailView.swift
@@ -34,7 +34,8 @@ struct GameDetailView: View {
private var verdict: GamePageCopy.Verdict { GamePageCopy.verdict(entry, myChip: state.machineChip) }
private var willDo: [GamePageCopy.WillDo] {
GamePageCopy.willDo(entry, recipe: fixRecipe, applied: fixApplied, bottleRenderer: bottle?.settings.renderer ?? .dxvk,
- explicit: bottle?.settings.rendererExplicit ?? false, gameOverride: state.rendererOverride(for: item))
+ explicit: bottle?.settings.rendererExplicit ?? false, gameOverride: state.rendererOverride(for: item),
+ needsDirect3D12: item.installed && entry?.nativeVulkan != true && state.programNeedsDirect3D12(item))
}
private var engineName: String? { bottle.flatMap { state.engine(for: $0) }?.displayName }
@@ -253,7 +254,8 @@ struct GameDetailView: View {
}
if let held = GamePageCopy.rowRendererHeldBack(entry, bottleRenderer: bottle?.settings.renderer ?? .dxvk,
explicit: bottle?.settings.rendererExplicit ?? false,
- gameOverride: state.rendererOverride(for: item)),
+ gameOverride: state.rendererOverride(for: item),
+ needsDirect3D12: item.installed && state.programNeedsDirect3D12(item)),
let engine = bottle.flatMap({ state.engine(for: $0) }), held.availability(in: engine) == .available {
Button(String(format: L("Use %@ for this game"), GamePageCopy.plainName(held))) {
state.setRendererOverride(held, for: item.id)
diff --git a/Sources/HighballApp/GraphicsModePicker.swift b/Sources/HighballApp/GraphicsModePicker.swift
index f310ea2..b2d00ea 100644
--- a/Sources/HighballApp/GraphicsModePicker.swift
+++ b/Sources/HighballApp/GraphicsModePicker.swift
@@ -40,7 +40,7 @@ struct GraphicsModePicker: View {
.labelsHidden().frame(maxWidth: 260)
}
Text(live.settings.rendererExplicit
- ? String(format: L("%@ for every game in this environment, whatever the database says."), GamePageCopy.plainName(live.settings.renderer))
+ ? String(format: L("%@ for every game in this environment, whatever the database says. A game that only has DirectX 12 still gets a mode that has it."), GamePageCopy.plainName(live.settings.renderer))
: String(format: L("The mode verified for each game; %@ for games without a verdict."), GamePageCopy.plainName(live.settings.renderer)))
.font(.caption).foregroundStyle(.secondary)
}
diff --git a/Sources/HighballApp/L10n.swift b/Sources/HighballApp/L10n.swift
index c314616..d9aea6d 100644
--- a/Sources/HighballApp/L10n.swift
+++ b/Sources/HighballApp/L10n.swift
@@ -517,7 +517,7 @@ enum L10n {
"titles": "titres",
// Whole-app review 2026-09-04: environment wording, Settings, game page
- "%@ for every game in this environment, whatever the database says.": "%@ pour tous les jeux de cet environnement, quoi que dise la base.",
+ "%@ for every game in this environment, whatever the database says. A game that only has DirectX 12 still gets a mode that has it.": "%@ pour tous les jeux de cet environnement, quoi que dise la base. Un jeu qui n'a que DirectX 12 reçoit quand même un mode qui l'a.",
"%d titles": "%d titres",
// An environment that already fits a game's engine, and the windows Highball brings forward (highball-db#318, highball#264)
"%d installed": "%d installés",
diff --git a/Sources/HighballKit/Bottle.swift b/Sources/HighballKit/Bottle.swift
index a81ec5d..7309e39 100644
--- a/Sources/HighballKit/Bottle.swift
+++ b/Sources/HighballKit/Bottle.swift
@@ -116,6 +116,31 @@ public enum Renderer: String, Codable, CaseIterable, Sendable {
return chosen
}
+ /// The mode a launch switches to because the program only has Direct3D 12 and the mode
+ /// chosen for it has none, or nil when the chosen mode stands.
+ ///
+ /// A choice made for this game alone (the caller's mode, a per-game mode) always stands, and
+ /// so does a native Vulkan title, which ignores the graphics mode. A database row's verified
+ /// mode stands when it is what chose. An environment's explicit mode stands for every game it
+ /// can run, but not for one it cannot run at all: Forza Horizon 6 imports Direct3D 12 and no
+ /// other graphics API, its row says D3DMetal, and on an environment set to DXMT by hand the
+ /// row was held back and nothing else stepped in, so the launch went to DXMT and stalled (the
+ /// 0.10.9 release pass on an M4, 2026-10-06). The same environment without a row for the game
+ /// already switched (highball#139), so a row could only make things worse, which it must not.
+ /// The row's own mode is used when it has Direct3D 12, else `forDirect3D12Only` decides. The
+ /// environment's setting does not change; this launch alone runs with the returned mode.
+ /// `programNeedsDirect3D12` reads the program's imports, so it is asked last.
+ public static func direct3D12TakeOver(chosen: Renderer, requested: Renderer?, gameOverride: Renderer?, row: Renderer?,
+ environmentExplicit: Bool, nativeVulkan: Bool, engine: InstalledEngine,
+ programNeedsDirect3D12: () -> Bool) -> Renderer? {
+ guard !chosen.servesDirect3D12, requested == nil, gameOverride == nil, !nativeVulkan else { return nil }
+ if row != nil, !environmentExplicit { return nil }
+ guard programNeedsDirect3D12() else { return nil }
+ if let row, row.servesDirect3D12, row.availability(in: engine) != .notShipped { return row }
+ let instead = forDirect3D12Only(chosen: chosen, engine: engine)
+ return instead == chosen ? nil : instead
+ }
+
/// The backend to offer after `current` failed on launch, cycling through the Metal-backed
/// options. Direct3D 9 no longer constrains this: `withD9VK` attaches DXVK's d3d9 to every
/// renderer, so switching backend can't drop D3D9 support the way it could before 0.7.17.
diff --git a/Sources/HighballKit/GamePageCopy.swift b/Sources/HighballKit/GamePageCopy.swift
index 07e621b..2b81c3d 100644
--- a/Sources/HighballKit/GamePageCopy.swift
+++ b/Sources/HighballKit/GamePageCopy.swift
@@ -88,14 +88,26 @@ public enum GamePageCopy {
/// What Play applies, in order, from the row and the fix recipe. `applied` means the recipe
/// already ran in this environment, so its steps read as done.
+ /// `needsDirect3D12`: the program only has Direct3D 12 (`ProgramNeeds.wantsDirect3D12`), so a
+ /// mode without it gives way at Play (`Renderer.direct3D12TakeOver`) and the plan says so.
public static func willDo(_ entry: GameDBEntry?, recipe: Recipe?, applied: Bool,
bottleRenderer: Renderer, explicit: Bool = false, gameOverride: Renderer? = nil,
+ needsDirect3D12: Bool = false,
osMajor: Int = ProcessInfo.processInfo.operatingSystemVersion.majorVersion) -> [WillDo] {
var items: [WillDo] = []
+ let rowMode = entry?.effectiveRenderer(osMajor: osMajor)
+ let direct3D12Mode = (rowMode?.servesDirect3D12 == true ? rowMode : nil) ?? .d3dmetal
+ let givesWay = needsDirect3D12 && !bottleRenderer.servesDirect3D12 && (explicit || rowMode == nil)
if entry?.nativeVulkan == true {
items.append(WillDo(text: "Let it draw with Vulkan directly; the graphics mode does not apply to this game"))
} else if let gameOverride {
items.append(WillDo(text: "Use \(plainName(gameOverride)) for this game (set by you); the environment stays on \(plainName(bottleRenderer))"))
+ } else if givesWay {
+ // The launch switches (Renderer.direct3D12TakeOver); the plan must not promise the
+ // environment's mode for a game that cannot run in it.
+ items.append(WillDo(text: explicit
+ ? "Use \(plainName(direct3D12Mode)) for this game: it only has DirectX 12, which \(plainName(bottleRenderer)), your environment's setting, does not have. The environment keeps \(plainName(bottleRenderer)) for everything else"
+ : "Use \(plainName(direct3D12Mode)) for this game: it only has DirectX 12, which the environment's \(plainName(bottleRenderer)) does not have"))
} else if explicit {
if let wanted = entry?.effectiveRenderer(osMajor: osMajor), wanted != bottleRenderer {
items.append(WillDo(text: "Use \(plainName(bottleRenderer)), your environment's setting. The database asks for \(plainName(wanted)), and an environment's own setting wins"))
@@ -132,9 +144,13 @@ public enum GamePageCopy {
/// no per-game choice exists yet. The game page offers it for this game alone, so the reader
/// is never left with a plan that names two graphics modes (2026-09-11 walkthrough).
public static func rowRendererHeldBack(_ entry: GameDBEntry?, bottleRenderer: Renderer, explicit: Bool, gameOverride: Renderer?,
+ needsDirect3D12: Bool = false,
osMajor: Int = ProcessInfo.processInfo.operatingSystemVersion.majorVersion) -> Renderer? {
guard explicit, gameOverride == nil, entry?.nativeVulkan != true,
let wanted = entry?.effectiveRenderer(osMajor: osMajor), wanted != bottleRenderer else { return nil }
+ // Nothing is held back from a program that only has Direct3D 12: Play already gives it
+ // the row's mode when the environment's has no Direct3D 12 (Renderer.direct3D12TakeOver).
+ if needsDirect3D12, !bottleRenderer.servesDirect3D12, wanted.servesDirect3D12 { return nil }
return wanted
}
diff --git a/Tests/HighballKitTests/GamePageCopyTests.swift b/Tests/HighballKitTests/GamePageCopyTests.swift
index 69edad3..46072ce 100644
--- a/Tests/HighballKitTests/GamePageCopyTests.swift
+++ b/Tests/HighballKitTests/GamePageCopyTests.swift
@@ -117,6 +117,29 @@ extension GamePageCopyTests {
XCTAssertNil(GamePageCopy.rowRendererHeldBack(e, bottleRenderer: .dxmt, explicit: true, gameOverride: nil, osMajor: 26))
}
+ /// The page and the launch agree on a program that only has Direct3D 12: the plan names the mode
+ /// Play will really use and offers nothing for this game alone (0.10.9 release pass, 2026-10-06).
+ func testADirect3D12OnlyGameIsNeverPromisedAModeWithoutIt() throws {
+ let forza = try entry(#"{"id":"forza-horizon-6","title":"Forza Horizon 6","steam_appid":2483190,"status":"verified-local","renderer":"d3dmetal"}"#)
+ XCTAssertEqual(GamePageCopy.willDo(forza, recipe: nil, applied: false, bottleRenderer: .dxmt, explicit: true, needsDirect3D12: true, osMajor: 27).first?.text,
+ "Use Apple's DirectX 12 support for this game: it only has DirectX 12, which DXMT (DirectX 11 on Metal), your environment's setting, does not have. The environment keeps DXMT (DirectX 11 on Metal) for everything else")
+ XCTAssertNil(GamePageCopy.rowRendererHeldBack(forza, bottleRenderer: .dxmt, explicit: true, gameOverride: nil, needsDirect3D12: true, osMajor: 27),
+ "Play already uses the row's mode, so there is nothing to offer")
+ // A game with another graphics path: the environment's explicit mode wins as before, and the
+ // page still offers the row's mode for this game.
+ XCTAssertEqual(GamePageCopy.willDo(forza, recipe: nil, applied: false, bottleRenderer: .dxmt, explicit: true, needsDirect3D12: false, osMajor: 27).first?.text,
+ "Use DXMT (DirectX 11 on Metal), your environment's setting. The database asks for Apple's DirectX 12 support, and an environment's own setting wins")
+ XCTAssertEqual(GamePageCopy.rowRendererHeldBack(forza, bottleRenderer: .dxmt, explicit: true, gameOverride: nil, needsDirect3D12: false, osMajor: 27), .d3dmetal)
+ // No row, environment on Automatic: the plan now says what Play has done since highball#139.
+ XCTAssertEqual(GamePageCopy.willDo(nil, recipe: nil, applied: false, bottleRenderer: .dxmt, explicit: false, needsDirect3D12: true, osMajor: 27).first?.text,
+ "Use Apple's DirectX 12 support for this game: it only has DirectX 12, which the environment's DXMT (DirectX 11 on Metal) does not have")
+ // A row that chose, or a per-game choice, is told as before.
+ XCTAssertEqual(GamePageCopy.willDo(forza, recipe: nil, applied: false, bottleRenderer: .dxmt, explicit: false, needsDirect3D12: true, osMajor: 27).first?.text,
+ "Use Apple's DirectX 12 support for this game, the way it was verified, instead of the environment's DXMT (DirectX 11 on Metal)")
+ XCTAssertEqual(GamePageCopy.willDo(forza, recipe: nil, applied: false, bottleRenderer: .dxmt, explicit: true, gameOverride: .d3dmetal, needsDirect3D12: true, osMajor: 27).first?.text,
+ "Use Apple's DirectX 12 support for this game (set by you); the environment stays on DXMT (DirectX 11 on Metal)")
+ }
+
func testFpsPhraseKeepsTheFigureAndWhereItWasRead() {
XCTAssertEqual(GamePageCopy.fpsPhrase("60 to 82"), "60 to 82 frames per second")
XCTAssertEqual(GamePageCopy.fpsPhrase("111.8 fps"), "111.8 fps")
diff --git a/Tests/HighballKitTests/RendererAvailabilityTests.swift b/Tests/HighballKitTests/RendererAvailabilityTests.swift
index 387c858..67308c5 100644
--- a/Tests/HighballKitTests/RendererAvailabilityTests.swift
+++ b/Tests/HighballKitTests/RendererAvailabilityTests.swift
@@ -63,6 +63,45 @@ final class RendererAvailabilityTests: XCTestCase {
XCTAssertEqual(Renderer.forDirect3D12Only(chosen: .dxmt, engine: try engine(ships: ["dxmt", "dxvk", "d9vk"], accepted: true)), .dxmt)
}
+ /// Forza Horizon 6 imports Direct3D 12 and no other graphics API, its row says D3DMetal, and on
+ /// an environment set to DXMT by hand Play launched it on DXMT, where it stalled (0.10.9 release
+ /// pass, M4, 2026-10-06). The environment's explicit mode stands for every game it can run.
+ func testAnExplicitEnvironmentModeGivesWayOnlyToAProgramItCannotRun() throws {
+ let full = try engine(accepted: true)
+ func takeOver(chosen: Renderer = .dxmt, requested: Renderer? = nil, gameOverride: Renderer? = nil, row: Renderer?,
+ explicit: Bool, nativeVulkan: Bool = false, needs12: Bool, engine: InstalledEngine? = nil) -> Renderer? {
+ Renderer.direct3D12TakeOver(chosen: chosen, requested: requested, gameOverride: gameOverride, row: row,
+ environmentExplicit: explicit, nativeVulkan: nativeVulkan, engine: engine ?? full,
+ programNeedsDirect3D12: { needs12 })
+ }
+ // The case of the pass: explicit DXMT, the row's D3DMetal, a Direct3D 12-only program.
+ XCTAssertEqual(takeOver(row: .d3dmetal, explicit: true, needs12: true), .d3dmetal)
+ // The row's own Direct3D 12 mode is preferred over the generic choice.
+ XCTAssertEqual(takeOver(row: .vkd3d, explicit: true, needs12: true, engine: try engine(ships: ["dxmt", "dxvk", "d9vk", "d3dmetal", "vkd3d"], accepted: true)), .vkd3d)
+ // A row without Direct3D 12 does not stop the switch when the environment overrode it.
+ XCTAssertEqual(takeOver(row: .dxvk, explicit: true, needs12: true), .d3dmetal)
+ // A program with another graphics path keeps the environment's explicit mode: the promise stands.
+ XCTAssertNil(takeOver(row: .d3dmetal, explicit: true, needs12: false))
+ // Without a row the switch was already made for an explicit environment (highball#139).
+ XCTAssertEqual(takeOver(row: nil, explicit: true, needs12: true), .d3dmetal)
+ XCTAssertEqual(takeOver(row: nil, explicit: false, needs12: true), .d3dmetal)
+ // A row that chose (environment on Automatic) stands, whatever it says.
+ XCTAssertNil(takeOver(row: .dxvk, explicit: false, needs12: true))
+ // A choice for this game alone always stands, and so does a native Vulkan title.
+ XCTAssertNil(takeOver(requested: .dxmt, row: .d3dmetal, explicit: true, needs12: true))
+ XCTAssertNil(takeOver(gameOverride: .dxmt, row: .d3dmetal, explicit: true, needs12: true))
+ XCTAssertNil(takeOver(row: .d3dmetal, explicit: true, nativeVulkan: true, needs12: true))
+ // A chosen mode with Direct3D 12 never switches.
+ XCTAssertNil(takeOver(chosen: .d3dmetal, row: .d3dmetal, explicit: true, needs12: true))
+ // An engine with no Direct3D 12 mode at all: nothing to switch to, the launch fails as before.
+ XCTAssertNil(takeOver(row: .d3dmetal, explicit: true, needs12: true, engine: try engine(ships: ["dxmt", "dxvk", "d9vk"], accepted: true)))
+ // The import check is the expensive part: it is not asked when something else decides.
+ var asked = false
+ _ = Renderer.direct3D12TakeOver(chosen: .dxmt, requested: nil, gameOverride: .dxmt, row: .d3dmetal, environmentExplicit: true,
+ nativeVulkan: false, engine: full, programNeedsDirect3D12: { asked = true; return true })
+ XCTAssertFalse(asked, "a per-game choice decides without reading the program")
+ }
+
// MARK: Availability
func testAvailabilityTellsLicenceFromAbsence() throws {