by GeekyBear · 1y ago · 0 comments
Wine may not be an emulator, but Proton includes a completely necessary translation layer if you intend to play DirectX games on Linux.
On Mac, Apple provides an open source emulation layer, D3DMetal, to translate from DirectX to Metal which is used by Wine.
As someone who has used both Windows and Linux to game on the same x86_64 device, the performance hit with Proton is pretty much negligible (and sometimes games actually run faster on Linux).
Rosetta is a translation layer that only operates the first time you run a given x86 app on Mac, and creates an ARM translation that is written to disk and used in the future.
Does that mean it has no overhead?
Also, Rosetta is more like a transpiler, since it basically recompiles the binary, whereas the others are literally layers that basically take calls in one API and translate them to another. They're pretty much the same thing as ANGLE.
It's a one time only cost, since Rosetta only runs the first time you launch an app and the translation is written to disk to be used in the future.
That means there is no ongoing cost by your logic, and Proton translating an API call every time it is used is worse.
D3DMetal compiles shades into Metal.
So it doesn't introduce overhead?
> Low level Graphics APIs such as Vulkan, DirectX, Metal, and WebGPU, are converging to a model similar to the way GPUs are currently built.
https://alain.xyz/blog/comparison-of-modern-graphics-apis
Proton is not some magic software that is immune to taking a performance hit when you translate from one API to another.