News for hackers. Stuff that matters.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by ryandrake on Tuesday February 27, 2018 @02:25PM (#16476934)
These guys also have an implementation[1] of OpenGL that’s optimized for Metal, and supports more modern OpenGL than Apple’s pathetic “frozen in time” implementation. Sadly it’s not open source, but I suppose a company’s gotta make money somehow.

Such a shame that such essential support for hardware that comes with every Mac apparently needs to be provided by a third party.

1: https://moltengl.com/moltengl/

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by gumby on Tuesday February 27, 2018 @03:21PM (#16477472)
> Such a shame that such essential support for hardware that comes with every Mac apparently needs to be provided by a third party.

Why? The whole point of having a general purpose computer is that you can install stuff. I do prefer to use the bundled facilities in my OS but sometimes third party alternatives are superior.

(The point of a phone is arguably different.)

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by zanny on Tuesday February 27, 2018 @04:02PM (#16477853)
Except this model is for third parties to provide user products on a solid OS foundation. Apple cripples their OS in multiple ways to make developing for it harder artificially, necessitating third parties to do the work to make the platform usable for developers. That is Apples failure as a platform maker, but they don't get any ire for it because respectively their hardware is good and their phone platform cannot be ignored when developing for mobile.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by Sir_Substance on Tuesday February 27, 2018 @04:06PM (#16477876)
This is less like choosing which browser you want and more like macOS only supporting USB 1.1 and all USB2/3 drivers being provided by a third party company.

That'd be pretty shameful, were it real. How macOS has handled the whole metal saga has been pretty shameful too.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by jheriko on Tuesday February 27, 2018 @07:34PM (#16479591)
A Mac isn’t general purpose ... or generic. It’s bespoke as hell.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by mr_toad on Tuesday February 27, 2018 @07:39PM (#16479630)
Ironically it’s usually easier to install and use open source software on macOS than in Windows, since most of it is developed for Linux, and the Mac version of Unix is close enough to make ports easy.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by jchb on Tuesday February 27, 2018 @08:13PM (#16479829)
macOS, also the latest version High Sierra, is even certified Unix [0]. Mac has non-standard hardware yes, bespoke software hell yes, but also pretty good standard compliance when it comes to the lower level system interfaces - lower level as in below the various high level frameworks such as the UI toolkit Cocoa.

The Linux Standard Base is a superset of POSIX (Portable Operating System Interface [for Unix]), with some small incompatibilities [1]

[0] https://www.opengroup.org/openbrand/register/ [1] ISO/IEC TR 24715:2006 Technical Report on the Conflicts between the ISO/IEC 9945 (POSIX) and the Linux Standard Base http://standards.iso.org/ittf/PubliclyAvailableStandards/ - there is probably a newer version of this report but that is not freely available

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by billsix on Tuesday February 27, 2018 @11:30PM (#16480682)
And how is that ironic, Alanis Morissette?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by billsix on Wednesday February 28, 2018 @12:37AM (#16480927)
Irony could be closed source software on Linux or the bsds. Comparing FLOSS on windows vs osx seems silly to me.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by jonny_eh on Tuesday February 27, 2018 @05:59PM (#16478890)
It's like leaving road building to companies, it should be provided by the local government.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by gnarbarian on Tuesday February 27, 2018 @06:10PM (#16478987)
Road building is done by private companies contracted to build them.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by __s on Tuesday February 27, 2018 @07:11PM (#16479448)
Which would be Apple having moltengl replace their implementation
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by gnarbarian on Tuesday February 27, 2018 @07:26PM (#16479541)
and pay them for the work...
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by Sophistifunk on Tuesday February 27, 2018 @10:12PM (#16480398)
Why should they? Let the developers who don't want to use metal pay them.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by akritrime on Tuesday February 27, 2018 @10:54PM (#16480565)
Why should the government pay for fixing potholes? Let the people who don't want to get stuck in potholes fix them with their own money.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by Cyphase on Tuesday February 27, 2018 @08:39PM (#16479962)
How is it like that?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by galad87 on Tuesday February 27, 2018 @02:50PM (#16477175)
Actually it supports only OpenGL ES 2. So still worse than macOS OpenGL.
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.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by MBCook on Tuesday February 27, 2018 @05:18PM (#16478548)
Why would you want a newer OpenGL? I thought the whole point of Vulkan, DX12, and Metal was to move away from such a single-threaded stack driven graphics API to something that was a much better fit for modern cards and engines.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by kllrnohj on Tuesday February 27, 2018 @05:58PM (#16478879)
OpenGL on OSX is stuck on 4.1, which is from 2010. It's not just a little of date such that you should begin migrating to Vulkan/Metal, it's ancient. It's old enough to not even have compute shaders (that's OpenGL 4.3)
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by manicdee on Tuesday February 27, 2018 @06:46PM (#16479270)
How do you prevent shaders being used to gain elevated privileges?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by __s on Tuesday February 27, 2018 @07:12PM (#16479452)
...?? By not having buggy drivers?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by psykotic on Tuesday February 27, 2018 @11:35PM (#16480704)
Modern discrete GPUs also have IOMMUs and per-context page tables. It's a large attack surface which has received relatively little attention from hackers so far compared to CPUs, but there are hardware-level security features in place.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by kllrnohj on Wednesday February 28, 2018 @12:03AM (#16480792)
It's a really small attack surface. Other than the tiny, basic mini CPUs what's even on the GPU? There's no OS to speak of, no privileged processes to poke at, etc...

Other than the framebuffer there's not even any data of worth on the GPU.

The attack of note that's been mitigated is DoS attacks through webgl, but GPU preemption is a thing now which largely solves the infinite loop in a shader to lock up the machine.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by fulafel on Thursday March 01, 2018 @12:41AM (#16489936)
Sorry but you are really on the wrong track on every point. Attack surface (the drivers are the GPU OS, though hardware bugs do play a part too), GPU memory sensitivity, WebGL history (it's been much worse, not DoS only etc).

(And re the MMU features upthread, it's just a building block. Just like CPU having a MMU doesn't make your OS magically secure)

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by kllrnohj on Friday March 02, 2018 @07:17PM (#16506951)
You seem to have entirely lost the context. We're talking what you can attack from code running on the GPU (aka, from a compute shader), which does not include the drivers since that's not running on the GPU.

If you want to attack the shader compiler go for it, but since that lives in your own process anyway so you could skip that step and go straight to attacking whatever it is you wanted to attack.

> WebGL history (it's been much worse, not DoS only etc).

Such as? All I'm finding are DoS attacks. But regardless WebGL's problems were more due to WebGL and its designs than in vulnerabilities in the drivers or GPUs.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by fulafel on Monday March 12, 2018 @03:34PM (#16570744)
The context was "How do you prevent shaders being used to gain elevated privileges?" and those go through the whole stack.

Regarding WebGL vulnerabilities, you can use your favourite search engine to look up vulnerabilities, here are some first hits for RCE bugs: https://www.cvedetails.com/cve/CVE-2012-3968/ https://bugs.chromium.org/p/chromium/issues/detail?id=740603 https://nvd.nist.gov/vuln/detail/CVE-2017-5128

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by mathnode on Tuesday February 27, 2018 @05:10PM (#16478479)
I am always bitterly disappointed in HN's views and understanding of graphic API's. HN, what I largely assume is a community of programmers. Not Khronos idealists. The OpenGL dream died long ago. I think we can thank CAD and GPU vendors for that.

Yet here we are again. If Valve had to port software to Nintendo or Sony; they would be using the native, supported API's. Not porting over Vulkan or OpenGL.

Just use Metal. It really is, very good.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by errantspark on Tuesday February 27, 2018 @05:20PM (#16478565)
Vulkan is also very good, and not vendor locked. Vulkan is the sole ray of hope that one day we may have a sane graphics stack that works properly across different platforms. If I'm reading the trend right I might even be able to get rid of my Windows partition during my lifetime.

It won't be because Apple decided to make it's own competing standard.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by mathnode on Tuesday February 27, 2018 @05:28PM (#16478623)
It's not just Apple. This is what everyone forgets. It's Microsoft, Apple, Sony and Nintendo.

Every big vendor and platform for 3D games and software, has their own graphics API which work better and faster than OpenGL and Vulkan. It is only CAD still stuck on OpenGL (and the proprietary extensions).

Idealism is not the answer to positive end user experience.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by kllrnohj on Tuesday February 27, 2018 @06:22PM (#16479100)
"Every big vendor and platform for 3D games and software, has their own graphics API which work better and faster than [..] Vulkan."

[citation needed]

Not that they have their own API, but that it's at all better or faster than Vulkan. Remember Vulkan primarily came from AMD's Mantle. It's not the creation of a committee catering to the lowest common denominator.

And no, it's not only CAD still stuck on OpenGL. Games use it, too. Most of mobile is also on OpenGL ES. Increasingly more of them use it than they used to, even, as increasingly games are using off-the-shelf engines that are already cross-platform and have an OpenGL back-end.

The single largest consumer OS in the world (Android) only supports OpenGL ES & Vulkan, even, with no proprietary graphics API of any kind.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by LeoNatan25 on Tuesday February 27, 2018 @07:15PM (#16479478)
Actually, most iOS games in recent years have been using Metal, as are most “off the shelf” engines internally.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by drawkbox on Tuesday February 27, 2018 @08:02PM (#16479781)
> Actually, most iOS games in recent years have been using Metal, as are most “off the shelf” engines internally.

Largely due to support in Unity/Unreal. They would be using OpenGL ES still if they had their own engines except maybe the biggest game studios that always have custom game engines/rendering integration.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by kllrnohj on Tuesday February 27, 2018 @07:23PM (#16479514)
iOS is not the largest mobile OS, so 100% of iOS could be doing something and it still wouldn't be "most of mobile" ;)
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by AlphaSite on Tuesday February 27, 2018 @07:55PM (#16479742)
Most mobile users who matter (revenue).
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by kllrnohj on Tuesday February 27, 2018 @08:20PM (#16479860)
Revenue per graphics API would be fascinating, albeit very different, investigation. It would likely also put OpenGL on desktop in a very different light given the professional products still using it.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by dingo_bat on Wednesday February 28, 2018 @02:34AM (#16481373)
iOS is definitely the most used mobile OS.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by Intermernet on Wednesday February 28, 2018 @03:52AM (#16481656)
Do you have a link for that stat? Last time I looked android was quite a way in front in global market share[1] . Happy to be proven wrong.

[1]: https://www.idc.com/promo/smartphone-market-share/os

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by dingo_bat on Wednesday February 28, 2018 @05:16AM (#16482020)
I don't consider "Android" to be an OS. It is like Linux, there are a hundred different OSes all running on top of the same kernel and framework. For example, the OS Samsung runs on their phones is so different from the OS Xiaomi runs on theirs that a casual user might think it's a completely different system.

So lumping together all of these variants and calling them "most used OS" is not useful in any sense. They are very different for users, and very different for devs.

This is specially relevant when you want to develop a game against a graphics API. Samsung has Vulkan on their flagships for a couple years now, but not the mid/low-end devices. Pixel supports Vulkan, but the units sold are so low that they are a rounding error. No other major manufacturer significantly supports Vulkan either. In this and similar scenarios, the framework used by ios may well be the "most used" mobile framework.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by Intermernet on Wednesday February 28, 2018 @06:13AM (#16482193)
> I don't consider "Android" to be an OS.

Then you're correct by your definition, but not by most people's definition.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by pjmlp on Wednesday February 28, 2018 @01:00AM (#16481022)
Vulkan support on Android is basically constrained to a few Nougat and Oreo devices.

And even then, it is only required on those that support VR.

Metal is supported on across all iOS devices still getting updates.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by kllrnohj on Wednesday February 28, 2018 @01:10PM (#16485172)
Android only requires GLES 2 yet 63.6% of devices support GLES 3+ anyway.

Since nearly everyone's GLES 3 hardware both supports vulkan & has vulkan drivers already there's no particular reason to believe that an OEM will decide to just not ship vulkan support. It's more work for them to remove Vulkan from the SoC's base image than it is to just not touch it.

The low-end GLES 2 hardware is the only problem, which is a market iOS simply doesn't exist in at all. So if you're cool with ignoring that market, go for it.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by pjmlp on Friday March 02, 2018 @04:48AM (#16500245)
Well Godot engine developers don't have good experience regarding GLES 3 support, at all.

https://godotengine.org/article/abandoning-gles3-vulkan-and-...

Lets see if they have better luck with Vulkan.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by errantspark on Tuesday February 27, 2018 @05:44PM (#16478757)
I don't think that's necessarily true anymore. Vulkan and even OpenGL have shown a lot of promise recently, in real world tests. You may be right that it's simple idealism from my end but I (want to) believe that Vulkan is coming along at the right time/space to gain broad support in the industry. I'm no fan of DX12 either, or NVN or whatever it is that Sony has. The low level nature of MoltenVK and likely the future DX12 <-> Vulkan layer will result in a small enough perf hit that it will make sense for developers to target Vulkan instead of 3 different APIs. Perhaps similar libraries will become available for Sony and Nintendo platforms as well. I hope that the trend will continue and one day I won't have to resort to OpenGl ES in order to write something that's truly cross platform.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by drawkbox on Tuesday February 27, 2018 @08:24PM (#16479879)
> Every big vendor and platform for 3D games and software, has their own graphics API which work better and faster than OpenGL and Vulkan.

True but console is a different beast though, it seems you are focused on that not just mobile which was always just OpenGL ES mainly since '07 until Metal entered the arena.

On consoles/custom handhelds, they have always had their own frameworks to get the most out of their custom hardware and for lock-in exclusives, to compete and advance their hardware as far as possible for the console lifeline, to sell as many games as possible as the hardware ages as game content is where they made profit. Consoles have modified versions of frameworks or their own like gcm from Sony. They do support standard ones but mostly people use the custom ones to get the most out of the hardware and the hardware makers like that.

On desktop, only two essentially in DirectX and OpenGL and was that way for a long time. Portability was fine, DX windows, OpenGL everything else but DX was the major one due to Windows desktop dominance.

On mobile, OpenGL ES on the major mobile platforms, iOS and Android, pretty much the only one since '07 until Metal.

As I mentioned in other areas, not a huge deal to game developers who aren't building their own engine but portability does matter on desktop and mobile, not just consoles which have reasons for custom rendering engines/toolkits.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by zem on Tuesday February 27, 2018 @05:41PM (#16478736)
and proprietary apis are not the answer to positive developer experience. time will show whether insisting on your own world-incompatible graphics apis will lead to developers writing custom apps for your platform, or whether they will use whatever lets them release on many platforms at once.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by pjmlp on Tuesday February 27, 2018 @06:03PM (#16478923)
Professional game developers have been choosing proprietary APIs since ever.

They were the ones telling Sony that their efforts for having OpenGL ES 1.0 on the PS3 were not worthwhile pursuing.

OpenGL ES on the PS3 was barely used beyond prototypes and simple demos.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by Impossible on Tuesday February 27, 2018 @06:26PM (#16479131)
Indie titles shipped using OpenGL ES on PS3 and indies got Sony to eventually release an OpenGL wrapper for PS4 as well. If you want decent portability and all your game does is draw alpha blended sprites with simple shaders it could be a win. Questionable how much better that is than either making your game with a portable engine like most indies are doing, or using gnm directly.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by zem on Tuesday February 27, 2018 @07:46PM (#16479679)
mobile dev seems a lot more (for want of a better word) grassroots than professional game dev. lower barrier to entry, and a larger set of people who have a good idea they feel they can implement. also phones will probably bring up a lot of uses for a good high-performance graphics api that are not game-related, as people think of more and more things they would like to do with the computer in their pockets.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by johncolanduoni on Tuesday February 27, 2018 @11:20PM (#16480645)
Vulkan also requires a huge amount of code to do relatively simple things, and is much easier to invoke UB with. It was always intended first and foremost for engine developers. Metal is far more appropriate for games that use their own graphics code but aren’t doing anything too special or have time for painstaking optimization.

Using Vulkan is like writing your own language runtime over system calls: you have to handle memory allocation and synchronization on your own.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by mellinoe on Wednesday February 28, 2018 @02:41AM (#16481398)
> > Vulkan also requires a huge amount of code to do relatively simple things

IMO, this is a common misconception. Or, at least, the extrapolation of it is. Vulkan might require a lot of code to initialize, and has extra responsibilities related to memory management, synchronization, etc., but in my experience the end product doesn't require significantly more code than other graphics APIs. The up-front cost you pay doesn't translate to increased costs everywhere else, at least not to the same degree.

My library supports D3D11, Metal, Vulkan, and OpenGL, and Vulkan is the second-largest backend, but not by a lot (LOC: ~5k Vulkan, ~3.3k D3D11, ~2.5k Metal, 6k OpenGL). LOC is not the best indicator of complexity, to be fair. My OpenGL backend is definitely the most difficult to maintain and the largest, because the API is such a pain to deal with.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by pjmlp on Tuesday February 27, 2018 @06:00PM (#16478898)
As someone with former experience at IGDA and that dwelled in a few GDCE's, I think many at HN just don't get one bit as professional game studios work and how different the game developer's culture is from FOSS.

This is the world that was born from demoscene, where exploiting cool hardware specific tricks was more valuable than writing portable code.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by jheriko on Tuesday February 27, 2018 @07:51PM (#16479715)
Or how far FOSS is for the rest of the world tbh ... so many 1960s practices in foss world it makes me sad :(
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by emh68 on Tuesday February 27, 2018 @05:24PM (#16478584)
What do you mean by “the OpenGL dream died”? It seems to me that we were slowly moving toward a unified API across all operating systems, then Apple did what they always do and invented their own closed API.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by bronxbomber92 on Tuesday February 27, 2018 @07:05PM (#16479411)
Vulkan, as a Khronos open standard, likely wouldn't exist if Apple didn't make Metal. Khronos was content for OpenGL{ES} to sputter ad infinitum until it realized that its largest platform (iOS/macOS) was moving on. It helped that the rest of the industry (MS, AMD) was also moving in the same direction, but it was the release of Metal that broke the camel's back.

There were several efforts in the past to revamp OpenGL (e.g. long's peak), but they all failed. OpenGL was stuck and there was little reason to think the situation would improve. Writing OpenGL code that worked across multiple platforms was worse than it is today to write multiple per-graphics-API render backends.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by kllrnohj on Wednesday February 28, 2018 @01:39PM (#16485449)
If anything the current crop of new graphics APIs (Metal, Vulkan, and DX12) all owes their start to AMD's Mantle project. Metal certainly didn't get the ball rolling, although it almost certainly accelerated Khronos's path to standardization & shipping (which is why Vulkan adopted Mantle as the base, to ship quicker). AMD gets that claim.

OpenGL was not stuck, either. OpenGL's AZDO project was alive & well: https://www.khronos.org/assets/uploads/developers/library/20... (just not on macOS because AZDO is GL4.2+ whereas macOS is stuck on 4.1)

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by mathnode on Tuesday February 27, 2018 @05:30PM (#16478638)
Apple, Nintendo, Microsoft, and Sony have great API's that are not opengl or vulkan.

I am not saying opengl or vulkan is bad.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by emh68 on Tuesday February 27, 2018 @05:33PM (#16478672)
Apple doesn’t count, they just recently moved to Metal from standard OpenGL. Do consoles use something custom? Not OpenGL?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by mathnode on Tuesday February 27, 2018 @05:36PM (#16478700)
Apple doesn't count? did you RTFA? It's all about apple and proprietary graphics API's.

Apple Metal launched in 2014.

Sony and Nintendo and NEVER used OpenGL for anything extensive. Sony talked the talk around 2005 and 2006 with the launch of the PS3 and OpenGL ES but PSGL was always more performant.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by karyon on Tuesday February 27, 2018 @05:43PM (#16478745)
The Nintendo Switch supports OpenGL 4.5, OpenGL ES, and Vulkan: https://wccftech.com/nintendo-switch-supports-vulkan/
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by pjmlp on Tuesday February 27, 2018 @06:05PM (#16478948)
Switch supports Vulkan and their own low level API, NVN.

Source https://developer.nintendo.com/

Just like Sony did in the past with the PS 3 and GL ES 1.0, they are just testing waters to see which way devs go.

In the PS3 devs preferred to pick Sony's API instead.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by mathnode on Tuesday February 27, 2018 @05:51PM (#16478811)
That's just dandy. Show me software that uses it. This is 2005 all over again. You make that deal. You talk to that support. You prove me wrong, please do! The better support, debuggers, and feature requests will come from the native API.

PLEASE prove me wrong.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by jheriko on Tuesday February 27, 2018 @07:56PM (#16479747)
After months of devkits with the real api ...
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by emh68 on Tuesday February 27, 2018 @08:23PM (#16479873)
I did RTFA, but you were saying the OpenGL dream has been dead for a long time, which I took to mean pre-2014 ;)

Uou have convinced me that Metal might not be so bad... at least is all the consoles have custom APIs then it’s not as unusual as I thought.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by jheriko on Tuesday February 27, 2018 @07:55PM (#16479744)
You mean gcm? PSGL is the ps3 OpenGL implementation afaik
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by jheriko on Tuesday February 27, 2018 @07:55PM (#16479739)
Consoles don’t use OpenGL.... even when they say they support it ;)
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by jheriko on Tuesday February 27, 2018 @07:53PM (#16479728)
Yeah it might look this way if you never used graphics APIs... truth is it has never been possible to write code against OpenGL for all platforms without extra platform specifics ... it’s also never been anything but trivial to wrap graphics so that the backend is switchable. Metal, mantle, Vulcan, dx12 have done nothing to change that
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by slavik81 on Wednesday February 28, 2018 @01:46AM (#16481176)
There are enormous hoops to jump through to release a game on a console. Each console has its own list of certification requirements. Even ignoring the graphics API, it takes significant platform-specific development effort to port a new game engine from Playstation to Xbox.

On the other hand, when I develop OpenGL programs on Linux, it takes maybe a few hours to fix up the few compile errors I might encounter on OSX. Swapping out the graphics API would dwarf all the other porting work combined.

Seriously, all I want is to be able to write graphics programs using compute shaders and share them among my colleagues who use OSX, Linux and Windows. I don't want to write my programs three times. Is that really too much to ask?

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by erikj on Tuesday February 27, 2018 @06:23PM (#16479108)
Nintendo and Sony are a tiny insignificant speck of the market compared to all the OpenGL ES compatible devices available. I guess every smartphone vendor not called Apple is ran by Khronos idealists. Besides, the latest Nintendo device officially supports Vulkan.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by drawkbox on Tuesday February 27, 2018 @07:29PM (#16479561)
Metal is great, so is Vulkan, so is OpenGL ES on mobile, but it does complicate a bit with portability where OpenGL wasn't as big of deal to port to many platforms, especially on mobile. Mobile has largely been an OpenGL ES only platform except now with Metal entering the game. When speaking of portability on mobile, it was all OpenGL ES versions. Yes consoles have always had their own frameworks to get the most out of their custom hardware and for lock-in exclusives to compete and advance their hardware as far as possible for the console lifeline, to sell as many games as possible as the hardware ages as game content is where they made profit.

The bummer about Apple is that they did help fund Khronos/OpenGL ES and subsequently WebGL from that stack that really revolutionized mobile/handheld gaming. They were big in helping open tech like that as well as canvas, html5, svg etc when the iPhone first came out. They killed Flash essentially and brought H.264 to take a big part of what Flash did, video. Part of how they won was using OpenGL ES and a decent rendering hardware device, it was an amazing thing to see in 2007 and changed handheld gaming big time.

Now Apple has Metal, their own rendering kit, that only works for macOS/iOS where OpenGL was easier to then port to iOS, Android, *nix, even use on Windows etc for desktop/mobile games especially. Apple used open rendering to allow easier porting to their platform, now they have flipped and have taken on a big part of rendering on their devices, a big software part that they hopefully will keep well maintained and up to compete.

But really today there are so many great engines that are middle tier in Unity and Unreal for instance that low level rendering frameworks aren't as big of deal to integrate as it is handled by these middle layer engines. Metal being so prevalent on iOS is only because Unity and Unreal support exporting with that as those two engines make up the largest part of mobile games.

There are four major rendering frameworks now with OpenGL, DirectX, Vulkan and Metal, including others like libGCM and flavors of OpenGL like ES/WebGL. This does complicate things for game engine developers, maintenance and portability with four market standards now. On mobile there are now a few instead of just OpenGL ES versions the dominant one since handheld gaming was taken over by Apple iOS/Google Android. Console game development is a different beast than mobile and desktop in terms of rendering frameworks used for many reasons, mainly that the hardware has to age longer and you need to get every bit of performance.

Most game studios now let the middle tier companies like Unity/Unreal/Cry/Source be their engine team now so it isn't as impactful, so studios can focus on game development, design and content. Back when you did have to write your own engine and rendering layer, it was nice to only have two essentially in DirectX and OpenGL on desktop, and OpenGL ES on the major mobile platforms, console development being the area where there are many frameworks and custom ones per hardware device. The slow progress before mobile and new frameworks was frustrating at times but primarily due to hardware progression, currently it is good to advance and get rendering kits competitive again.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by Ethcad on Tuesday February 27, 2018 @09:12PM (#16480113)
Agreed. It’s awesome that you can write a game once with Unity and not only have it run on all platforms, but have it run with the native, optimized rendering framework.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by DLudwig on Tuesday February 27, 2018 @04:07PM (#16477896)
It looks like the next version of LibSDL, 2.0.8, will support it to some degree, as of a commit from a few days ago: https://hg.libsdl.org/SDL/rev/d97ab6d12404

For reference, LibSDL recently added the ability to help initialize Vulkan, in a cross-platform manner. A bit of further info on this is available at https://discourse.libsdl.org/t/sdl-2-0-6-released/23109

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by DLudwig on Thursday March 01, 2018 @02:48PM (#16495497)
... and LibSDL 2.0.8 is now released (with the aforementioned Vulkan improvements)! Further details at https://discourse.libsdl.org/t/sdl-2-0-8-released/23957
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by BinaryIdiot on Tuesday February 27, 2018 @05:57PM (#16478871)
A little off topic but how is SDL nowadays? I used it for a quick and dirty game back in my college days (13-ish years ago?) and I really, really enjoyed using it. It was very approachable and I could build it on my Windows and Linux PCs.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by pjmlp on Wednesday February 28, 2018 @01:09AM (#16481051)
Basically the same, a nice API to do accelerated 2D rendering, audio, file and io access in a portable way.

The API changed a bit with 2.0 release, the biggest change was support for multiple rendering windows.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by codeflo on Tuesday February 27, 2018 @05:34PM (#16478674)
This is really great news. I wonder how this deal went down, businesswise. MoltenVK used to be a commercial offering by Brenwill Workshop. The way the press release[1] mentions how Khronos "worked" with Valve and Brenwill Workshop to "enable" this release makes it sound like there might have been money involved. If so, great for both Brenwill Workshop and the community.

1: https://www.khronos.org/news/press/vulkan-applications-enabl...

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by movedx on Tuesday February 27, 2018 @03:58PM (#16477810)
I have a Windows 10 based PC at home. I use it because I like to play games, but I'm also a YouTube creator and a programmer. In Australian dollars, the build cost me about $3,000. it's an i5 6600K, 16GB of 2333MHz RAM, a 256GB Samsung 950 Pro NVMe M.2 SSD, and an nVidia GTX 1070.

I would drop this system in a heart beat if I could play all my AAA games on macOS, and I would replace it with a high end iMac Pro. Sadly two problems remain:

- I can't play my AAA games on macOS because things like Vulkan aren't fully adopted and in place yet

- You can't swap out the GPU in the iMac Pro

This is why my next build is going to be a Hackintosh.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by zanny on Tuesday February 27, 2018 @04:04PM (#16477867)
Barely any AAA games support OSX anyway anymore. Both OSX and Linux are second class citizens for AAA publishers because all their studios drink the DX koolaid hard, even in an age where almost every game is made on Unreal / Unity / Cryengine / etc and all those engines are OS portable they still only see Windows releases.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by Impossible on Tuesday February 27, 2018 @04:46PM (#16478267)
Direct3D isn't the reason why OSX and Linux are second class citizens for AAA publishers. If those platforms had higher gaming market share publishers would do the work, but as it stands Steam is at 98.3% Windows users, 1.31% Mac users and 0.25% Linux users (http://store.steampowered.com/hwsurvey/). Linux has an extremely disproportionate amount of work involved for the user base, and Mac OS X is questionable for most titles. The Linux gaming audience is largely consists of tech people that aren't really gamers, but buy games to support Linux gaming, effectively for political reasons, this isn't a sustainable market (Humble Bundle helped indies briefly but the support has faded). Mac OS gaming is largely casual users that once again, aren't really gamers, and it has less to do with Mac's software stack (vulkan vs. metal vs. dx is irrelevant) and more with Mac hardware having underpowered GPUs for AAA games. PS4 and Switch don't support Direct3D, and plenty of big publishers port titles that make sense to mobile as well (neither major mobile platform supports Direct3D).
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by ryandrake on Tuesday February 27, 2018 @04:35PM (#16478169)
That’s never made much sense to me. I could see if you’re not using one of the major (portable) game engines—you might not want to spend the time developing Windows, Mac, and Linux ports. But if your underlying engine is already portable, would it kill you to hit build a few extra times to produce an “unsupported” Linux or Mac release?

Unless you’re deliberately using Windows specific stuff in you non-platform-specific areas like game logic. In which case facepalm.

EDIT: I know it’s not THAT simple but in general why not have a policy to be portable by default, platform dependent only when necessary?

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by zanny on Tuesday February 27, 2018 @05:27PM (#16478610)
The major cost barrier is support. If you are going to sell a product for a platform, you need to be able to have your CS staff handle support tickets involving it. Officially Steam on Linux only supports Ubuntu and SteamOS, so you can just throw out problems on other distros (albeit I'm not aware of any distro not taking responsibility for Steam breakages that work on Ubuntu and they aren't that common either).

Even then, having to implement that support infrastructure is time consuming if you have never supported that platform before. It is the first game that is the hardest. That is why publishers like Paradox and 2K can just throw almost every new release on Linux nowadays since they are all made on portable engines, are going to support OSX anyway, and they already have the support infrastructure for SteamOS and Ubuntu.

Its not even really an option, either. Since the games are commercial products in many (European) countries they have to by law support them in this way.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by banachtarski on Wednesday February 28, 2018 @02:30AM (#16481357)
It's the other way round. Apple has never cared about games. Look at how the app store is structured. They'd aspire to be the "artiste" platform (aka photo-editing, music-creating, DJ, video-editing workstation).
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by flukus on Wednesday February 28, 2018 @02:36AM (#16481380)
That might be left in their DNA from the 80's when competitors like amiga got stereotyped as games machines and lost the much more lucrative business market. Computers where still dismissed as toys by many people and the existence of games on your platform didn't help.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by logiclion on Tuesday February 27, 2018 @04:00PM (#16477835)
I've thought the same, have you considered the possible options of external graphics cards and bootcamping?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by movedx on Wednesday February 28, 2018 @02:11AM (#16481293)
I think external GPUs are an awesome idea. I've not looked into hem recently, actually. They would be awesome for making a 15" MBP from 2014 more useful going forward.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by logiclion on Wednesday February 28, 2018 @11:18AM (#16483960)
unfortunately to my knowledge they work only with thunderbolt 2+ (ideally 3), not quite sure about 2014 models and their ports.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by Synaesthesia on Tuesday February 27, 2018 @04:26PM (#16478093)
You should try installing Mac OS on your current system, it will probably work. I run it on my main system, although the only game I play on OS X is Starcraft 2, and it runs poorer than on Windows. Still I prefer the Mac environment.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by movedx on Wednesday February 28, 2018 @02:10AM (#16481291)
I haven't actually. Could it be compatible, you think? Did you just put macOS 10.* on a USB pen and go with it?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by Synaesthesia on Wednesday February 28, 2018 @02:47PM (#16486127)
Not quite you have to do some special things to it to hackintosh it. Check tonymacx86.com for details.

Yes I think there’s a good chance it’s compatible. Sorry for the slow response. Hope you get this.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by movedx on Thursday March 01, 2018 @09:24PM (#16498448)
Got it! Yeah I'm all over the resources you can find in the Hackintosh community. I might wait until I have my studio setup and can justify a new system build so I can build a Hackintosh then.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by MBCook on Tuesday February 27, 2018 @01:00PM (#16476063)
There’s a little bit at the end of the article saying Khronos is doing the same thing to put Vulkan on top of DX12.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by fooker on Tuesday February 27, 2018 @01:26PM (#16476345)
Shouldn't it be the other way around? Or does it nor matter?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by c2h5oh on Tuesday February 27, 2018 @01:40PM (#16476464)
My guess is that's for xbox - because that would be the only current platform without Vulkan support left.

DX over Vulkan for non-windows is being worked on too, just not by Khronos:

https://github.com/disks86/VK9

https://github.com/doitsujin/dxvk

and VKD3D for DX12 on Wine

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by cdmckay on Tuesday February 27, 2018 @03:10PM (#16477350)
It’s for Windows Store.

Windows supports Vulkan but to get onto the Windows Store you can only use DX12.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by zanny on Tuesday February 27, 2018 @04:07PM (#16477895)
Is anyone else miffed that the DX on VK projects all use different nomenclature? Its impossible to tell from the name dxvk or vkd3d what version it supports. If they were named VK9, VK11, AND VK12 respectively it would be obvious. Or any permutation of their names and that paradigm - VKDX9, VX9, etc.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by kvark on Tuesday February 27, 2018 @02:02PM (#16476709)
I'd say Khronos is doing an entirely different thing for DX12 since there is no existing library to open source :)
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by dralley on Tuesday February 27, 2018 @01:20PM (#16476300)
What is the use case for that? Running Vulkan within UWP apps?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by ovao on Tuesday February 27, 2018 @01:29PM (#16476371)
Yes, as explained in the article:

> While Windows, unlike macOS, does have Vulkan drivers from GPU companies, applications sold through the Microsoft Store are only permitted to use DirectX.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by braderhart on Tuesday February 27, 2018 @01:48PM (#16476546)
Simple solution = installing operating systems that support open standards.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by mort96 on Tuesday February 27, 2018 @02:50PM (#16477185)
People making games need to make those games for platforms people play on.

You as a user can move to Linux, and game developers should support Linux, but a game which can only be played on Linux and *BSD will be incredibly unsuccessful.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by braderhart on Tuesday March 06, 2018 @01:48AM (#16527320)
It's called Vulkan.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by sametmax on Wednesday February 28, 2018 @02:20AM (#16481321)
You're not a gamer, are you ?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by braderhart on Tuesday March 06, 2018 @01:53AM (#16527330)
Yes, I am well-versed. You can play many games in Linux and I have Steam installed on my Arch distro with latest stable kernel and graphics drivers, and they are all automatically updated using my package manager and aurutils for extended third-party. It is so much faster than PowerShell, and my i3 windows manager is much more efficient.

I just got new laptops that will support both GVT-G and PCI passthrough via OVMF so that I can run my bloatware OS in a KVM VM but still get full 3D acceleration. Hopefully Microsoft decides to contribute heavily back to Wine, or maybe open source their 4GB spyware beast to understand what it is actually doing that makes it so large compared to my distro, which does everything Windows does in much less resources both storage and compute.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by cosarara97 on Wednesday February 28, 2018 @12:12PM (#16484580)
Gamers use steam, not the windows store.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by kvark on Tuesday February 27, 2018 @01:53PM (#16476620)
Windows 10S, future Windows Polaris, and XBox One don't allow for native Vulkan/GL drivers.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by moolcool on Tuesday February 27, 2018 @01:27PM (#16476359)
Porting Vulkan applications to the Xbox One maybe?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by haxiomic on Tuesday February 27, 2018 @01:48PM (#16476543)
Can anyone who has experience with MoltenVK discuss any potential pitfalls? (It's existed in a closed-source form for 2 years). Is it a case of loading the library and forgetting it, or will you likely need some MoltenVK-specific codepaths to use it?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by kvark on Tuesday February 27, 2018 @01:59PM (#16476676)
Vulkan Portability subset is excluding the following features (at the moment!) from core Vulkan:

  - triangle fans
  - separate stencil reference values
  - events
There are also extra limitations to things like the maximum buffer size, which are exposed via Molten-specific API.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by efnx on Tuesday February 27, 2018 @12:42PM (#16475830)
This is great news! Anyone have a recommended Vulkan intro?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by fulafel on Tuesday February 27, 2018 @12:47PM (#16475895)
Here's a 1192 line example that draws a colored triangle: https://github.com/SaschaWillems/Vulkan/blob/master/examples...
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by ramy_d on Tuesday February 27, 2018 @01:42PM (#16476497)
This is actually really well commented and instructional
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by thealfreds on Tuesday February 27, 2018 @12:53PM (#16475973)
> Contrary to the other examples, this one won't make use of helper functions or initializers

Wondering what the code would look like with the helpers. Is this a bit of a "recoding of the wheel" example/exercise by Sascha?

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by dogma1138 on Tuesday February 27, 2018 @01:49PM (#16476555)
Helpers and initializers aren’t necessarily platform agnostic in Vulkan same goes for non-mandatory / base extensions.

Say what you want about D3D at least it follows a strict take or leave it regime.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by fulafel on Wednesday February 28, 2018 @12:29AM (#16480894)
Yep. It almost seems like Vulkan is designed to be used through a library or framework of helper functions ;)
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by TomK32 on Tuesday February 27, 2018 @01:50PM (#16476576)
Probably 20 lines.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by fstephany on Tuesday February 27, 2018 @01:06PM (#16476116)
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by evolve2k on Tuesday February 27, 2018 @03:20PM (#16477462)
Silly question. Would installing this likely have any affect on Media Design tools like Adobe After Effects, Adobe Premier or Cinema 4D?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by teilo on Tuesday February 27, 2018 @03:28PM (#16477547)
No. This would be included in the app itself, and would no more interfere with Metal than one Metal app would interfere with another.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by twtw on Tuesday February 27, 2018 @02:18PM (#16476870)
This is great. I've seen MoltenVK before, but did have any reason to justify getting it.

I am a really big fan of Vulkan. While it takes a bit more work to get going and does less for you, I find the increased transparency very valuable and more enjoyable than trying to guess what the driver is doing.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by jheriko on Tuesday February 27, 2018 @07:33PM (#16479588)
Graphics programming is so painful because of these anachronisms :(

the Apple gles implementation is buggy as hell. produces gpu crashes from compliant code etc... I have low expectations. they have made a new annoyance in our lives ... nothing more

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by chris_wot on Tuesday February 27, 2018 @06:49PM (#16479305)
I suspect this is going to help LibreOffice, as we extensively use OpenGL now:

https://wiki.documentfoundation.org/OpenGL

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by emh68 on Tuesday February 27, 2018 @05:25PM (#16478597)
It’ll be interesting to see if this helps the lack of games on Mac in the long run.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by Ericson2314 on Tuesday February 27, 2018 @09:19PM (#16480152)
This is the best way to fight back against the rent seekers. Good luck!!