Repository navigation
Releases
Macron 0.5.0-rc10
A release candidate, for testing on a real Mac before the release. Not the release to try: that is the one marked Latest.
Installing Macron
Macron makes Steam's own Install and Play buttons work for Windows-only games in Steam for Mac, on Apple silicon. It comes as Macron-<version>.dmg, which holds Macron.pkg.
After installing, in short
- Open Steam. A Windows-only game now has a working Install button: install one and press Play. The installer also prepares the Windows environment new games start from (about two more minutes on the test machines); a new game then takes a few seconds more than usual on its first start, and games you already played start as usual even after a Macron update.
- To log its frame rate, turn the frame counter on before pressing Play, and off again afterwards:
touch ~/Library/Application\ Support/Macron/show-fps # on rm ~/Library/Application\ Support/Macron/show-fps # off
- Then, with the game closed, make the report and paste it back (into a chat or an issue):
It takes a few minutes, prints the report and keeps it in
macron diagnose
~/Library/Application Support/Macron/logs/diagnose-<time>.txt. It sends nothing anywhere, and games run exactly the same whether you ever run it or not. What it holds: the macOS version and chip, whether SIP is on, the Steam build and whether Macron knows it, whether Steam Play came on (the end ofsteamplay.logand of the install log), the runtime and Steam bridge versions, what one call from a game into Wine and macOS costs on this Mac (it runs small timing programs that come with Macron), and, for each game started with the frame counter on, its backend, its frame rates and, for Direct3D 10 and 11 games, how many frames took longer than 50 and 100 ms. It leaves out your Steam account (no account name, Steam ID, library or Steam settings) and writes~and<user>instead of your home folder and user name.
What changed for speed, and what is not known yet
Ultimate Custom Night ran at 5 frames a second in its menu on Thalles's M3 with 0.4.0. Two causes, both measured there:
- Apple's OpenGL on Apple silicon is built on Metal, and every time a game's vertices were uploaded into a buffer the GPU was still drawing from, it sent its work to the GPU and waited, about 2,000 to 4,000 times a frame. This build writes those uploads without waiting (Wine patch 0009): the menu went from 5 to 31.
- Then the game's own thread did all of Wine's Direct3D work too, and three times per draw it waited for itself. This build maps the game's system memory buffers without that wait (0010) and runs Wine's Direct3D work on a second thread (0011): in a test build on the M3 the menu ran at 60, the game's frame rate, using nearly two cores.
A night (about 1.7 times the menu's work) has not been measured on a real Mac yet. Turn the frame counter on (below) and macron diagnose reports it.
If a game draws garbage, flickers or stutters with this build, these go in its Steam launch options, one at a time, to find which change it is: WINE_D3D_CONFIG=csmt=0 %command% (Direct3D work back on the game's thread), WINE_OPENGL_UNSYNCHRONIZED=0 %command% (the old uploads), WINE_OPENGL_BATCH=0 %command% (no batching of OpenGL calls). Direct3D 10 and 11 games go through DXMT and are not affected by any of them.
Deadlock on a MacBook Air
What a day of measuring on Thalles's M3 (a MacBook Air, 1920x1243) came to, with nothing set by hand:
- The picture is the display's own size. v0.5.0-rc8 showed the game a smaller screen (1098x711) and scaled it up; that made the picture soft for about 5 frames a second, and this build no longer does it. Whoever wants it:
MACRON_RENDER_PIXELS=780000 %command%as the game's launch option. - About 70 frames a second in the practice map and 75 on the title screen while the Mac is cool, with 24 ms from a frame's start to the finished picture. Those are of the game running behind other windows, which is the only way a test can run it; nobody has measured it in front yet. The display shows 60 frames a second at most.
- A MacBook Air has no fan. About two minutes after a start macOS slows the whole Mac down for the heat, and the game then runs at 30 to 50 frames a second in rounds of a few minutes. Nothing Macron can give a game's threads escapes that: every thread is slowed alike, 2.7 times. The game's own frame limit at 45 held 45 for the four minutes it was watched.
- A hitch twenty seconds into every start is gone. Wine's server wrote the whole registry to disk then, and everything in the game that needed it waited: 63 to 152 ms on the M3 in three starts of three, with 4 to 74 ms of sound missing each time. Another process writes it now (Wine patch 0021): 14 to 16 ms, and no sound missing in three starts of three. This is for every game, not Deadlock alone.
- Apple's upscaler in place of the game's, if you want to try it. Most of what the GPU does in a frame of Deadlock is the game's FSR2 upscaling. With the
dlssswitch (touch ~/Library/Application\ Support/Macron/dlss; delete the file to turn it off) the game uses its DLSS option instead, which Macron runs on Apple's MetalFX: the GPU's work on a frame went from 20 to 24 ms down to 16 ms in the two pairs of starts that compared them, on a hot Mac. With rc8 the switch made the game open on a "Graphics Driver Out-of-Date" box at every start; this build fixes that. Its picture has been compared with the game's own in stills since: cleaner edges and no dot pattern, but distant detail smears and far lettering is harder to read; and on a cool Mac it is no faster. So it stays a switch: a cooler GPU and a softer distance, if you prefer that.
Starting games
A game's first Play after a Macron update no longer waits for a Windows setup step: it starts as quickly as any other start (on the test machines the first start after an update took 7.7 times an ordinary start before this build, and the same as an ordinary start now). A new game starts from a prepared copy instead of building its own Windows environment: about 1.2 to 1.5 times an ordinary start, where it took about 11 times before. The "Wine configuration is being updated" window no longer appears. While a game runs, the Dock, the menu bar and Force Quit still call it wine. docs/startup/README.md in the source has the measurements.
Sound
A game's sound crackled when the Mac was busy, because Wine asked the game for sound from a timer of its own while macOS took it whenever the sound device wanted some, and a game that keeps little queued (anything that plays through SDL, Deadlock among them) then ran dry whenever its sound thread woke a few milliseconds late. This build asks the game when macOS has taken some, and keeps a small reserve the game is not told about (Wine patch 0016). On Thalles's M3, in two starts of Deadlock that ran three and a half minutes each through the Mac's thermal throttling, the old driver left 1.4 and 1.6 seconds of sound missing in 56 and 62 gaps and this one none; with every core busy, a quarter of the sound against none.
The reserve is sound heard a little later: about 60 ms when a game starts, about 10 ms once a few minutes have passed without a late wake-up. What it cannot fix is a game whose own mixer falls behind on a throttled Mac: Deadlock then logs Audio device starved itself, and that may still be heard as a short hole. From this build a game's own sound thread is also woken ahead of everything else the game runs, as Windows does for a thread that registers for audio (Wine patch 0018).
Every game's log (~/Library/Application Support/Macron/logs/steam-<app id>/, the newest file) now has a line a minute starting macron-audio: that says how much sound macOS asked for and did not get. If a game still crackles, those lines say when. MACRON_AUDIO=upstream %command% as a game's launch option gives the old behaviour back, to compare.
Before you start
Install Steam from https://store.steampowered.com/about/ into /Applications, start it once so it finishes updating itself, and sign in. Steam may stay open: the installer closes it and opens it again.
The package is not notarised
Macron has no Apple Developer ID yet, so the package is unsigned and cannot be notarised. macOS 26 therefore refuses to open it with a double-click: "“Macron.pkg” Not Opened. Apple could not verify “Macron.pkg” is free of malware that may harm your Mac or compromise your privacy." Pick one of these ways past that:
- Terminal, installing directly (the shortest). Open the DMG and run
sudo installer -pkg "/Volumes/Macron <version>/Macron.pkg" -target /. Theinstallercommand does not ask Gatekeeper. - System Settings. Double-click
Macron.pkgand press Done on the warning. Open System Settings > Privacy & Security, scroll to Security, where it says "Macron.pkg" was blocked, and press Open Anyway, then confirm with your password or Touch ID. The installer opens. - Terminal, removing the quarantine. Before opening the DMG, run
xattr -dr com.apple.quarantine ~/Downloads/Macron-<version>.dmg, then open the DMG and double-clickMacron.pkg.
Control-click > Open, which used to skip the check, no longer does since macOS 15: it shows the same warning.
What the install does
- Copies
macronandmacron-uninstallto/usr/local/binand the Steam Play switch library to/usr/local/lib/macron. - On an Apple silicon Mac that has no Rosetta 2 yet (a new Mac has none), installs it from Apple with
softwareupdate --install-rosetta --agree-to-license, which accepts Apple's Rosetta licence for you. Wine is an Intel program and cannot start without it. - As you, not as root, runs
macron runtime install: downloads Wine, DXMT, DXVK and the Steam bridge at pinned versions (about 265 MB) and unpacks them into~/Library/Application Support/Macron(about 2 GB as Finder counts it, less on disk beca...
Wine 11.21 for Macron (11.21-macron.19)
Wine 11.21's Mac driver (winemac.so, x86_64), wined3d.dll (i386 and x86_64), wow64cpu.dll (x86_64), opengl32 (opengl32.so, x86_64; opengl32.dll, i386 and x86_64) wineboot.exe (x86_64), avrt.dll (i386 and x86_64), wineserver and winecoreaudio.so with Macron's patches, as an overlay for Gcenx's wine-devel 11.21 build. Unpack it over that Wine tree. It lets DXMT present Direct3D frames to a window, lets OpenGL start on Apple's software renderer when AllowSoftwareRendering is set, stops Direct3D games from mapping (in 32-bit, copying) whole vertex buffers on every draw, fixes a crash when an OpenGL context is freed off the main thread, switches between 32-bit and 64-bit code with iret, sends a program's OpenGL calls to Wine's Unix side in batches instead of one at a time, and writes Direct3D streaming uploads (NOOVERWRITE and DISCARD locks, DrawPrimitiveUP) into buffers without waiting for the GPU, which Apple's OpenGL over Metal otherwise does on every one, keeps wineboot from showing its wait window while it updates a prefix, and gives a thread that a game registers for audio (AvSetMmThreadCharacteristics) time-critical priority, and runs wineserver, which every wake-up of a Windows thread passes through, at the top of the application priority band instead of behind the game's own threads, and asks a game for sound when CoreAudio has taken some, with a reserve the game is not told about, instead of from a timer of its own (what CoreAudio asked for and did not get is logged once a minute).
wine-11.21-macron.19-overlay-osx64.tar.xz: SHA-25668a005308c52699142435c1823b16e6a537cce0fe2f3f462541bbe56cd8e239f- Source: Wine
wine-11.21(https://gitlab.winehq.org/wine/wine/-/tree/wine-11.21), built from https://github.com/wine-mirror/wine/archive/wine-11.21.tar.gz (SHA-256046cb0519b7d385be7912304910ccde9e3c0268ebdce7ef35a3c14446cfb8029) with these patches, attached below and in the archive:0001-winemac.drv-Export-macdrv_functions-for-DXMT.patch0002-winemac.drv-Fall-back-to-the-software-renderer.patch0003-wined3d-Upload-buffer-maps-through-heap-memory-when-maps-are-copied.patch0004-wined3d-Run-the-command-stream-on-the-application-thread-in-WoW64.patch0005-winemac.drv-Don-t-retain-an-OpenGL-context-that-is-being-freed.patch0006-wow64cpu-Switch-between-32-bit-and-64-bit-code-with-iret.patch0007-opengl32-Queue-calls-that-return-nothing-and-replay-them-in-one-Unix-call.patch0008-wined3d-Upload-buffer-maps-through-heap-memory-without-persistent-maps.patch0009-wined3d-Write-streaming-buffer-uploads-unsynchronized.patch0010-wined3d-Map-CPU-only-buffers-on-the-client-thread-and-upload-through-COPY_WRITE.patch0011-wined3d-Run-the-command-stream-on-its-own-thread-in-WoW64-again.patch0013-wineboot-Don-t-show-the-wait-window.patch0014-avrt-Give-a-thread-registered-for-audio-time-critical-priority.patch0015-server-Run-at-the-top-of-the-application-priority-band-on-macOS.patch0016-winecoreaudio-Put-an-engine-between-a-shared-render-stream-and-CoreAudio.patch0017-winemac.drv-A-scale-between-Windows-pixels-and-Mac-points-other-than-2.patch0018-winecoreaudio-Give-the-thread-that-writes-an-event-driven-stream-a-time-constraint.patch0019-wined3d-Report-the-driver-versions-of-today-for-Windows-10-and-NVIDIA.patch0020-server-Count-requests-by-name-when-asked-to.patch0021-server-Write-the-periodic-registry-save-from-a-child-process-on-macOS.patch
- Built by https://github.com/ThallesP/macron/actions/runs/44862071919 from c93b5cd.
Wine and these patches are licensed under the GNU LGPL 2.1 or later; the licence text is in the archive under share/doc/macron-wine/COPYING.LIB. What the patches do: runtime/wine/patches/README.md.
ABI check against Gcenx's build:
== Gcenx's winemac.so against an unpatched build of the same source
ok: symbols imported from ntdll.so and win32u.so (105 lines)
ok: system symbols are a subset of Gcenx's (416 of 419; Gcenx's also imports: _ceil _floor _round )
ok: exported symbols (2 lines)
ok: install name and linked libraries (16 lines)
ok: rpaths (2 lines)
ok: win32u.so exported symbols (506 lines)
note: __TEXT,__text differs (15008 vs 14860 lines of 16 bytes); compilers differ
note: Gcenx's targets minos 10.15, sdk 27.2; ours minos 10.15, sdk 26.5
== The patched winemac.so against the unpatched build
ok: imported symbols (521 lines)
ok: exported symbols (plus _macdrv_functions) (3 lines)
ok: install name and linked libraries (16 lines)
ok: rpaths (2 lines)
PASS: the patched winemac.so is a drop-in for Gcenx's
== wined3d.dll (coff-i386)
PASS: wined3d.dll exports the same 377 symbols as Gcenx's, patched and unpatched
== wined3d.dll (coff-x86-64)
PASS: wined3d.dll exports the same 377 symbols as Gcenx's, patched and unpatched
== wow64cpu.dll (coff-x86-64)
PASS: wow64cpu.dll exports the same 9 symbols as Gcenx's, patched and unpatched
== Gcenx's opengl32.so against an unpatched build of the same source
ok: symbols imported from ntdll.so and win32u.so (13 lines)
ok: system symbols are a subset of Gcenx's
ok: exported symbols (2 lines)
ok: install name and linked libraries (4 lines)
ok: rpaths (2 lines)
== The patched opengl32.so against the unpatched build
ok: imported symbols are a subset of the unpatched build's
ok: exported symbols (2 lines)
ok: install name and linked libraries (4 lines)
ok: rpaths (2 lines)
PASS: the patched opengl32.so is a drop-in for Gcenx's
== opengl32.dll (coff-i386)
PASS: opengl32.dll exports the same 361 symbols as Gcenx's, patched and unpatched
== opengl32.dll (coff-x86-64)
PASS: opengl32.dll exports the same 361 symbols as Gcenx's, patched and unpatched
== wineboot.exe (coff-x86-64)
PASS: wineboot.exe imports the same 134 functions as Gcenx's, patched and unpatched
== avrt.dll (coff-i386)
PASS: avrt.dll exports the same 14 symbols as Gcenx's, patched and unpatched
== avrt.dll (coff-x86-64)
PASS: avrt.dll exports the same 14 symbols as Gcenx's, patched and unpatched
== Gcenx's wineserver against an unpatched build of the same source
ok: symbols import...
Macron 0.5.0-rc9
A release candidate, for testing on a real Mac before the release. Not the release to try: that is the one marked Latest.
Installing Macron
Macron makes Steam's own Install and Play buttons work for Windows-only games in Steam for Mac, on Apple silicon. It comes as Macron-<version>.dmg, which holds Macron.pkg.
After installing, in short
- Open Steam. A Windows-only game now has a working Install button: install one and press Play. The installer also prepares the Windows environment new games start from (about two more minutes on the test machines); a new game then takes a few seconds more than usual on its first start, and games you already played start as usual even after a Macron update.
- To log its frame rate, turn the frame counter on before pressing Play, and off again afterwards:
touch ~/Library/Application\ Support/Macron/show-fps # on rm ~/Library/Application\ Support/Macron/show-fps # off
- Then, with the game closed, make the report and paste it back (into a chat or an issue):
It takes a few minutes, prints the report and keeps it in
macron diagnose
~/Library/Application Support/Macron/logs/diagnose-<time>.txt. It sends nothing anywhere, and games run exactly the same whether you ever run it or not. What it holds: the macOS version and chip, whether SIP is on, the Steam build and whether Macron knows it, whether Steam Play came on (the end ofsteamplay.logand of the install log), the runtime and Steam bridge versions, what one call from a game into Wine and macOS costs on this Mac (it runs small timing programs that come with Macron), and, for each game started with the frame counter on, its backend, its frame rates and, for Direct3D 10 and 11 games, how many frames took longer than 50 and 100 ms. It leaves out your Steam account (no account name, Steam ID, library or Steam settings) and writes~and<user>instead of your home folder and user name.
What changed for speed, and what is not known yet
Ultimate Custom Night ran at 5 frames a second in its menu on Thalles's M3 with 0.4.0. Two causes, both measured there:
- Apple's OpenGL on Apple silicon is built on Metal, and every time a game's vertices were uploaded into a buffer the GPU was still drawing from, it sent its work to the GPU and waited, about 2,000 to 4,000 times a frame. This build writes those uploads without waiting (Wine patch 0009): the menu went from 5 to 31.
- Then the game's own thread did all of Wine's Direct3D work too, and three times per draw it waited for itself. This build maps the game's system memory buffers without that wait (0010) and runs Wine's Direct3D work on a second thread (0011): in a test build on the M3 the menu ran at 60, the game's frame rate, using nearly two cores.
A night (about 1.7 times the menu's work) has not been measured on a real Mac yet. Turn the frame counter on (below) and macron diagnose reports it.
If a game draws garbage, flickers or stutters with this build, these go in its Steam launch options, one at a time, to find which change it is: WINE_D3D_CONFIG=csmt=0 %command% (Direct3D work back on the game's thread), WINE_OPENGL_UNSYNCHRONIZED=0 %command% (the old uploads), WINE_OPENGL_BATCH=0 %command% (no batching of OpenGL calls). Direct3D 10 and 11 games go through DXMT and are not affected by any of them.
Deadlock on a MacBook Air
What a day of measuring on Thalles's M3 (a MacBook Air, 1920x1243) came to, with nothing set by hand:
- The picture is the display's own size. v0.5.0-rc8 showed the game a smaller screen (1098x711) and scaled it up; that made the picture soft for about 5 frames a second, and this build no longer does it. Whoever wants it:
MACRON_RENDER_PIXELS=780000 %command%as the game's launch option. - About 70 frames a second in the practice map and 75 on the title screen while the Mac is cool, with 24 ms from a frame's start to the finished picture. Those are of the game running behind other windows, which is the only way a test can run it; nobody has measured it in front yet. The display shows 60 frames a second at most.
- A MacBook Air has no fan. About two minutes after a start macOS slows the whole Mac down for the heat, and the game then runs at 30 to 50 frames a second in rounds of a few minutes. Nothing Macron can give a game's threads escapes that: every thread is slowed alike, 2.7 times. The game's own frame limit at 45 held 45 for the four minutes it was watched.
- Apple's upscaler in place of the game's, if you want to try it. Most of what the GPU does in a frame of Deadlock is the game's FSR2 upscaling. With the
dlssswitch (touch ~/Library/Application\ Support/Macron/dlss; delete the file to turn it off) the game uses its DLSS option instead, which Macron runs on Apple's MetalFX: the GPU's work on a frame went from 20 to 24 ms down to 16 ms in the two pairs of starts that compared them, on a hot Mac. With rc8 the switch made the game open on a "Graphics Driver Out-of-Date" box at every start; this build fixes that. Nobody has seen its picture yet: if it smears or ghosts, delete the file.
Starting games
A game's first Play after a Macron update no longer waits for a Windows setup step: it starts as quickly as any other start (on the test machines the first start after an update took 7.7 times an ordinary start before this build, and the same as an ordinary start now). A new game starts from a prepared copy instead of building its own Windows environment: about 1.2 to 1.5 times an ordinary start, where it took about 11 times before. The "Wine configuration is being updated" window no longer appears. While a game runs, the Dock, the menu bar and Force Quit still call it wine. docs/startup/README.md in the source has the measurements.
Sound
A game's sound crackled when the Mac was busy, because Wine asked the game for sound from a timer of its own while macOS took it whenever the sound device wanted some, and a game that keeps little queued (anything that plays through SDL, Deadlock among them) then ran dry whenever its sound thread woke a few milliseconds late. This build asks the game when macOS has taken some, and keeps a small reserve the game is not told about (Wine patch 0016). On Thalles's M3, in two starts of Deadlock that ran three and a half minutes each through the Mac's thermal throttling, the old driver left 1.4 and 1.6 seconds of sound missing in 56 and 62 gaps and this one none; with every core busy, a quarter of the sound against none.
The reserve is sound heard a little later: about 60 ms when a game starts, about 10 ms once a few minutes have passed without a late wake-up. What it cannot fix is a game whose own mixer falls behind on a throttled Mac: Deadlock then logs Audio device starved itself, and that may still be heard as a short hole. From this build a game's own sound thread is also woken ahead of everything else the game runs, as Windows does for a thread that registers for audio (Wine patch 0018).
Every game's log (~/Library/Application Support/Macron/logs/steam-<app id>/, the newest file) now has a line a minute starting macron-audio: that says how much sound macOS asked for and did not get. If a game still crackles, those lines say when. MACRON_AUDIO=upstream %command% as a game's launch option gives the old behaviour back, to compare.
Before you start
Install Steam from https://store.steampowered.com/about/ into /Applications, start it once so it finishes updating itself, and sign in. Steam may stay open: the installer closes it and opens it again.
The package is not notarised
Macron has no Apple Developer ID yet, so the package is unsigned and cannot be notarised. macOS 26 therefore refuses to open it with a double-click: "“Macron.pkg” Not Opened. Apple could not verify “Macron.pkg” is free of malware that may harm your Mac or compromise your privacy." Pick one of these ways past that:
- Terminal, installing directly (the shortest). Open the DMG and run
sudo installer -pkg "/Volumes/Macron <version>/Macron.pkg" -target /. Theinstallercommand does not ask Gatekeeper. - System Settings. Double-click
Macron.pkgand press Done on the warning. Open System Settings > Privacy & Security, scroll to Security, where it says "Macron.pkg" was blocked, and press Open Anyway, then confirm with your password or Touch ID. The installer opens. - Terminal, removing the quarantine. Before opening the DMG, run
xattr -dr com.apple.quarantine ~/Downloads/Macron-<version>.dmg, then open the DMG and double-clickMacron.pkg.
Control-click > Open, which used to skip the check, no longer does since macOS 15: it shows the same warning.
What the install does
- Copies
macronandmacron-uninstallto/usr/local/binand the Steam Play switch library to/usr/local/lib/macron. - On an Apple silicon Mac that has no Rosetta 2 yet (a new Mac has none), installs it from Apple with
softwareupdate --install-rosetta --agree-to-license, which accepts Apple's Rosetta licence for you. Wine is an Intel program and cannot start without it. - As you, not as root, runs
macron runtime install: downloads Wine, DXMT, DXVK and the Steam bridge at pinned versions (about 265 MB) and unpacks them into~/Library/Application Support/Macron(about 2 GB as Finder counts it, less on disk because the second Wine tree is an APFS clone). - Closes Steam if it is open, then runs
macron steam enable:- adds Macron to
~/Library/Application Support/Steam/compatibilitytools.dand makes it the compatibility tool for every app in Steam'sconfig.vdf, after backing that file up; - switches on the Steam Play code that ships, switched off, in Steam for Mac. For that it puts its library into
/Applications/Steam.app, names it in the app'sInfo.plist, and signs Steam.app again ad hoc, because macOS only loads a library into an app whose signature allows it. Valve's three files that th...
- adds Macron to
Macron 0.5.0-rc8
A release candidate, for testing on a real Mac before the release. Not the release to try: that is the one marked Latest.
Installing Macron
Macron makes Steam's own Install and Play buttons work for Windows-only games in Steam for Mac, on Apple silicon. It comes as Macron-<version>.dmg, which holds Macron.pkg.
After installing, in short
- Open Steam. A Windows-only game now has a working Install button: install one and press Play. The installer also prepares the Windows environment new games start from (about two more minutes on the test machines); a new game then takes a few seconds more than usual on its first start, and games you already played start as usual even after a Macron update.
- To log its frame rate, turn the frame counter on before pressing Play, and off again afterwards:
touch ~/Library/Application\ Support/Macron/show-fps # on rm ~/Library/Application\ Support/Macron/show-fps # off
- Then, with the game closed, make the report and paste it back (into a chat or an issue):
It takes a few minutes, prints the report and keeps it in
macron diagnose
~/Library/Application Support/Macron/logs/diagnose-<time>.txt. It sends nothing anywhere, and games run exactly the same whether you ever run it or not. What it holds: the macOS version and chip, whether SIP is on, the Steam build and whether Macron knows it, whether Steam Play came on (the end ofsteamplay.logand of the install log), the runtime and Steam bridge versions, what one call from a game into Wine and macOS costs on this Mac (it runs small timing programs that come with Macron), and, for each game started with the frame counter on, its backend, its frame rates and, for Direct3D 10 and 11 games, how many frames took longer than 50 and 100 ms. It leaves out your Steam account (no account name, Steam ID, library or Steam settings) and writes~and<user>instead of your home folder and user name.
What changed for speed, and what is not known yet
Ultimate Custom Night ran at 5 frames a second in its menu on Thalles's M3 with 0.4.0. Two causes, both measured there:
- Apple's OpenGL on Apple silicon is built on Metal, and every time a game's vertices were uploaded into a buffer the GPU was still drawing from, it sent its work to the GPU and waited, about 2,000 to 4,000 times a frame. This build writes those uploads without waiting (Wine patch 0009): the menu went from 5 to 31.
- Then the game's own thread did all of Wine's Direct3D work too, and three times per draw it waited for itself. This build maps the game's system memory buffers without that wait (0010) and runs Wine's Direct3D work on a second thread (0011): in a test build on the M3 the menu ran at 60, the game's frame rate, using nearly two cores.
A night (about 1.7 times the menu's work) has not been measured on a real Mac yet. Turn the frame counter on (below) and macron diagnose reports it.
If a game draws garbage, flickers or stutters with this build, these go in its Steam launch options, one at a time, to find which change it is: WINE_D3D_CONFIG=csmt=0 %command% (Direct3D work back on the game's thread), WINE_OPENGL_UNSYNCHRONIZED=0 %command% (the old uploads), WINE_OPENGL_BATCH=0 %command% (no batching of OpenGL calls). Direct3D 10 and 11 games go through DXMT and are not affected by any of them.
Deadlock on a MacBook with the base chip
Deadlock ran at 67 to 75 frames a second on Thalles's M3 (a MacBook Air) before its first frame of play, and most of a frame went into what the game does at the size of the screen. From this build Macron shows Deadlock a smaller screen on the M1, M2, M3 and M4 (not the Pro and Max chips) and scales the picture up to fill the display. Nothing is set by hand, the display's own resolution is not changed, and other windows stay where they are (Wine patch 0017). On the M3: 97 to 100 frames a second on the title screen where it was 75, with 17 ms from a frame's start to the finished picture where it was 23; in the practice map 74 where it was 54, with 24 ms where it was 32, while the Mac is cool.
- The picture is softer than at the display's size: it is 1098x711 on a 1920x1243 desktop.
MACRON_RENDER_PIXELS=0 %command%as the game's launch option gives the full size back. - If you played Deadlock before, it keeps the Render Quality you had, which now applies to the smaller screen and may look blurry: raise it in the game's video settings (100% is what a new install picks).
- A MacBook Air has no fan, and that still decides a long session. About two minutes after a start macOS slows the Mac down and the game runs at 30 to 50 frames a second, in rounds of a few minutes. A limit that follows the heat was built and measured, and it made this worse, so there is none. The game's own frame limit at 45 held 45 for the four minutes it was watched.
Starting games
A game's first Play after a Macron update no longer waits for a Windows setup step: it starts as quickly as any other start (on the test machines the first start after an update took 7.7 times an ordinary start before this build, and the same as an ordinary start now). A new game starts from a prepared copy instead of building its own Windows environment: about 1.2 to 1.5 times an ordinary start, where it took about 11 times before. The "Wine configuration is being updated" window no longer appears. While a game runs, the Dock, the menu bar and Force Quit still call it wine. docs/startup/README.md in the source has the measurements.
Sound
A game's sound crackled when the Mac was busy, because Wine asked the game for sound from a timer of its own while macOS took it whenever the sound device wanted some, and a game that keeps little queued (anything that plays through SDL, Deadlock among them) then ran dry whenever its sound thread woke a few milliseconds late. This build asks the game when macOS has taken some, and keeps a small reserve the game is not told about (Wine patch 0016). On Thalles's M3, in two starts of Deadlock that ran three and a half minutes each through the Mac's thermal throttling, the old driver left 1.4 and 1.6 seconds of sound missing in 56 and 62 gaps and this one none; with every core busy, a quarter of the sound against none.
The reserve is sound heard a little later: about 60 ms when a game starts, about 10 ms once a few minutes have passed without a late wake-up. What it cannot fix is a game whose own mixer falls behind on a throttled Mac: Deadlock then logs Audio device starved itself, and that may still be heard as a short hole. From this build a game's own sound thread is also woken ahead of everything else the game runs, as Windows does for a thread that registers for audio (Wine patch 0018).
Every game's log (~/Library/Application Support/Macron/logs/steam-<app id>/, the newest file) now has a line a minute starting macron-audio: that says how much sound macOS asked for and did not get. If a game still crackles, those lines say when. MACRON_AUDIO=upstream %command% as a game's launch option gives the old behaviour back, to compare.
Before you start
Install Steam from https://store.steampowered.com/about/ into /Applications, start it once so it finishes updating itself, and sign in. Steam may stay open: the installer closes it and opens it again.
The package is not notarised
Macron has no Apple Developer ID yet, so the package is unsigned and cannot be notarised. macOS 26 therefore refuses to open it with a double-click: "“Macron.pkg” Not Opened. Apple could not verify “Macron.pkg” is free of malware that may harm your Mac or compromise your privacy." Pick one of these ways past that:
- Terminal, installing directly (the shortest). Open the DMG and run
sudo installer -pkg "/Volumes/Macron <version>/Macron.pkg" -target /. Theinstallercommand does not ask Gatekeeper. - System Settings. Double-click
Macron.pkgand press Done on the warning. Open System Settings > Privacy & Security, scroll to Security, where it says "Macron.pkg" was blocked, and press Open Anyway, then confirm with your password or Touch ID. The installer opens. - Terminal, removing the quarantine. Before opening the DMG, run
xattr -dr com.apple.quarantine ~/Downloads/Macron-<version>.dmg, then open the DMG and double-clickMacron.pkg.
Control-click > Open, which used to skip the check, no longer does since macOS 15: it shows the same warning.
What the install does
- Copies
macronandmacron-uninstallto/usr/local/binand the Steam Play switch library to/usr/local/lib/macron. - On an Apple silicon Mac that has no Rosetta 2 yet (a new Mac has none), installs it from Apple with
softwareupdate --install-rosetta --agree-to-license, which accepts Apple's Rosetta licence for you. Wine is an Intel program and cannot start without it. - As you, not as root, runs
macron runtime install: downloads Wine, DXMT, DXVK and the Steam bridge at pinned versions (about 265 MB) and unpacks them into~/Library/Application Support/Macron(about 2 GB as Finder counts it, less on disk because the second Wine tree is an APFS clone). - Closes Steam if it is open, then runs
macron steam enable:- adds Macron to
~/Library/Application Support/Steam/compatibilitytools.dand makes it the compatibility tool for every app in Steam'sconfig.vdf, after backing that file up; - switches on the Steam Play code that ships, switched off, in Steam for Mac. For that it puts its library into
/Applications/Steam.app, names it in the app'sInfo.plist, and signs Steam.app again ad hoc, because macOS only loads a library into an app whose signature allows it. Valve's three files that this changes (Info.plist,steam_osx,CodeResources) are kept in~/Library/Application Support/Macron/steam-app-backupand go back byte for byte on uninstall.steamplay/README.mdin the repository has the details.
- adds Macron to
- Opens Steam again if it was open.
Because S...
Macron 0.5.0-rc7
A release candidate, for testing on a real Mac before the release. Not the release to try: that is the one marked Latest.
Installing Macron
Macron makes Steam's own Install and Play buttons work for Windows-only games in Steam for Mac, on Apple silicon. It comes as Macron-<version>.dmg, which holds Macron.pkg.
After installing, in short
- Open Steam. A Windows-only game now has a working Install button: install one and press Play. The installer also prepares the Windows environment new games start from (about two more minutes on the test machines); a new game then takes a few seconds more than usual on its first start, and games you already played start as usual even after a Macron update.
- To log its frame rate, turn the frame counter on before pressing Play, and off again afterwards:
touch ~/Library/Application\ Support/Macron/show-fps # on rm ~/Library/Application\ Support/Macron/show-fps # off
- Then, with the game closed, make the report and paste it back (into a chat or an issue):
It takes a few minutes, prints the report and keeps it in
macron diagnose
~/Library/Application Support/Macron/logs/diagnose-<time>.txt. It sends nothing anywhere, and games run exactly the same whether you ever run it or not. What it holds: the macOS version and chip, whether SIP is on, the Steam build and whether Macron knows it, whether Steam Play came on (the end ofsteamplay.logand of the install log), the runtime and Steam bridge versions, what one call from a game into Wine and macOS costs on this Mac (it runs small timing programs that come with Macron), and, for each game started with the frame counter on, its backend, its frame rates and, for Direct3D 10 and 11 games, how many frames took longer than 50 and 100 ms. It leaves out your Steam account (no account name, Steam ID, library or Steam settings) and writes~and<user>instead of your home folder and user name.
What changed for speed, and what is not known yet
Ultimate Custom Night ran at 5 frames a second in its menu on Thalles's M3 with 0.4.0. Two causes, both measured there:
- Apple's OpenGL on Apple silicon is built on Metal, and every time a game's vertices were uploaded into a buffer the GPU was still drawing from, it sent its work to the GPU and waited, about 2,000 to 4,000 times a frame. This build writes those uploads without waiting (Wine patch 0009): the menu went from 5 to 31.
- Then the game's own thread did all of Wine's Direct3D work too, and three times per draw it waited for itself. This build maps the game's system memory buffers without that wait (0010) and runs Wine's Direct3D work on a second thread (0011): in a test build on the M3 the menu ran at 60, the game's frame rate, using nearly two cores.
A night (about 1.7 times the menu's work) has not been measured on a real Mac yet. Turn the frame counter on (below) and macron diagnose reports it.
If a game draws garbage, flickers or stutters with this build, these go in its Steam launch options, one at a time, to find which change it is: WINE_D3D_CONFIG=csmt=0 %command% (Direct3D work back on the game's thread), WINE_OPENGL_UNSYNCHRONIZED=0 %command% (the old uploads), WINE_OPENGL_BATCH=0 %command% (no batching of OpenGL calls). Direct3D 10 and 11 games go through DXMT and are not affected by any of them.
Starting games
A game's first Play after a Macron update no longer waits for a Windows setup step: it starts as quickly as any other start (on the test machines the first start after an update took 7.7 times an ordinary start before this build, and the same as an ordinary start now). A new game starts from a prepared copy instead of building its own Windows environment: about 1.2 to 1.5 times an ordinary start, where it took about 11 times before. The "Wine configuration is being updated" window no longer appears. While a game runs, the Dock, the menu bar and Force Quit still call it wine. docs/startup/README.md in the source has the measurements.
Sound
A game's sound crackled when the Mac was busy, because Wine asked the game for sound from a timer of its own while macOS took it whenever the sound device wanted some, and a game that keeps little queued (anything that plays through SDL, Deadlock among them) then ran dry whenever its sound thread woke a few milliseconds late. This build asks the game when macOS has taken some, and keeps a small reserve the game is not told about (Wine patch 0016). On Thalles's M3, in two starts of Deadlock that ran three and a half minutes each through the Mac's thermal throttling, the old driver left 1.4 and 1.6 seconds of sound missing in 56 and 62 gaps and this one none; with every core busy, a quarter of the sound against none.
The reserve is sound heard a little later: about 60 ms when a game starts, about 10 ms once a few minutes have passed without a late wake-up. What it cannot fix is a game whose own mixer falls behind on a throttled Mac: Deadlock then logs Audio device starved itself, and that may still be heard as a short hole.
Every game's log (~/Library/Application Support/Macron/logs/steam-<app id>/, the newest file) now has a line a minute starting macron-audio: that says how much sound macOS asked for and did not get. If a game still crackles, those lines say when. MACRON_AUDIO=upstream %command% as a game's launch option gives the old behaviour back, to compare.
Before you start
Install Steam from https://store.steampowered.com/about/ into /Applications, start it once so it finishes updating itself, and sign in. Steam may stay open: the installer closes it and opens it again.
The package is not notarised
Macron has no Apple Developer ID yet, so the package is unsigned and cannot be notarised. macOS 26 therefore refuses to open it with a double-click: "“Macron.pkg” Not Opened. Apple could not verify “Macron.pkg” is free of malware that may harm your Mac or compromise your privacy." Pick one of these ways past that:
- Terminal, installing directly (the shortest). Open the DMG and run
sudo installer -pkg "/Volumes/Macron <version>/Macron.pkg" -target /. Theinstallercommand does not ask Gatekeeper. - System Settings. Double-click
Macron.pkgand press Done on the warning. Open System Settings > Privacy & Security, scroll to Security, where it says "Macron.pkg" was blocked, and press Open Anyway, then confirm with your password or Touch ID. The installer opens. - Terminal, removing the quarantine. Before opening the DMG, run
xattr -dr com.apple.quarantine ~/Downloads/Macron-<version>.dmg, then open the DMG and double-clickMacron.pkg.
Control-click > Open, which used to skip the check, no longer does since macOS 15: it shows the same warning.
What the install does
- Copies
macronandmacron-uninstallto/usr/local/binand the Steam Play switch library to/usr/local/lib/macron. - On an Apple silicon Mac that has no Rosetta 2 yet (a new Mac has none), installs it from Apple with
softwareupdate --install-rosetta --agree-to-license, which accepts Apple's Rosetta licence for you. Wine is an Intel program and cannot start without it. - As you, not as root, runs
macron runtime install: downloads Wine, DXMT, DXVK and the Steam bridge at pinned versions (about 265 MB) and unpacks them into~/Library/Application Support/Macron(about 2 GB as Finder counts it, less on disk because the second Wine tree is an APFS clone). - Closes Steam if it is open, then runs
macron steam enable:- adds Macron to
~/Library/Application Support/Steam/compatibilitytools.dand makes it the compatibility tool for every app in Steam'sconfig.vdf, after backing that file up; - switches on the Steam Play code that ships, switched off, in Steam for Mac. For that it puts its library into
/Applications/Steam.app, names it in the app'sInfo.plist, and signs Steam.app again ad hoc, because macOS only loads a library into an app whose signature allows it. Valve's three files that this changes (Info.plist,steam_osx,CodeResources) are kept in~/Library/Application Support/Macron/steam-app-backupand go back byte for byte on uninstall.steamplay/README.mdin the repository has the details.
- adds Macron to
- Opens Steam again if it was open.
Because Steam.app's signature changes, macOS forgets Steam's Accessibility and input-monitoring permissions and asks again the next time Steam wants them (they are for controllers through Steam Input). If macOS asks whether the installer or Terminal may modify apps (App Management), allow it; if it blocked the change, the log says so and macron steam enable in Terminal tries again.
If Rosetta or the runtime does not install (no internet, a full disk), the install undoes itself and Installer says it failed. If only the Steam step does not finish (macOS blocked the change to Steam.app under App Management, Steam is a build Macron does not know yet, Steam would not quit, or Steam is not installed or was never started), Macron stays installed and Steam Play is simply not on yet. Either way the installer opens /Users/Shared/Macron install log.txt in TextEdit: what went wrong, what to do next, and the log of that run, ready to send to whoever helps you. To finish the Steam step, quit Steam and run macron steam enable in Terminal; if that says "Operation not permitted", turn on Terminal under System Settings > Privacy & Security > App Management and run it again. Every install run is also appended to /Library/Logs/Macron-install.log.
Using it
Open Steam. A Windows-only game in your library now has a working Install button; Steam downloads it into its normal library, and Play starts it through Macron. A new game's first start takes a few seconds more than later ones: it gets a copy of the Windows environment the installer prepared, in under a second, and Macron writes the registry keys the Steam bridge needs. Steam's Stop button stops it. Games that hav...
Wine 11.21 for Macron (11.21-macron.18)
Wine 11.21's Mac driver (winemac.so, x86_64), wined3d.dll (i386 and x86_64), wow64cpu.dll (x86_64), opengl32 (opengl32.so, x86_64; opengl32.dll, i386 and x86_64) wineboot.exe (x86_64), avrt.dll (i386 and x86_64), wineserver and winecoreaudio.so with Macron's patches, as an overlay for Gcenx's wine-devel 11.21 build. Unpack it over that Wine tree. It lets DXMT present Direct3D frames to a window, lets OpenGL start on Apple's software renderer when AllowSoftwareRendering is set, stops Direct3D games from mapping (in 32-bit, copying) whole vertex buffers on every draw, fixes a crash when an OpenGL context is freed off the main thread, switches between 32-bit and 64-bit code with iret, sends a program's OpenGL calls to Wine's Unix side in batches instead of one at a time, and writes Direct3D streaming uploads (NOOVERWRITE and DISCARD locks, DrawPrimitiveUP) into buffers without waiting for the GPU, which Apple's OpenGL over Metal otherwise does on every one, keeps wineboot from showing its wait window while it updates a prefix, and gives a thread that a game registers for audio (AvSetMmThreadCharacteristics) time-critical priority, and runs wineserver, which every wake-up of a Windows thread passes through, at the top of the application priority band instead of behind the game's own threads, and asks a game for sound when CoreAudio has taken some, with a reserve the game is not told about, instead of from a timer of its own (what CoreAudio asked for and did not get is logged once a minute).
wine-11.21-macron.18-overlay-osx64.tar.xz: SHA-256d096ab2b7b5d64724905396bf28b0036b0c8ece22df38b2b285b850349c02f05- Source: Wine
wine-11.21(https://gitlab.winehq.org/wine/wine/-/tree/wine-11.21), built from https://github.com/wine-mirror/wine/archive/wine-11.21.tar.gz (SHA-256046cb0519b7d385be7912304910ccde9e3c0268ebdce7ef35a3c14446cfb8029) with these patches, attached below and in the archive:0001-winemac.drv-Export-macdrv_functions-for-DXMT.patch0002-winemac.drv-Fall-back-to-the-software-renderer.patch0003-wined3d-Upload-buffer-maps-through-heap-memory-when-maps-are-copied.patch0004-wined3d-Run-the-command-stream-on-the-application-thread-in-WoW64.patch0005-winemac.drv-Don-t-retain-an-OpenGL-context-that-is-being-freed.patch0006-wow64cpu-Switch-between-32-bit-and-64-bit-code-with-iret.patch0007-opengl32-Queue-calls-that-return-nothing-and-replay-them-in-one-Unix-call.patch0008-wined3d-Upload-buffer-maps-through-heap-memory-without-persistent-maps.patch0009-wined3d-Write-streaming-buffer-uploads-unsynchronized.patch0010-wined3d-Map-CPU-only-buffers-on-the-client-thread-and-upload-through-COPY_WRITE.patch0011-wined3d-Run-the-command-stream-on-its-own-thread-in-WoW64-again.patch0013-wineboot-Don-t-show-the-wait-window.patch0014-avrt-Give-a-thread-registered-for-audio-time-critical-priority.patch0015-server-Run-at-the-top-of-the-application-priority-band-on-macOS.patch0016-winecoreaudio-Put-an-engine-between-a-shared-render-stream-and-CoreAudio.patch0017-winemac.drv-A-scale-between-Windows-pixels-and-Mac-points-other-than-2.patch0018-winecoreaudio-Give-the-thread-that-writes-an-event-driven-stream-a-time-constraint.patch0019-wined3d-Report-the-driver-versions-of-today-for-Windows-10-and-NVIDIA.patch
- Built by https://github.com/ThallesP/macron/actions/runs/44806684586 from 6d3c7c2.
Wine and these patches are licensed under the GNU LGPL 2.1 or later; the licence text is in the archive under share/doc/macron-wine/COPYING.LIB. What the patches do: runtime/wine/patches/README.md.
ABI check against Gcenx's build:
== Gcenx's winemac.so against an unpatched build of the same source
ok: symbols imported from ntdll.so and win32u.so (105 lines)
ok: system symbols are a subset of Gcenx's (416 of 419; Gcenx's also imports: _ceil _floor _round )
ok: exported symbols (2 lines)
ok: install name and linked libraries (16 lines)
ok: rpaths (2 lines)
ok: win32u.so exported symbols (506 lines)
note: __TEXT,__text differs (15008 vs 14860 lines of 16 bytes); compilers differ
note: Gcenx's targets minos 10.15, sdk 27.2; ours minos 10.15, sdk 26.5
== The patched winemac.so against the unpatched build
ok: imported symbols (521 lines)
ok: exported symbols (plus _macdrv_functions) (3 lines)
ok: install name and linked libraries (16 lines)
ok: rpaths (2 lines)
PASS: the patched winemac.so is a drop-in for Gcenx's
== wined3d.dll (coff-i386)
PASS: wined3d.dll exports the same 377 symbols as Gcenx's, patched and unpatched
== wined3d.dll (coff-x86-64)
PASS: wined3d.dll exports the same 377 symbols as Gcenx's, patched and unpatched
== wow64cpu.dll (coff-x86-64)
PASS: wow64cpu.dll exports the same 9 symbols as Gcenx's, patched and unpatched
== Gcenx's opengl32.so against an unpatched build of the same source
ok: symbols imported from ntdll.so and win32u.so (13 lines)
ok: system symbols are a subset of Gcenx's
ok: exported symbols (2 lines)
ok: install name and linked libraries (4 lines)
ok: rpaths (2 lines)
== The patched opengl32.so against the unpatched build
ok: imported symbols are a subset of the unpatched build's
ok: exported symbols (2 lines)
ok: install name and linked libraries (4 lines)
ok: rpaths (2 lines)
PASS: the patched opengl32.so is a drop-in for Gcenx's
== opengl32.dll (coff-i386)
PASS: opengl32.dll exports the same 361 symbols as Gcenx's, patched and unpatched
== opengl32.dll (coff-x86-64)
PASS: opengl32.dll exports the same 361 symbols as Gcenx's, patched and unpatched
== wineboot.exe (coff-x86-64)
PASS: wineboot.exe imports the same 134 functions as Gcenx's, patched and unpatched
== avrt.dll (coff-i386)
PASS: avrt.dll exports the same 14 symbols as Gcenx's, patched and unpatched
== avrt.dll (coff-x86-64)
PASS: avrt.dll exports the same 14 symbols as Gcenx's, patched and unpatched
== Gcenx's wineserver against an unpatched build of the same source
ok: symbols imported from ntdll.so and win32u.so (0 lines)
ok: system symbols are a subset of Gcenx's
ok: install name and linked libraries (2 lines)
ok: rpaths (1 lines)
== The patched wineserver against the unpatched build
allowed new import: _mach_thread_self libSystem)
ok: imported symbols are a subset of the unpatched build's
ok: install name and linked libraries (2 lines)
ok: rpaths (1 lines)
PASS: the patched wineserver is a drop-in for Gcenx's
== Gcenx's winecoreaudio.so against an unpatched build o...
Wine 11.21 for Macron (11.21-macron.17)
Wine 11.21's Mac driver (winemac.so, x86_64), wined3d.dll (i386 and x86_64), wow64cpu.dll (x86_64), opengl32 (opengl32.so, x86_64; opengl32.dll, i386 and x86_64) wineboot.exe (x86_64), avrt.dll (i386 and x86_64), wineserver and winecoreaudio.so with Macron's patches, as an overlay for Gcenx's wine-devel 11.21 build. Unpack it over that Wine tree. It lets DXMT present Direct3D frames to a window, lets OpenGL start on Apple's software renderer when AllowSoftwareRendering is set, stops Direct3D games from mapping (in 32-bit, copying) whole vertex buffers on every draw, fixes a crash when an OpenGL context is freed off the main thread, switches between 32-bit and 64-bit code with iret, sends a program's OpenGL calls to Wine's Unix side in batches instead of one at a time, and writes Direct3D streaming uploads (NOOVERWRITE and DISCARD locks, DrawPrimitiveUP) into buffers without waiting for the GPU, which Apple's OpenGL over Metal otherwise does on every one, keeps wineboot from showing its wait window while it updates a prefix, and gives a thread that a game registers for audio (AvSetMmThreadCharacteristics) time-critical priority, and runs wineserver, which every wake-up of a Windows thread passes through, at the top of the application priority band instead of behind the game's own threads, and asks a game for sound when CoreAudio has taken some, with a reserve the game is not told about, instead of from a timer of its own (what CoreAudio asked for and did not get is logged once a minute).
wine-11.21-macron.17-overlay-osx64.tar.xz: SHA-2567c71b3be13da9e6d84f43830b53042f56778fef767fe4636730e68eba3f93f34- Source: Wine
wine-11.21(https://gitlab.winehq.org/wine/wine/-/tree/wine-11.21), built from https://github.com/wine-mirror/wine/archive/wine-11.21.tar.gz (SHA-256046cb0519b7d385be7912304910ccde9e3c0268ebdce7ef35a3c14446cfb8029) with these patches, attached below and in the archive:0001-winemac.drv-Export-macdrv_functions-for-DXMT.patch0002-winemac.drv-Fall-back-to-the-software-renderer.patch0003-wined3d-Upload-buffer-maps-through-heap-memory-when-maps-are-copied.patch0004-wined3d-Run-the-command-stream-on-the-application-thread-in-WoW64.patch0005-winemac.drv-Don-t-retain-an-OpenGL-context-that-is-being-freed.patch0006-wow64cpu-Switch-between-32-bit-and-64-bit-code-with-iret.patch0007-opengl32-Queue-calls-that-return-nothing-and-replay-them-in-one-Unix-call.patch0008-wined3d-Upload-buffer-maps-through-heap-memory-without-persistent-maps.patch0009-wined3d-Write-streaming-buffer-uploads-unsynchronized.patch0010-wined3d-Map-CPU-only-buffers-on-the-client-thread-and-upload-through-COPY_WRITE.patch0011-wined3d-Run-the-command-stream-on-its-own-thread-in-WoW64-again.patch0013-wineboot-Don-t-show-the-wait-window.patch0014-avrt-Give-a-thread-registered-for-audio-time-critical-priority.patch0015-server-Run-at-the-top-of-the-application-priority-band-on-macOS.patch0016-winecoreaudio-Put-an-engine-between-a-shared-render-stream-and-CoreAudio.patch0017-winemac.drv-A-scale-between-Windows-pixels-and-Mac-points-other-than-2.patch0018-winecoreaudio-Give-the-thread-that-writes-an-event-driven-stream-a-time-constraint.patch
- Built by https://github.com/ThallesP/macron/actions/runs/44709778279 from 5d7f8fd.
Wine and these patches are licensed under the GNU LGPL 2.1 or later; the licence text is in the archive under share/doc/macron-wine/COPYING.LIB. What the patches do: runtime/wine/patches/README.md.
ABI check against Gcenx's build:
== Gcenx's winemac.so against an unpatched build of the same source
ok: symbols imported from ntdll.so and win32u.so (105 lines)
ok: system symbols are a subset of Gcenx's (416 of 419; Gcenx's also imports: _ceil _floor _round )
ok: exported symbols (2 lines)
ok: install name and linked libraries (16 lines)
ok: rpaths (2 lines)
ok: win32u.so exported symbols (506 lines)
note: __TEXT,__text differs (15008 vs 14860 lines of 16 bytes); compilers differ
note: Gcenx's targets minos 10.15, sdk 27.2; ours minos 10.15, sdk 26.5
== The patched winemac.so against the unpatched build
ok: imported symbols (521 lines)
ok: exported symbols (plus _macdrv_functions) (3 lines)
ok: install name and linked libraries (16 lines)
ok: rpaths (2 lines)
PASS: the patched winemac.so is a drop-in for Gcenx's
== wined3d.dll (coff-i386)
PASS: wined3d.dll exports the same 377 symbols as Gcenx's, patched and unpatched
== wined3d.dll (coff-x86-64)
PASS: wined3d.dll exports the same 377 symbols as Gcenx's, patched and unpatched
== wow64cpu.dll (coff-x86-64)
PASS: wow64cpu.dll exports the same 9 symbols as Gcenx's, patched and unpatched
== Gcenx's opengl32.so against an unpatched build of the same source
ok: symbols imported from ntdll.so and win32u.so (13 lines)
ok: system symbols are a subset of Gcenx's
ok: exported symbols (2 lines)
ok: install name and linked libraries (4 lines)
ok: rpaths (2 lines)
== The patched opengl32.so against the unpatched build
ok: imported symbols are a subset of the unpatched build's
ok: exported symbols (2 lines)
ok: install name and linked libraries (4 lines)
ok: rpaths (2 lines)
PASS: the patched opengl32.so is a drop-in for Gcenx's
== opengl32.dll (coff-i386)
PASS: opengl32.dll exports the same 361 symbols as Gcenx's, patched and unpatched
== opengl32.dll (coff-x86-64)
PASS: opengl32.dll exports the same 361 symbols as Gcenx's, patched and unpatched
== wineboot.exe (coff-x86-64)
PASS: wineboot.exe imports the same 134 functions as Gcenx's, patched and unpatched
== avrt.dll (coff-i386)
PASS: avrt.dll exports the same 14 symbols as Gcenx's, patched and unpatched
== avrt.dll (coff-x86-64)
PASS: avrt.dll exports the same 14 symbols as Gcenx's, patched and unpatched
== Gcenx's wineserver against an unpatched build of the same source
ok: symbols imported from ntdll.so and win32u.so (0 lines)
ok: system symbols are a subset of Gcenx's
ok: install name and linked libraries (2 lines)
ok: rpaths (1 lines)
== The patched wineserver against the unpatched build
allowed new import: _mach_thread_self libSystem)
ok: imported symbols are a subset of the unpatched build's
ok: install name and linked libraries (2 lines)
ok: rpaths (1 lines)
PASS: the patched wineserver is a drop-in for Gcenx's
== Gcenx's winecoreaudio.so against an unpatched build of the same source
ok: symbols imported from ntdll.so and win32u.so (15 lines)
ok: system symbols are a subset of Gcenx's
ok: exported symbols (2 lines)
ok: install name and linked libraries (8 lines)
ok: rpaths (2 lines)
== The patched winecoreaudio.so against the unpatche...
Wine 11.21 for Macron (11.21-macron.16)
Wine 11.21's Mac driver (winemac.so, x86_64), wined3d.dll (i386 and x86_64), wow64cpu.dll (x86_64), opengl32 (opengl32.so, x86_64; opengl32.dll, i386 and x86_64) wineboot.exe (x86_64), avrt.dll (i386 and x86_64), wineserver and winecoreaudio.so with Macron's patches, as an overlay for Gcenx's wine-devel 11.21 build. Unpack it over that Wine tree. It lets DXMT present Direct3D frames to a window, lets OpenGL start on Apple's software renderer when AllowSoftwareRendering is set, stops Direct3D games from mapping (in 32-bit, copying) whole vertex buffers on every draw, fixes a crash when an OpenGL context is freed off the main thread, switches between 32-bit and 64-bit code with iret, sends a program's OpenGL calls to Wine's Unix side in batches instead of one at a time, and writes Direct3D streaming uploads (NOOVERWRITE and DISCARD locks, DrawPrimitiveUP) into buffers without waiting for the GPU, which Apple's OpenGL over Metal otherwise does on every one, keeps wineboot from showing its wait window while it updates a prefix, and gives a thread that a game registers for audio (AvSetMmThreadCharacteristics) time-critical priority, and runs wineserver, which every wake-up of a Windows thread passes through, at the top of the application priority band instead of behind the game's own threads, and asks a game for sound when CoreAudio has taken some, with a reserve the game is not told about, instead of from a timer of its own (what CoreAudio asked for and did not get is logged once a minute).
wine-11.21-macron.16-overlay-osx64.tar.xz: SHA-2567ca2b21558a3c4ea039919069131d30759155e931dc505e0adf44f5f48badb02- Source: Wine
wine-11.21(https://gitlab.winehq.org/wine/wine/-/tree/wine-11.21), built from https://github.com/wine-mirror/wine/archive/wine-11.21.tar.gz (SHA-256046cb0519b7d385be7912304910ccde9e3c0268ebdce7ef35a3c14446cfb8029) with these patches, attached below and in the archive:0001-winemac.drv-Export-macdrv_functions-for-DXMT.patch0002-winemac.drv-Fall-back-to-the-software-renderer.patch0003-wined3d-Upload-buffer-maps-through-heap-memory-when-maps-are-copied.patch0004-wined3d-Run-the-command-stream-on-the-application-thread-in-WoW64.patch0005-winemac.drv-Don-t-retain-an-OpenGL-context-that-is-being-freed.patch0006-wow64cpu-Switch-between-32-bit-and-64-bit-code-with-iret.patch0007-opengl32-Queue-calls-that-return-nothing-and-replay-them-in-one-Unix-call.patch0008-wined3d-Upload-buffer-maps-through-heap-memory-without-persistent-maps.patch0009-wined3d-Write-streaming-buffer-uploads-unsynchronized.patch0010-wined3d-Map-CPU-only-buffers-on-the-client-thread-and-upload-through-COPY_WRITE.patch0011-wined3d-Run-the-command-stream-on-its-own-thread-in-WoW64-again.patch0013-wineboot-Don-t-show-the-wait-window.patch0014-avrt-Give-a-thread-registered-for-audio-time-critical-priority.patch0015-server-Run-at-the-top-of-the-application-priority-band-on-macOS.patch0016-winecoreaudio-Put-an-engine-between-a-shared-render-stream-and-CoreAudio.patch
- Built by https://github.com/ThallesP/macron/actions/runs/44671314745 from 84b9d39.
Wine and these patches are licensed under the GNU LGPL 2.1 or later; the licence text is in the archive under share/doc/macron-wine/COPYING.LIB. What the patches do: runtime/wine/patches/README.md.
ABI check against Gcenx's build:
== Gcenx's winemac.so against an unpatched build of the same source
ok: symbols imported from ntdll.so and win32u.so (105 lines)
ok: system symbols are a subset of Gcenx's (416 of 419; Gcenx's also imports: _ceil _floor _round )
ok: exported symbols (2 lines)
ok: install name and linked libraries (16 lines)
ok: rpaths (2 lines)
ok: win32u.so exported symbols (506 lines)
note: __TEXT,__text differs (15008 vs 14860 lines of 16 bytes); compilers differ
note: Gcenx's targets minos 10.15, sdk 27.2; ours minos 10.15, sdk 26.5
== The patched winemac.so against the unpatched build
ok: imported symbols (521 lines)
ok: exported symbols (plus _macdrv_functions) (3 lines)
ok: install name and linked libraries (16 lines)
ok: rpaths (2 lines)
PASS: the patched winemac.so is a drop-in for Gcenx's
== wined3d.dll (coff-i386)
PASS: wined3d.dll exports the same 377 symbols as Gcenx's, patched and unpatched
== wined3d.dll (coff-x86-64)
PASS: wined3d.dll exports the same 377 symbols as Gcenx's, patched and unpatched
== wow64cpu.dll (coff-x86-64)
PASS: wow64cpu.dll exports the same 9 symbols as Gcenx's, patched and unpatched
== Gcenx's opengl32.so against an unpatched build of the same source
ok: symbols imported from ntdll.so and win32u.so (13 lines)
ok: system symbols are a subset of Gcenx's
ok: exported symbols (2 lines)
ok: install name and linked libraries (4 lines)
ok: rpaths (2 lines)
== The patched opengl32.so against the unpatched build
ok: imported symbols are a subset of the unpatched build's
ok: exported symbols (2 lines)
ok: install name and linked libraries (4 lines)
ok: rpaths (2 lines)
PASS: the patched opengl32.so is a drop-in for Gcenx's
== opengl32.dll (coff-i386)
PASS: opengl32.dll exports the same 361 symbols as Gcenx's, patched and unpatched
== opengl32.dll (coff-x86-64)
PASS: opengl32.dll exports the same 361 symbols as Gcenx's, patched and unpatched
== wineboot.exe (coff-x86-64)
PASS: wineboot.exe imports the same 134 functions as Gcenx's, patched and unpatched
== avrt.dll (coff-i386)
PASS: avrt.dll exports the same 14 symbols as Gcenx's, patched and unpatched
== avrt.dll (coff-x86-64)
PASS: avrt.dll exports the same 14 symbols as Gcenx's, patched and unpatched
== Gcenx's wineserver against an unpatched build of the same source
ok: symbols imported from ntdll.so and win32u.so (0 lines)
ok: system symbols are a subset of Gcenx's
ok: install name and linked libraries (2 lines)
ok: rpaths (1 lines)
== The patched wineserver against the unpatched build
allowed new import: _mach_thread_self libSystem)
ok: imported symbols are a subset of the unpatched build's
ok: install name and linked libraries (2 lines)
ok: rpaths (1 lines)
PASS: the patched wineserver is a drop-in for Gcenx's
== Gcenx's winecoreaudio.so against an unpatched build of the same source
ok: symbols imported from ntdll.so and win32u.so (15 lines)
ok: system symbols are a subset of Gcenx's
ok: exported symbols (2 lines)
ok: install name and linked libraries (8 lines)
ok: rpaths (2 lines)
== The patched winecoreaudio.so against the unpatched build
allowed new import: ___stderrp libSystem)
allowed new import: _atoi libSystem)
allowed new import: _fprintf libSystem)
allowed new import: _getenv libSystem)
allowed new import: _mach_task_self_ libSystem)
allowed new import: _pthread_mach_thread_np libSystem)
allowed new import: _pthread_self libSystem)
allowed new import: _semaphore_create libSystem)
allowed new import: _semaphore_destroy libSystem)
allowed new import: _semaphore_signal libSystem)
allowed new import: _semaphore_timedwait libSystem)
allowed new import: _strcmp libSystem)
allowed new import: _...
Test files for the M3: sound, third build (not a release)
Wine 11.21's winecoreaudio.so with Macron's patch 0016 as it stands on branch wine-0016 (built by Wine build run 44663385237 from f25560e), the whole test overlay it came from, the patch, tools/perf/sndload.c built for Windows and tools/perf/wakelat.c. For test runs on a real Mac; not for installing. Wine and the patch are LGPL 2.1 or later; the overlay carries the licence and every patch under share/doc/macron-wine/.
Macron 0.5.0-rc6
A release candidate, for testing on a real Mac before the release. Not the release to try: that is the one marked Latest.
Installing Macron
Macron makes Steam's own Install and Play buttons work for Windows-only games in Steam for Mac, on Apple silicon. It comes as Macron-<version>.dmg, which holds Macron.pkg.
After installing, in short
- Open Steam. A Windows-only game now has a working Install button: install one and press Play. The installer also prepares the Windows environment new games start from (about two more minutes on the test machines); a new game then takes a few seconds more than usual on its first start, and games you already played start as usual even after a Macron update.
- To log its frame rate, turn the frame counter on before pressing Play, and off again afterwards:
touch ~/Library/Application\ Support/Macron/show-fps # on rm ~/Library/Application\ Support/Macron/show-fps # off
- Then, with the game closed, make the report and paste it back (into a chat or an issue):
It takes a few minutes, prints the report and keeps it in
macron diagnose
~/Library/Application Support/Macron/logs/diagnose-<time>.txt. It sends nothing anywhere, and games run exactly the same whether you ever run it or not. What it holds: the macOS version and chip, whether SIP is on, the Steam build and whether Macron knows it, whether Steam Play came on (the end ofsteamplay.logand of the install log), the runtime and Steam bridge versions, what one call from a game into Wine and macOS costs on this Mac (it runs small timing programs that come with Macron), and, for each game started with the frame counter on, its backend, its frame rates and, for Direct3D 10 and 11 games, how many frames took longer than 50 and 100 ms. It leaves out your Steam account (no account name, Steam ID, library or Steam settings) and writes~and<user>instead of your home folder and user name.
What changed for speed, and what is not known yet
Ultimate Custom Night ran at 5 frames a second in its menu on Thalles's M3 with 0.4.0. Two causes, both measured there:
- Apple's OpenGL on Apple silicon is built on Metal, and every time a game's vertices were uploaded into a buffer the GPU was still drawing from, it sent its work to the GPU and waited, about 2,000 to 4,000 times a frame. This build writes those uploads without waiting (Wine patch 0009): the menu went from 5 to 31.
- Then the game's own thread did all of Wine's Direct3D work too, and three times per draw it waited for itself. This build maps the game's system memory buffers without that wait (0010) and runs Wine's Direct3D work on a second thread (0011): in a test build on the M3 the menu ran at 60, the game's frame rate, using nearly two cores.
A night (about 1.7 times the menu's work) has not been measured on a real Mac yet. Turn the frame counter on (below) and macron diagnose reports it.
If a game draws garbage, flickers or stutters with this build, these go in its Steam launch options, one at a time, to find which change it is: WINE_D3D_CONFIG=csmt=0 %command% (Direct3D work back on the game's thread), WINE_OPENGL_UNSYNCHRONIZED=0 %command% (the old uploads), WINE_OPENGL_BATCH=0 %command% (no batching of OpenGL calls). Direct3D 10 and 11 games go through DXMT and are not affected by any of them.
Starting games
A game's first Play after a Macron update no longer waits for a Windows setup step: it starts as quickly as any other start (on the test machines the first start after an update took 7.7 times an ordinary start before this build, and the same as an ordinary start now). A new game starts from a prepared copy instead of building its own Windows environment: about 1.2 to 1.5 times an ordinary start, where it took about 11 times before. The "Wine configuration is being updated" window no longer appears. While a game runs, the Dock, the menu bar and Force Quit still call it wine. docs/startup/README.md in the source has the measurements.
Before you start
Install Steam from https://store.steampowered.com/about/ into /Applications, start it once so it finishes updating itself, and sign in. Steam may stay open: the installer closes it and opens it again.
The package is not notarised
Macron has no Apple Developer ID yet, so the package is unsigned and cannot be notarised. macOS 26 therefore refuses to open it with a double-click: "“Macron.pkg” Not Opened. Apple could not verify “Macron.pkg” is free of malware that may harm your Mac or compromise your privacy." Pick one of these ways past that:
- Terminal, installing directly (the shortest). Open the DMG and run
sudo installer -pkg "/Volumes/Macron <version>/Macron.pkg" -target /. Theinstallercommand does not ask Gatekeeper. - System Settings. Double-click
Macron.pkgand press Done on the warning. Open System Settings > Privacy & Security, scroll to Security, where it says "Macron.pkg" was blocked, and press Open Anyway, then confirm with your password or Touch ID. The installer opens. - Terminal, removing the quarantine. Before opening the DMG, run
xattr -dr com.apple.quarantine ~/Downloads/Macron-<version>.dmg, then open the DMG and double-clickMacron.pkg.
Control-click > Open, which used to skip the check, no longer does since macOS 15: it shows the same warning.
What the install does
- Copies
macronandmacron-uninstallto/usr/local/binand the Steam Play switch library to/usr/local/lib/macron. - On an Apple silicon Mac that has no Rosetta 2 yet (a new Mac has none), installs it from Apple with
softwareupdate --install-rosetta --agree-to-license, which accepts Apple's Rosetta licence for you. Wine is an Intel program and cannot start without it. - As you, not as root, runs
macron runtime install: downloads Wine, DXMT, DXVK and the Steam bridge at pinned versions (about 265 MB) and unpacks them into~/Library/Application Support/Macron(about 2 GB as Finder counts it, less on disk because the second Wine tree is an APFS clone). - Closes Steam if it is open, then runs
macron steam enable:- adds Macron to
~/Library/Application Support/Steam/compatibilitytools.dand makes it the compatibility tool for every app in Steam'sconfig.vdf, after backing that file up; - switches on the Steam Play code that ships, switched off, in Steam for Mac. For that it puts its library into
/Applications/Steam.app, names it in the app'sInfo.plist, and signs Steam.app again ad hoc, because macOS only loads a library into an app whose signature allows it. Valve's three files that this changes (Info.plist,steam_osx,CodeResources) are kept in~/Library/Application Support/Macron/steam-app-backupand go back byte for byte on uninstall.steamplay/README.mdin the repository has the details.
- adds Macron to
- Opens Steam again if it was open.
Because Steam.app's signature changes, macOS forgets Steam's Accessibility and input-monitoring permissions and asks again the next time Steam wants them (they are for controllers through Steam Input). If macOS asks whether the installer or Terminal may modify apps (App Management), allow it; if it blocked the change, the log says so and macron steam enable in Terminal tries again.
If Rosetta or the runtime does not install (no internet, a full disk), the install undoes itself and Installer says it failed. If only the Steam step does not finish (macOS blocked the change to Steam.app under App Management, Steam is a build Macron does not know yet, Steam would not quit, or Steam is not installed or was never started), Macron stays installed and Steam Play is simply not on yet. Either way the installer opens /Users/Shared/Macron install log.txt in TextEdit: what went wrong, what to do next, and the log of that run, ready to send to whoever helps you. To finish the Steam step, quit Steam and run macron steam enable in Terminal; if that says "Operation not permitted", turn on Terminal under System Settings > Privacy & Security > App Management and run it again. Every install run is also appended to /Library/Logs/Macron-install.log.
Using it
Open Steam. A Windows-only game in your library now has a working Install button; Steam downloads it into its normal library, and Play starts it through Macron. A new game's first start takes a few seconds more than later ones: it gets a copy of the Windows environment the installer prepared, in under a second, and Macron writes the registry keys the Steam bridge needs. Steam's Stop button stops it. Games that have a Mac version install and start exactly as before.
- A log of every start is in
~/Library/Application Support/Macron/logs/steam-<app id>/. - Frame rate: create the file
~/Library/Application Support/Macron/show-fps(touchit) and start the game. Direct3D 8 and 9 games then log their frame rate into that log (trace:fps:… @ approx 59.9fps), whichmacron diagnosesums up; Direct3D 10 and 11 games show Apple's Metal HUD over the game and write every frame's interval into that log, whichmacron diagnoseturns into the average and the hitches. Delete the file to turn it off. - When Steam updates itself to a build this Macron does not know, Steam Play goes off (Windows-only games show a greyed Install again) and nothing else changes;
~/Library/Application Support/Macron/logs/steamplay.logsaysUNKNOWN_STEAM_BUILD. Install the newest Macron. If an update replaces Steam.app itself, runmacron steam enableonce with Steam closed. - Games that talk to Steam (ownership, achievements, Steam Cloud, the Steam profile, through
SteamAPI_Init) reach your running Mac Steam through the Steam bridge, a Mac port of Proton'slsteamclient: macron starts them through a smallsteam.exein their Windows environment, and the launch log saysstarting it through steam.exe. Steam must be running and signed in, as for any game. The bridge stays under Valve's licences (St...