Repository navigation
MetalSharp Wine 11.12 brings games with Easy Anti-Cheat to the FEX build: wine -linuxhost runs a game on a Linux build of MetalSharp Wine, inside native macOS processes with no virtual machine, so its anti-cheat takes the path it takes under Proton. ELDEN RING runs with Easy Anti-Cheat and goes online, Rocket League starts with it enabled, and Fall Guys plays. Counter-Strike 2 no longer crashes half a minute in, and Phantom Blade Zero no longer hangs at startup.
How to use the Linux engine
It is part of the arm64 app, and off unless you ask for it.
-
In MetalSharp (1.8.0 and later): open the game's Game Settings > Runtime and turn on EAC, then press Play.
-
From a terminal: put
-linuxhostbefore the program. The first start unpacks its Linux root (about a minute), and a new prefix takes another minute.WINEPREFIX=~/Games/rl-linux $WINE -linuxhost ~/Games/RocketLeague/Binaries/Win64/RocketLeague.exe
Steam games use the Windows Steam you already have:
-
Start Steam as you normally do, with the regular arm64 Wine, and sign in. Leave it running.
-
Start the game with the Linux engine on. In MetalSharp that is the EAC switch. From a terminal, name the game's Steam app id:
WINEPREFIX=<Steam's prefix> LINUXHOST_TWIN_PREFIX=1 LINUXHOST_STEAM_APPID=1245620 LINUXHOST_EAC=1 \ $WINE -linuxhost "<library>/steamapps/common/ELDEN RING/Game/eldenring.exe"
The game is your Steam account's, goes online, and shows as running in Steam. Steam's Stop button ends it. Saves are shared with the regular prefix. If Steam isn't running, the game is refused. After force-quitting a game, wait a minute before starting it again: some games' servers refuse the new session until the old one times out.
A Linux engine prefix is its own: it won't take a prefix the arm64 Wine made, and the two must not be mixed. docs/USAGE.md has the rest.
Not every anti-cheat game works. A game whose Easy Anti-Cheat has no Linux module (Fortnite) is refused by the anti-cheat itself. Sound on the Linux engine has not been checked.
FEX build
wine -linuxhost: the Linux engine. The app carries a second Wine, MetalSharp Wine built for x86-64 Linux, which voile-lkd runs in native arm64 processes: LKD serves its Linux system calls and FEX translates its code. It is the work of @Zagrios and the contributors of Obelisk, whose engine it is.- Graphics: Direct3D 11 and 12 through Neptune on a native build of Mullion, OpenGL 4.6 through WineMetalGL, Vulkan 1.4 through Venus on MoltenVK, and DXVK and VKD3D-Proton (
GRAPHICS_BACKEND=dxvk,vkd3d). 32-bit programs run too. - Steam games reach your Steam through a bridge that carries the game's Steam connection across.
- Epic games get a stand-in for the launcher their anti-cheat starter looks for.
- Nothing to install: the Linux root is unpacked with macOS's own
tar.
- Graphics: Direct3D 11 and 12 through Neptune on a native build of Mullion, OpenGL 4.6 through WineMetalGL, Vulkan 1.4 through Venus on MoltenVK, and DXVK and VKD3D-Proton (
- Counter-Strike 2 no longer crashes 25 to 45 seconds in (#172). Its lock-free queue relies on x86's ordering for a read that the game's DLLs don't list as needing it, and FEX orders only the listed ones. Wine now hides that list from FEX for
cs2.exe, so every access in the game's modules is ordered. - Phantom Blade Zero no longer hangs at startup (#135, #164). Memory that x64 code allocates as executable is no longer mapped executable on the host, which FEX never needed. Before, every burst of writes made macOS retype the pages in the kernel.
FEX_BLOCKJITNAMING=1names every guest instruction for a profiler (#153), so a host address fromsampleresolves to the game's own instruction.- The app's Windows modules ship without debug information, which more than halved them (2.4 GB to 1.0 GB) and keeps the app's download about where 11.0's was, with the Linux engine added. Wine's own crash backtraces no longer name functions in those modules.
- The earlier Easy Anti-Cheat work is removed in favor of the Linux engine: the Linux module host and Proton's EasyAntiCheat runtime support. BattlEye's support stays.
Both builds
- A crash on a thread Wine didn't create is reported as what it was (#167, #168, #169, by @multision). A fault on a GStreamer, CoreAudio or Metal thread went through Wine's exception path, which crashed again, and the report showed that second crash. The process now ends with the original signal, named on one line.
- Mullion
a5469d53:- Blade & Sorcery's shoreline renders whole (by @multision): a built-in profile caps its tessellation factor.
threadrip.exesays where a hung game's threads are when no stack walk can.- A native macOS build for the Linux engine.
- WineMetalGL 4.2.0: legacy CS:GO loads and plays faster, OpenMW's rain, smoke and waterfalls draw, Another Brick in the Mall starts, City of Heroes offers all its graphics features, and WineMetalGL Settings has per-game frame rate limits.
- MetalVR
2c1aecf9: smoother SteamVR games, with no more flashes of an old view, for one refresh of added latency. - The version reads "MetalSharp Wine 11.12" (#174, #175).
x86_64 build
- It is 11.0's app with the parts that changed rebuilt: Wine's
ntdll.so, Mullion, WineMetalGL and MetalVR. DLSS works on every lane as before: Mullion's and the VKD3D / DXVK lane's own cores, and Apple's on D3DMetal.
Credits and licenses
The Linux engine's parts keep their own licenses, which the app carries in lib/linuxhost/licenses with a notice of whose work each part is: voile-lkd (@Zagrios and Obelisk's contributors, GPL-3.0), Neptune (UTM's driver, Turing Software, MIT; Zagrios's changes GPL-3.0) and voile-wine's drivers (LGPL-2.1-or-later). See docs/LICENSES.md.
docs/CHANGES.md has the details. The apps are built from main at v11.12, notarized, and signed with Developer ID.