Apple added #DX12 support to macOS and Apple Silicon via its Game Porting Toolkit. It’s basically a 20k patch to Wine that will make it easy to play AAA Windows games on macOS without using a VM. https://github.com/apple/homebrew-apple
GitHub - apple/homebrew-apple

Contribute to apple/homebrew-apple development by creating an account on GitHub.

GitHub
This video goes into more details if you don’t want to read the insane patch file augmented on top of the homebrew formula. https://youtu.be/g3n62FOX1Go
Apple hid something AMAZING for Mac gaming at WWDC

YouTube
Also, plz appreciate the lengths Apple will go through to avoid sending stuff to upstream. This has to be GPL v2 b/c Wine/Codeweavers, but rather than patch upstream, this is patched inside a homebrew formula. It’s amazing.
There are 3 videos at #WWDC23 for porting your game for Mac. First video discusses this toolkit a bit but burries the lead for real. https://developer.apple.com/videos/play/wwdc2023/10123/
Bring your game to Mac, Part 1: Make a game plan - WWDC23 - Videos - Apple Developer

Bring modern, high-end games to Mac and iPad with the powerful features of Metal and Apple silicon. Discover the game porting toolkit and...

Apple Developer
@film_girl Diablo IV for Mac please.
@jonfisher @film_girl Blizzard used to be the place you could always count on for a solid Mac version.
@film_girl Someone already got Diablo IV running on an Apple Silicon Mac with the macOS beta. https://www.reddit.com/r/macgaming/comments/14307be/diablo_iv_on_m2_max_using_macos_sonoma_and_game/
Diablo IV on M2 Max using macOS Sonoma and game porting toolkit

Posted in r/macgaming by u/just_reload_it • 1,020 points and 527 comments

reddit
@jonfisher yup! Clearly, this was tested internally before this was released.
@film_girl So… Cyberpunk 2077 for Mac? 🤔🥺🙏🏻
@film_girl BREAKING NEWS: Fire hot, snow cold, Apple being dicks.
@film_girl If the aim of the toolkit is to bring more native games to Mac then it won’t see the light of day to the general public as a way to run Windows games as is which is a shame.
@apt they have to. It’s based on GPL code, they can’t hide the code. They have to make it public. I bet you could run this now against a bunch of AAA games on Steam and get them running on Apple Silicon with no problem.
@film_girl Doesn’t feel very ‘Apple’ but good news, cue a third party dev to make something of this in the coming weeks. *cough* @stroughtonsmith *cough*
@apt @stroughtonsmith oh, launchers will exist very soon for sure. Probably some that even feel very Apple. This is essentially Proton for Mac. https://en.m.wikipedia.org/wiki/Proton_(software) and I expect to see similar frontends the same way Steam Deck has multiple frontends beyond just the Steam interface.
Proton (software) - Wikipedia

@film_girl this is exactly what I've been hoping for since I learned how the steam deck worked.
@benwu @film_girl used to run Half Life 2 like this back when I was little with only an iMac family computer. Wineskin was also great!

@film_girl @apt Feels like to make it actually usable there will have to be some optimization or conversion to Metal.

The vid has Medium on an M2 Max running at 1080 with 28 fps. That's not quite good enough to just wrap up and ship, I would think?

@ringslinger @apt I think it depends on the game. Some tweaks might be needed but I think it’ll depend on the game.
@film_girl @ringslinger @apt In the sessions they talk about this a bit more. Key point is these games still aren't native. Windows means x86 which means Rosetta. This translation is basically not meant to be performant - and they show examples of games having performance issues which need to be corrected in a native port.
@film_girl @ringslinger @apt I’d wager for many games (especially a few years old) it’ll be pretty good.
@ringslinger @film_girl I think that’s the point of the video, run your current windows game without optimisation and tweak accordingly so that’s maybe a worse case scenario demo 🤷‍♂️
@apt @film_girl That's certainly what they are promoting.
@apt @film_girl Wine is not GPL, it's LGPL. They don't have to publish all the code, and indeed they don't for the D3DMetal component.
@apt @film_girl The aim of the toolkit is to let developers test their games on Mac before incrementally doing a proper native port. The license terms of the porting toolkit forbid using it in production (eg. shipping games to the public using it).
@film_girl CodeWeavers gets Sherlocked...
@flargh @film_girl Just as they got DX12 working as well.
@apt @flargh it’s literally their code. Apple has made some modifications/improvements, but it’s literally CodeWeavers code.
@film_girl @apt Just watched the video you pointed to, thanks for the link. Great stuff, glad to see Apple embrace and extend the tech. This doesn't solve the business case problem for Mac games, but anything to reduce friction for devs is aces.
@flargh @apt honestly, the business case doesn’t exist for native metal games imho. This is the way you get good titles on the platform.
@film_girl @flargh Update on yesterdays video. Didn’t take long https://youtu.be/CcYyvzHtJVM
The Mac gaming DirectX 12 Revolution is NOW!

YouTube
@apt @flargh as I said yesterday, from what I understand from people in a position to know, many of the top 100 games on Steam have already been tested. Diablo IV is 60fps. And this is just the beginning of the patch work, I’m sure.
@film_girl @flargh And here we go, a GUI wrapper for the toolkit https://github.com/IsaacMarovitz/Whisky as discussed here https://youtu.be/Cg1g27MUd_0
GitHub - IsaacMarovitz/Whisky: A modern Wine wrapper for macOS built with SwiftUI

A modern Wine wrapper for macOS built with SwiftUI - GitHub - IsaacMarovitz/Whisky: A modern Wine wrapper for macOS built with SwiftUI

GitHub
@flargh not at all. This is a patch to their code. They can take this patch themselves too. This is essentially Apple’s version at Proton, which Valve created to get game compatibility for Steam Deck. The bulk of the code IS CodeWeavers. This is just a patch.
@film_girl If this means I can run Dyson Sphere Program on my M2 Max MacBook Pro, PUT IT IN MY VEINS
@film_girl I liked this line from that video: "The fact that this is open source is literally a game changer."
@ironicsans yup. And literally something Apple couldn’t avoid. Hurray for OSS and in this case, copyleft licenses.
@film_girl Thanks for posting. I am usually dubious whenever I hear about porting tools, this makes me hopeful.
@film_girl This #HUD shows amazing performance for an #emulated game. I know 28fps is is not fantastic, but 28fps for emulated #D3D12 (#DirectX) is absolutely phenomenal - even at only 1080p 60hz!

@film_girl the video is wrong, the directx-on-metal code is closed source, you download it separately and install on top of wine

(boost pls)