Image: Apple If you’re hoping to see more Windows games on Mac then those dreams might finally come true soon. Apple has dropped some big news for game developers at
All of the Macs capable of running games
Image: Apple

If you’re hoping to see more Windows games on Mac then those dreams might finally come true soon. Apple has dropped some big news for game developers at its annual Worldwide Developers Conference (WWDC) this week, making it far easier and quicker to port Windows games to Mac thanks to a Proton-like environment that can translate and run the latest DirectX 12 Windows games on macOS.

Apple has created a new Game Porting Toolkit that’s similar to the work Valve has done with Proton and the Steam Deck. Apple’s tool will instantly translate Windows games to run on macOS, allowing developers to launch an unmodified version of a Windows game on a Mac and see how well it runs before fully porting a game.

Mac gaming has been a long running meme among the PC gaming community, despite Resident Evil Village and No Man’s Sky ports being some rare recent exceptions to macOS gaming being largely ignored.

“The new Game Porting Toolkit provides an emulation environment to run your existing unmodified Windows game and you can use it to quickly understand the graphics feature usage and performance potential of your game when running on a Mac,” explains Aiswariya Sreenivassan, an engineering project manager for GPUs and graphics at Apple, in a WWDC session earlier this week.

 Image: Apple
The Game Porting Toolkit can just run Windows games on macOS.

This Game Porting Toolkit even supports DirectX 12 games like The Medium, with Sreenivassan demonstrating running the game through Apple’s translation layer. Much like how Wine and Proton combine to create a software layer to translate Windows API calls to Linux, Apple is doing something similar here to convert these Windows API calls to its Metal API.

Apple’s new Game Porting Toolkit translates Intel-based x86 instructions and Windows APIs to Apple Silicon instead. APIs related to keyboard, mouse, controller input, audio playback, networking, the file system, and Direct3D are all translated to the corresponding APIs in macOS.

The result is Windows games running on macOS without any porting or modification. Apple says this is more for evaluating games right now before they’re ported across to macOS, but there’s nothing stopping macOS users from installing this Game Porting Toolkit and trying games out.

 Image: Apple
Apple’s Game Porting Toolkit lets developers instantly run DirectX 12 Windows games on macOS.

The big issue will be exactly how games run in this environment. Most won’t be optimized through this tool and there are bound to be performance issues and bugs until developers create their own ports. Reddit users have already got Cyberpunk 2077 up and running on an M1 MacBook Pro, alongside Diablo IV on an M1 Max MacBook Pro and Hogwarts Legacy on an M2 Max. The early results look promising despite some obvious performance limitations, but there could be potential bugs from running games on Mac this way.

CodeWeavers announced its own highly-anticipated DirectX 12 support for CrossOver Mac (a similar Windows compatibility layer) earlier this month. But it also warned that despite its advancement “there was no single magic key” that unlocked DirectX 12 support on macOS.

“To get just Diablo II Resurrected running, we had to fix a multitude of bugs involving MoltenVK and SPIRV-Cross,” explained CrossOver Product Manager Meredith Johnson in a blog post. “We anticipate that this will be the case for other DirectX 12 games: we will need to add support on a per-title basis, and each game will likely involve multiple bugs.”

Apple’s own translation layer is still significant, though. Apple has often talked up how high performance its GPU cores are on its M1 and M2 chips, even announcing an M2 Ultra chip this week with a 76-core GPU that’s 30 percent faster than the M1 Ultra. We just haven’t seen that GPU performance in games on Mac because so few get ported across.

Porting Windows games to Mac hasn’t been easy for developers, and typically involves a complex process of recompiling source code, converting custom shaders, reimplementing the graphics subsystem, and converting audio, input, and HDR rendering. Developers can use a cross-platform game engine to cut down on all that complexity if they’re targeting multiple platforms, but they still have to debug a game and optimize the performance on macOS.

Apple now has a tool to let developers understand how much porting work will be required to fix bugs and optimize their games on macOS, and it also has a new Metal Shader Converter to automatically convert existing GPU shaders to Metal. Both of these tools significantly cut down the time and work to port games from Windows to Mac.

Apple’s Mac gaming push also includes a new game mode in macOS Sonoma and game developer Hideo Kojima appearing during Apple’s WWDC keynote to announce that Death Stranding Director’s Cut will be coming to macOS.

If Apple continues with this work on its translation layer, maybe one day it’ll be good enough for end users to run Windows games on macOS just like they do on a Steam Deck. That dream is still a ways off, but Apple has showed this week that it might eventually become reality.

Update, June 9th 9:25AM ET: Article updated with Reddit users running a variety of games on Apple Silicon Macs.

original link


You may also be interested in this

Apple Podcasts gets big i…

Apple has updated its Podcasts app with more discovery options, including adding nine subcategories to the Search tab and the option to explore podcasts by language.Apple PodcastsDetailed by Apple Podcasts

City on Fire lights a fus…

Apple TV+ drama City on Fire drops a bomb this week. Charlie and Keith meet up under less-than-ideal circumstances, while Sam fights for her life. Nicky and Sol have one

Deals: Take Up to $800 Of…

Today we're tracking a few discounts on the 2021 MacBook Pro, including both 14-inch and 16-inch models. You'll find these deals at both Amazon and B&H Photo, with sales that

iPad apps need more than …

Apple Vision Pro is limited in what iPad apps and features it can support, so developers have plenty to do to ensure compatibility.Apple Vision Pro can run iPhone and iPad

New high-end Beats Studio…

New Beats Studio Pro over-ear headphones will arrive July 19, according to the same tipster who predicted the release of Beats Studio Buds+. (via Cult of Mac - Tech and

iOS 17 Developer Beta 2 i…

Macworld The first iOS 17 Developer Beta was released on the first day of WWDC, as is tradition. While it is meant for developers to begin building apps using new

Baseus Blade Laptop Power…

The Baseus Blade 100W Power Bank is a robust and highly informative battery charger, designed to meet the demanding power needs of all your mobile devices.The need for a battery

Play Fortnite on your iPh…

"Fortnite" was just added to the Amazon Luna cloud gaming service. That means the very popular game is playable on iPhone and iPad, as well as Mac. (via Cult of
X

A whimsical homage to the days in black and white, celebrating the magic of Mac OS. Dress up your blog with retro, chunky-grade pixellated graphics to evoke some serious computer nostalgia. Supports a custom menu, custom header image, custom background, two footer widget areas, and a full-width page template. I updated Stuart Brown's 2011 masterpiece to meet the needs of the times, made it responsive , got dark mode, custom search widget and more.You can download it from tigaman.com, where you can also find more useful code snippets and plugins to get even more out of wordpress.