News for hackers. Stuff that matters.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by saagarjha on Tuesday February 27, 2018 @02:31PM (#16477009)
Well, it's obvious why Apple doesn't care about OpenGL: they want people to move to Metal.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by bringtheaction on Tuesday February 27, 2018 @03:43PM (#16477687)
But why do they want that? That’s just making life harder for all the devs. It’s absolutely not realistic to expect devs to want to lock themselves into the macOS and iOS ecosystem by using only Metal, so then they must duplicate their own efforts in Metal that they are already making in OpenGL or in Vulkan or in DX12. Having to maybe care about DX12 even though you don’t want to is bad enough on its own.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by ken on Tuesday February 27, 2018 @04:16PM (#16477978)
It's how Apple has been operating for 10 years with dozens of other frameworks. Plenty of people have been writing programs against Foundation, CoreAudio, MapKit, EventKit, etc, for their {mac,i,tv,watch}OS apps, and obviously different libraries for any other platforms they wish to target.

I do agree that this time it might be different. There's no great cross-platform open-spec solution for, say, EventKit, so when Apple offers up their own API, we've just gone with it. Game Developers are a huge existing community, in a way that Calendar Developers are not. Metal and Vulkan are an unstoppable force meeting an immovable object.

As someone who learned to program in the 1980's, it's pretty amazing that it's getting feasible to target high-performance graphics on every major platform from a single code base. Targeting every user in the world using only 2 graphics libraries doesn't seem so terrible to me. Consider how different the "Lemmings" source code must have been for Commodore Amiga versus the Commodore C=64, for example, not to mention the other 25 platforms it was ported to.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by eropple on Tuesday February 27, 2018 @07:39PM (#16479633)
Core Audio is the one of those tools that I know pretty well, and the reason people use Core Audio is because it is legitimately better than the other options out there. I recently had to retool my video rig to use ASIO on Windows for audio rather than Core Audio on an OS X sidecar and it's way more finicky and difficult to work with.

Metal has no such argument, to the best of my knowledge.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by AlphaSite on Tuesday February 27, 2018 @07:52PM (#16479722)
Metal predates Vulcan. It is also nice in someways in that its not a pure c api iirc.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by pjmlp on Wednesday February 28, 2018 @12:54AM (#16480996)
Yep, fully OO, C++14 shaders and all the respective libraries for textures, fonts, scene definitions,....

Vulkan is the typical Khronos API, pure C, has the extension dance to find out what is available, just knows about pixels and for everything else everyone needs to go fishing for libraries.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by Phrodo_00 on Wednesday February 28, 2018 @03:35AM (#16481591)
Just for curiosity, does it predate Mantle?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by AlphaSite on Wednesday February 28, 2018 @06:12PM (#16488150)
I think metal is based on mantle from before it was announced api understand it, DX12 is similar.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by jheriko on Tuesday February 27, 2018 @07:36PM (#16479612)
> Plenty of people have been writing programs against ...

Maybe in absolute terms, but relatively speaking these things could not exist and nothing would change. They are /exceptionally niche/ libraries at best .. non-existent if honest

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by eropple on Tuesday February 27, 2018 @07:39PM (#16479637)
Emphatically untrue for Core Audio.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by GeekyBear on Tuesday February 27, 2018 @08:29PM (#16479910)
When Apple announced Metal, Alex St. John, one of the original creators of DirectX, posted his take on why this happens:

>At the time that DirectX was created Microsoft also largely controlled the OpenGL standard, the success of DirectX in gaming caused Microsoft to largely lose interest in OpenGL leaving it in the hands of the 3D chip OEM’s to advance as an open standard that they could use to pressure Microsoft to implement features they wanted in DirectX. Apple’s adoption of OpenGL and subsequent active participation on the ARB breathed life into OpenGL in mobile gaming because Apple’s iPhone implementation of OpenGL became the “standard” that other mobile phone and chip vendors had to emulate if they wanted to get IOS games ported to their devices. Without some form of “standard” hardware definition, OpenGL drivers and media drivers in general are often just a grab bag of broken inconsistent functionality. Of course in the absence of a “DirectX” like media API of their own design, Apple had little choice but to jump on the OpenGL bandwagon and ride it for gaming, but clearly it is not to Apple’s competitive advantage to be propping up OpenGL support in mobile for all of their competitors. Just as it did for Microsoft, creating their own proprietary gaming API’s is entirely in Apple’s strategic interest…. Why help Android siphon off their game developers by propping up OpenGL?

https://web.archive.org/web/20140606055700/http://www.alexst...

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by pjmlp on Tuesday February 27, 2018 @05:56PM (#16478868)
Contrary to urban myths game consoles also don't do OpenGL, so AAA game engines always have multiple backends anyway.

And such studios prefer APIs that fully expose the hardware, and then build their own abstractions, than something that hides that extra performance features.

All major AAA game engines already support Metal.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by jheriko on Tuesday February 27, 2018 @07:38PM (#16479622)
+1. They supported it ages ago ... and OpenGL was never cross platform anyway (!)
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by corysama on Tuesday February 27, 2018 @09:11PM (#16480110)
There is a persistent myth that the PS2 and PS3 supported OpenGL. I've worked on both and I can tell you that the implementations were nothing more than experiments that were used by near-zero and zero games, respectively.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by pjmlp on Wednesday February 28, 2018 @12:48AM (#16480977)
Even Linux PS2, which I own, never had a proper GL implementation, rather a kind of mini-GL and an high level version of the PS2.

https://web.archive.org/web/20100524023205/http://playstatio...

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by tasoeur on Tuesday February 27, 2018 @04:44PM (#16478244)
Apple is making its own hardware (GPUs) and wants full control on the drivers and feature set for their graphics API. As someone else mentioned, Vulkan and co are great but also limit to some extent what you can achieve / implement on a given hardware for the sake of cross platform.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by johncolanduoni on Tuesday February 27, 2018 @11:11PM (#16480613)
95% of the time Vulcan exposes much more low level detail than Metal. A good example is that Vulkan requires you manually lay out buffers/textures in GPU memory, while Metal only lets you bin them into heaps. Vulkan also requires much more manual synchronization. Vulkan also exposes a lot of features (conventional tesselation shaders, geometry shaders) that Metal lacks.

Metal’s main advantage is that it lets you adopt more manual management incrementally (you can basically use it as a DX11 analogue if you’re not interested in low level performance gains). Vulkan is definitely intended primarily for engine developers, not for one-off games.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by AHTERIX5000 on Wednesday February 28, 2018 @05:25AM (#16482045)
You are correct about Vulkan being higher level API than Metal in general but there are still Apple-specific functionality in Metal. For example when they released A11 Metal was augmented with a new shading stage intended to match HWs tiled rendering.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by jheriko on Tuesday February 27, 2018 @07:39PM (#16479635)
When did Apple start making hardware exactly? It’s not their design at least so far ... afaik. That’s when this matters
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by djrogers on Tuesday February 27, 2018 @09:25PM (#16480177)
Not sure why people are simply downvoting you without answering your question. Apple shipped its first in-house GPU with the A11 Bionic in the iPhone 8/8+/X, and by all accounts it’s a marvel of engineering and quite fantastic for a first outing.

And you’re right - a look at the developer docs for Metal do show that ‘this matters’

[1] https://techcrunch.com/2017/09/12/the-new-iphone-8-has-a-cus... [2] https://developer.apple.com/documentation/metal/about_gpu_fa...

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by saagarjha on Tuesday February 27, 2018 @09:22PM (#16480164)
Apple was basically the top buyer of Imagination GPUs for years, and worked very closely with them. Last year they severed ties and made the GPUs in-house.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by GeekyBear on Wednesday February 28, 2018 @04:51PM (#16487413)
Apple built its own custom GPU core starting with the iPhone 6 — and nobody noticed

https://www.extremetech.com/gaming/238246-apple-built-its-ow...

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by sudhirj on Wednesday February 28, 2018 @12:28AM (#16480889)
Doesn’t each OS simply provide a high quality and constantly supported API locked to the OS? And leave it to third parties to map any other standards on to it? It seems like DirectX is to Windows what Metal is to macOS - they’re both locked, supported and optimised around the same, no?

Nobody is expecting Microsoft to add native Vulkan drivers on Windows, why would that be expected of Apple?

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by kllrnohj on Wednesday February 28, 2018 @01:28PM (#16485349)
> Nobody is expecting Microsoft to add native Vulkan drivers on Windows, why would that be expected of Apple?

Windows has modern, fast OpenGL & Vulkan support due to Windows allowing IHVs (nvidia & amd) to supply the implementation through the Installable Client Driver model ( https://docs.microsoft.com/en-us/windows-hardware/drivers/di... ), which they do.

It's why AAA games have already shipped Vulkan and performed superbly with it (Doom, DOTA2, etc...), since they work with the IHVs to tune & fix bugs and then ship the driver update along with the game drop.

Microsoft doesn't support Vulkan or OpenGL, yet they also are not blocking them. That's the critical difference here. Why is Apple not allowing Nvidia or AMD to do the same on macOS? It's not a question of not supporting it out of the box or doing the work, it's a question of preventing others from supporting it.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by GeekyBear on Wednesday February 28, 2018 @05:51PM (#16487978)
Nvidia and AMD didn't take over supporting OpenGL when Microsoft abandoned it out of the goodness of their hearts. They did so because they were in a highly competitive marketplace and supporting OpenGL was a competitive advantage.

Meanwhile, on the Mac, the cheese grater Mac Pro is the only model you can install their graphics cards into and it exited production half a decade ago.

The problem isn't that MacOS lacks Kernel Extensions.

The question is why should Nvidia or ATI take on the expense when there is no marketplace to compete in.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by kllrnohj on Thursday March 01, 2018 @12:56PM (#16494384)
They both have competitive Linux drivers which has even less market share. Given how little kernel-specific is even in the driver I don't see any reason to believe Nvidia or AMD wouldn't happily provide their latest and greatest driver. Especially since they are competing for that bid for whose GPU Apple blesses for that generation of Mac hardware.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by GeekyBear on Friday March 02, 2018 @06:25PM (#16506692)
You can buy their graphics cards and plug them into a computer running Linux, say in a render farm.

The only Mac you can purchase and use their products in exited production half a decade ago.

Without the possibility of making sales, why would they bother?

Apple's pro software made a big bet on OpenCL in the past, so I don't see them going with anybody but ATI for built in GPUs until they root that dependency out of their software and switch over to Metal for compute.

Nvidia certainly isn't going to put OpenCL performance on an equal footing with CUDA performance, so I can't see them getting a design win with Apple as long as Apple's in house software is still using OpenCL.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by kllrnohj on Friday March 02, 2018 @07:09PM (#16506908)
> Nvidia certainly isn't going to put OpenCL performance on an equal footing with CUDA performance

And yet: https://www.phoronix.com/scan.php?page=news_item&px=GTX-1080...

OpenCL performs great on Nvidia.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by GeekyBear on Friday March 02, 2018 @08:47PM (#16507344)
Perhaps so, but they haven't seen a design win for a discrete GPU on the Mac since 2013 for the iMac, and 2014 for the Macbook Pro.

That happens to be not terribly long after Apple started offering rewrites of their pro apps that went all in on OpenCL.

Nvidia did put out a driver for the cheese grater Mac pro so it can use Pascal based cards, which is nice, but I imagine that's motivated by a desire to maintain CUDA dominance.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by mcphage on Tuesday February 27, 2018 @04:19PM (#16478017)
> But why do they want that? That’s just making life harder for all the devs. [...] Having to maybe care about DX12 even though you don’t want to is bad enough on its own.

They probably figure, if developers are willing to do it for DirectX, they'll be willing to do it for Metal also / instead.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by megaman22 on Tuesday February 27, 2018 @06:32PM (#16479176)
Market share for Metal is an order of magnitude less than for DirectX. That's a hurdle.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by mcphage on Tuesday February 27, 2018 @09:18PM (#16480145)
Windows PC shipments in 2017 seem to be about 204 million (https://www.gartner.com/newsroom/id/3849063)

iPhone sales in 2017 were 223 million (https://www.usatoday.com/story/tech/talkingtech/2017/12/29/i...)

The total market share is a much more complicated picture, obviously, but I don't think the difference is nearly as big as you do.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by yorwba on Tuesday February 27, 2018 @11:55PM (#16480770)
It also depends on what exactly Gartner classified as "Ultramobile (Premium)", which they apparently counted towards the "Total PC market" (262 million in 2017). Which one comes out ahead depends on the relative share of Windows 10 tablets vs. iPads in that segment.

In any case, that still puts Metal and DirectX in the same order of magnitude.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by saagarjha on Tuesday February 27, 2018 @07:33PM (#16479587)
Keep in mind that Metal also works on iOS.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by kirillseva on Tuesday February 27, 2018 @06:47PM (#16479289)
are there more windows PCs that care about running graphics-demanding software, or are there more iphones?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by jchb on Tuesday February 27, 2018 @08:30PM (#16479919)
Don't know about any statistics that cover specifically that segment, but when it comes to new device shipments, it has been reported that iOS + macOS surpassed Windows + Windows Phone already in 2015, and it is estimated that this trend has continued since then.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by jheriko on Tuesday February 27, 2018 @07:41PM (#16479644)
PCs. iPhones are very us centric ... the rest of the world dominates unsurprisingly.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by djrogers on Tuesday February 27, 2018 @09:26PM (#16480185)
Windows PCs haven’t outsold MAC+iPhone for several years now...
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by megaman22 on Wednesday February 28, 2018 @01:29AM (#16481119)
That's probably a good question. Those who are actually pushing the hardware in both camps are most likely the minority, as opposed to those who are working with glorified web views.

But AAA on a Windows desktop commands $40-60, whereas AAA on mobile commands < $8 +/- scuzzy IAP schemes.

This list[1] is quite a bit different looking from this list[2]

[1] http://store.steampowered.com/search/?filter=topsellers

[2] https://www.apple.com/itunes/charts/paid-apps/

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by jheriko on Tuesday February 27, 2018 @07:40PM (#16479641)
Get it right ... two orders of magnitude less ... rounding up in favour of apple
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by saagarjha on Tuesday February 27, 2018 @09:24PM (#16480171)
Over a billion iPhones have been sold, and a couple billion Windows PCs. Not quite "two orders of magnitude".
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by mcphage on Tuesday February 27, 2018 @09:19PM (#16480147)
Are you so sure about your numbers there? What's your evidence?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by richdougherty on Tuesday February 27, 2018 @03:55PM (#16477792)
> not realistic to expect devs to want to lock themselves into the macOS and iOS ecosystem

From Apple's perspective it's probably worth a try to get lock-in! Their real leverage is iOS, which lots of games want to target.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by djrogers on Tuesday February 27, 2018 @09:18PM (#16480146)
They want to control the APIs so they can tie them more closely to their hardware. Most game devs I’ve heard from that want cross platform are more concerned with wether Unreal or Unity supports Metal than what OSs supppory which OpenGL or Vulkan APIs.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by kllrnohj on Tuesday February 27, 2018 @06:11PM (#16478999)
The gap between the last version of OpenGL that Apple supports and the release of Metal for OSX is 5 years. Even giving metal a few years of development it still means Apple abandoned OSX graphics before they began working on Metal at all. Given that they updated GLES on iOS for a couple of years after the last update to OpenGL on OSX it seems more plausible that macOS is just a second-class citizen to Apple, or at least the graphics are.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by saagarjha on Tuesday February 27, 2018 @07:34PM (#16479596)
I'm sure the real reason is a combination of these factors. Why support OpenGL on Mac OS X if a new API will be in development soon?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by kllrnohj on Tuesday February 27, 2018 @07:51PM (#16479714)
"in development soon"?

For comparison the Vulkan project began July 2014 and was released 19 months later. That released on multiple GPU vendors and OSes at launch, which Metal did not. So let's say Metal took 2 years from conception to release, even though it only targeted one platform and one GPU (and likely took less time as a result)

That means OpenGL was abandoned on OSX roughly 3 years before Metal existed as a project at all.

The timelines of Metal vs. OpenGL on OSX just don't line up at all to be any sort of API redirection effort. It just doesn't mesh.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by saagarjha on Tuesday February 27, 2018 @07:57PM (#16479756)
I don't know the timeline that the graphics team at Apple follows, so the best I can provide you with is a guess as to what I think the reasons are behind their release schedule. Maybe the team was reorganized?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by jheriko on Tuesday February 27, 2018 @07:42PM (#16479654)
Because current projects must work?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by saagarjha on Tuesday February 27, 2018 @07:54PM (#16479737)
And they'll continue to work if nobody changes them.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by macintux on Tuesday February 27, 2018 @11:17PM (#16480636)
That’s generally not true for software on evolving hardware/operating systems.