3 ms·
Well, I guess you know all this but you've asked me to elaborate. So, in terms of compatibility you have: DX12: Windows only. Metal: macOS/iOS only. Vulkan: cr
by ioquatix 10y ago
Well, I guess you know all this but you've asked me to elaborate. So, in terms of compatibility you have:
DX12: Windows only. Metal: macOS/iOS only. Vulkan: cross-platform and cross-vendor. Windows 7/8/10, Android, Linux, MoltenVK supports iOS/macOS with a wrapper. That's a big win for Vulkan IMHO. Valve also agrees with this assertion.
In terms of performance, I don't think Metal is even a contender, given how bad macOS hardware is compared to Wintel. w.r.t. Vulkan vs DX, from what I've seen it's pretty close, with Vulkan usually coming out ahead by a few performance points but of course it depends a lot on the implementation when it's at that level. Vulkan has been shown to be systematically better than OpenGL.
- MrScruff 10y agoIt makes no sense to judge the quality of an API by the power of the available hardware it might be running on. The discussion is not about what platform will run VR the best. In addition, Apple will be rightly considering iOS when evaluating options for web technologies, not the increasingly small section of the planet running Nvidia and AMD hardware on Windows.
- ioquatix 10y ago> It makes no sense to judge the quality of an API by the power of the available hardware it might be running on. I didn't make any such judgement or even mention VR a single time! But, looking at the points you've raised, I can say with confidence that Vulkan has been designed, taking into considering these issues. Vulkan has been carefully engineered from the ground up not to alienate tile-based renderer hardware. So, it's just as suitable for mobile GPUs as desktop GPUs. https://www.imgtec.com/blog/tiling-positive-or-how-vulkan-maps-to-powervr-gpus/ https://www.imgtec.com/blog/tiling-positive-or-how-vulkan-ma... As such, it's already supported by many mobile GPU hardware vendors. > In addition, Apple will be rightly considering iOS when evaluating options for web technologies, not the increasingly small section of the planet running Nvidia and AMD hardware on Windows. The GPU in the iPhone 7 uses a custom version of the PowerVR GT7600 GPU. While this is purely speculation, PowerVR does support Vulkan in their other offerings, so it's not that much of a stretch to assume that the hardware is at least capable of it. NVidia, AMD and Intel power all of Apple's desktop graphics, in addition, they collectively power almost all of Windows and Linux setups too (excepting other mobile and SFF computers)
- Angostura 10y agoYou did make such a judgement- you wrote: > In terms of performance, I don't think Metal is even a contender, given how bad macOS hardware is compared to Wintel.
- ioquatix 10y agoI said: > In terms of performance, I don't think Metal is even a contender, given how bad macOS hardware is compared to Wintel. The response was: > It makes no sense to judge the quality of an API by the power of the available hardware it might be running on. You are right, that my statement is not very clear. The key point here is that I'm not judging the quality of an API by the power of the available hardware, but the quality of APIs relative to how much overhead they add, and that's quite a different proposition. Given my intimate frustration with the state of Mac hardware and GPUs, I brushed off macOS as being somewhat ancient w.r.t. modern hardware and benchmarks. You can't go out and buy a Mac with a GTX 1080 for example. In fact, even the best Mac hardware you can buy is ridiculously outclassed by PCs costing significantly less. However, back to the specific point of interest: The overhead of APIs can be measured if you run the same benchmark, on the same hardware, with the different API. On Windows, it's possible to compare, say, DX9, DX11, DX12, OpenGL and Vulkan within the same benchmark. It's not possible to test Metal this way. Specifically though, Vulkan is a C based API which is essentially as fast as it gets, in terms of actual function calls and so on. In comparison, Metal uses Objective-C. If you are familiar with Objective-C, you'll know that it doesn't have the fastest message dispatch (quasi-function call). Basically, it would be really interesting to compare them, holding all other things equal. But, doing this with off the shelf GPUs simply isn't possible AFAIK. macOS hardware is simply too far behind. You might be able to jury-rig something using an external GPU, but it's still not a good comparison. My past experience of the graphics stack in macOS tells me it's unlikely to be great.
- AlphaSite 10y agoYou need to provide some evidence that function dispatch is a limiting factor for Metal, if you're going to argue that it is a limiting factor. Also you seem to be under the impression that because a machine is expensive it is destined for gaming.
- foobiekr 10y agoIt does, though. Many times bottlenecks and missteps are not really visible until you can see how your decisions and assumptions encounter reality especially when every other chokepoiht has been removed. Unless they did their development on Windows or on hardware that has never shipped, Apple isn't really in the position to have evaluated how well Metal works in reality. I would add that the awkwardness of some "good" API designs is often not revealed until much later (and this is doubly true in the graphics space where there is ample evidence of API choices revealing themselves to be stuck with what turned out to be bad choices some times later).
- HNLogInShit 10y ago"I don't think Metal is even a contender, given how bad macOS hardware is compared to Wintel" That is BS. You're judging an API based on the hardware it tends to run on?