News for hackers. Stuff that matters.
Re:Vulkan1.3 on the M1 in 1 Month by ttoinou on Wednesday June 05, 2024 @07:04PM (#40591659)
Interesting point of view that could also be the other way around, Vulkan support being a hidden tax for the love of open source and free software rather than something really useful the market needed on top of others APIs / GPU architectures / platforms, pushed by a subset / minority of developers more ideological than practical grounded developers who accept that competition of private standards will bring out the best user experience, each platform having its customized architecture.

After all, scientists don’t write much CUDA oriented for game development anymore or custom maths shaders, they have their own CUDA libraries helping them in their own domains better than what a gamedev orienter Vulkan would do. Any percent shaved off developer time and running time is worth a lot of money.

The Apple Metal platform surely is customized to the needs of Apple, its devices and its users ultimate needs, in a way Vulkan will never be. Unified memory on recent Apple silicon M1 M2 M3 where RAM and VRAM are somehow merged.

Maybe the society of worldwide developers had better things to do than spend precious time on Vulkan.

Re:Vulkan1.3 on the M1 in 1 Month by talldayo on Wednesday June 05, 2024 @07:49PM (#40591940)
It feels unlikely. Much smaller companies (Broadcom, Qualcomm) have no trouble writing compliant Vulkan drivers (let alone singular people), so I find it hard to give Apple the pass here. Assuming good faith on their part, Vulkan should be available; or at least some kind of cross-platform API target. Otherwise people are just going to ignore Mac and keep focusing on DirectX, like the status quo.

Vulkan is everyone's ticket out of that mess. Not only does it provide Apple an industry-standard API for third-parties to develop on, it flips the DirectX problem on it's head. Because you support Vulkan 1.3 you get DXVK support alongside DX9, DX11 and DX12 support. Now it doesn't matter what third parties do, because you win every time; Steam Deck politics.

The status-quo is simply detracting from the value of using MacOS; the only feasible explanation is that Apple is hoping to somehow force developers into using Metal natively. Outside Tomb Raider and Resident Evil, I just don't see it happening.

> The Apple Metal platform surely is customized to the needs of Apple

That clearly doesn't stop anyone from writing Vulkan drivers for the hardware, though. OP appears to be blatant evidence of this.

For example; CUDA is well-customized to Nvidia's specific hardware, but their hardware also supports Vulkan drivers. Same goes for Intel with oneAPI AMD's ROCm; all of them still support Vulkan. Apple is quite literally one of the only mainstream manufacturers that does not support it.

Re:Vulkan1.3 on the M1 in 1 Month by ttoinou on Wednesday June 05, 2024 @08:00PM (#40591994)
Your example of taking games that dare go the full Metal route makes me wonder : to which projects was adding 100% native Vulkan compatibility / support worth the resources spent on this and not something else ? What’s the full Vulkan platform having a dedicated OS running solely Vulkan with a Vulkan based GPU and for which real life uses ?
Re:Vulkan1.3 on the M1 in 1 Month by talldayo on Wednesday June 05, 2024 @08:27PM (#40592155)
> What’s the full Vulkan platform having a dedicated OS running solely Vulkan with a Vulkan based GPU and for which real life uses ?

Steam Deck handles it just fine, alongside OpenGL. You use Vulkan to run DirectX games, OpenGL to accelerate the desktop and browser (can soon be replaced with Vulkan too) and fall back to OpenGL for everything else. I'm not aware of any desktop stuff the Steam Deck can't do; it edits video, it runs Blender, it can browse the web and compile apps.

Granted, Vulkan of course isn't a panacea here. But without it, stuff like the Steam Deck simply wouldn't exist. Vulkan is valuable because it provides a preservation layer for Windows software that Apple is unwilling to support themselves.

Re:Vulkan1.3 on the M1 in 1 Month by pcwalton on Wednesday June 05, 2024 @09:35PM (#40592528)
> the only feasible explanation is that Apple is hoping to somehow force developers into using Metal natively

I'm told the problem is some legal spat between Apple and Khronos that has led to a "no Khronos standards anywhere at Apple" policy. I don't know the details beyond that.

Re:Vulkan1.3 on the M1 in 1 Month by talldayo on Thursday June 06, 2024 @12:28AM (#40593498)
Sigh, sadly that sounds in-character. Pour one out for the users that didn't get their feature because a C-suite needed to make a point with their temper-tantrum.
Re:Vulkan1.3 on the M1 in 1 Month by inDigiNeous on Thursday June 06, 2024 @01:27AM (#40593826)
Metal allows Apple to squeeze that extra performance out of their devices. They have full control over, and can implement whatever they need to deliver Apple Vision Pro for example.

With Vulkan, they would have to wait for a committee to approve required changes, and still they could not probably optimize it to match their GPU an CPU hardware profiles in such an efficient way.

And not least at all, to optimize the developer experience and tools. Apple GPU debugging tools are probably the best tools you get for graphics development debugging, and you get that only on macOS.

IMO Metal is a nicer API than Vulkan. At the same time, you can ask, why should Microsoft get to keep DirectX, and not just write a Vulkan driver ?

Re:Vulkan1.3 on the M1 in 1 Month by DeathArrow on Thursday June 06, 2024 @02:32AM (#40594213)
>Metal allows Apple to squeeze that extra performance out of their devices. They have full control over, and can implement whatever they need to deliver Apple Vision Pro for example.

That doesn't stop them from implementing both Metal and Vulkan.

Re:Vulkan1.3 on the M1 in 1 Month by inDigiNeous on Thursday June 06, 2024 @03:02AM (#40594388)
Sure, but a lot of extra work for something like that. Also, Apple Walled Garden..
Re:Vulkan1.3 on the M1 in 1 Month by IsTom on Thursday June 06, 2024 @06:34AM (#40595795)
> they would have to wait for a committee to approve required changes

Or just make proprietary extensions?

Re:Vulkan1.3 on the M1 in 1 Month by talldayo on Thursday June 06, 2024 @12:46PM (#40599563)
> why should Microsoft get to keep DirectX, and not just write a Vulkan driver ?

They support both. And sometimes the Vulkan driver is faster than their native DirectX one too.

Re:Vulkan1.3 on the M1 in 1 Month by pjmlp on Thursday June 06, 2024 @03:28AM (#40594537)
Like in the OpenGL days, Vulkan keeps playing catch up with the games consoles, and DirectX APIs, and it is already a extension mess just like OpenGL, an achievment in a quarter of OpenGL's lifetime.
Re:Vulkan1.3 on the M1 in 1 Month by _carbyau_ on Wednesday June 05, 2024 @07:43PM (#40591908)
Coverage. Metal only covers Apple. Vulkan covers so much more.

But money talks and game engines want a slice of that sweet apple pie.

Re:Vulkan1.3 on the M1 in 1 Month by dev_tty01 on Wednesday June 05, 2024 @08:34PM (#40592197)
> Metal only covers Apple. Vulkan covers so much more.

I'm not sure "more" is the right term here. There are about 1.3 billion iPhone users worldwide. Sure, Vulkan covers more OS environments, but how important is that to a game developer vs. total available users? Does Vulkan user reach exceed 1.3 billion?

Re:Vulkan1.3 on the M1 in 1 Month by _carbyau_ on Wednesday June 05, 2024 @11:40PM (#40593192)
OS coverage vs pure numbers is something for the game developer to be worried about, and by extension the game engine devs.

You want to get into the iOS gaming market, go Metal. By definition you've expressed you don't care about the other OS's.

You want to make a AAA game, you probably don't go Metal if you want enough market coverage to recoup your costs - though I will be delighted to be proven wrong when a AAA iPhone game comes.

If Apple want to change their "AAA game" attractiveness they need to address this. It's not that hard - the article took a month but even a year is fine. Apple just needs to get it done, but it doesn't seem like they care to make User<->GameDev relationship easy. Either the gamedev needs a whole other version of their game on Metal. Or the users have to do a lot of homework and fiddling to get a modern AAA game to run.

Re:Vulkan1.3 on the M1 in 1 Month by pjmlp on Thursday June 06, 2024 @03:31AM (#40594561)
AAA don't care about Vulkan, they care about Apple, Sony, Nintendo and Microsoft proprietary APIs.
Re:Vulkan1.3 on the M1 in 1 Month by SleepyMyroslav on Thursday June 06, 2024 @03:55AM (#40594744)
minor nitpick: did care when Google Stadia was in the list. But it did not worked out and everyone took a big L on that and now Vulkan support has been mostly purged already.
Re:Vulkan1.3 on the M1 in 1 Month by pjmlp on Thursday June 06, 2024 @05:01AM (#40595147)
The reason why Stadia is no more, is exactly because they don't care.

Google was starting to offer a DirectX porting kit on the same year they decided to ramp down Stadia, there is even a GDC talk on it.

Re:Vulkan1.3 on the M1 in 1 Month by SleepyMyroslav on Friday June 07, 2024 @03:30AM (#40606173)
My opinion on the facts I saw don't agree with your interpretation. No one here on HN cares about it =) so I just drop it.

My hot take is that when AAA games will be shipped on mac os they will not use porting kit in runtime and just call Metal. Imho API court battles are fun to watch from afar.

Re:Vulkan1.3 on the M1 in 1 Month by troupo on Thursday June 06, 2024 @09:05AM (#40596912)
> You want to make a AAA game, you probably don't go Metal if you want enough market coverage to recoup your costs

Likewise you don't care about Vulkan. You care about DirectX and whatever Playstation has

Re:Vulkan1.3 on the M1 in 1 Month by talldayo on Thursday June 06, 2024 @12:10PM (#40599126)
> You care about DirectX

...exactly. Which is why, unless you're given a license to re-impliment DirectX, it makes so much more sense to use Vulkan and it's DX9 through DX12 translation layer.

What am I missing here?

Re:Vulkan1.3 on the M1 in 1 Month by troupo on Thursday June 06, 2024 @04:24PM (#40601950)
You're missing that people don't care about Vulkan at all: https://carette.xyz/posts/state_of_vulkan_2024/

And the translation layer exists largely due to Valve business decisions, not because "community came together or something". This glorious amazing support didn't even really exist until 2018 (when it was launched with official support of 27 games)

1. Apple has never truly cared about gaming on the Mac

2. iOS only supports Metal, and Metal serves Apple extremely well

3. Apple's dropping of 32-bit apps and switching to M* chips has hurt gaming on Macs much more than any perceived harm from not supporting Vulkan.

Re:Vulkan1.3 on the M1 in 1 Month by nemomarx on Wednesday June 05, 2024 @08:55PM (#40592310)
How many iphone users will pay 60 dollars for a game, like you can try and achieve on Steam or Switch? I feel like the iOS game market is pretty different.
Re:Vulkan1.3 on the M1 in 1 Month by jppittma on Wednesday June 05, 2024 @09:30PM (#40592508)
More money is spent/made made on iOS gaming than on traditional PC gaming, even if the $60 up front model isn't something iOS users are willing to accept. I almost think they're right to tolerate mtx models btw. At least if games are f2p, companies aren't releasing them broken/unfinished.
Re:Vulkan1.3 on the M1 in 1 Month by mycocola on Thursday June 06, 2024 @02:13AM (#40594077)
Can't release unfinished/broken games, when what they're releasing are not games at all.
Re:Vulkan1.3 on the M1 in 1 Month by atq2119 on Thursday June 06, 2024 @02:09AM (#40594050)
Surely there are more Android users than iPhone users worldwide, and if you target Android you target Vulkan.
Re:Vulkan1.3 on the M1 in 1 Month by pjmlp on Thursday June 06, 2024 @03:30AM (#40594555)
Only if we don't care about those using devices where OpenGL ES is still more stable, with less buggy drivers.

If you only care about latest Android versions, and Samsung and Google phones, sure go Vulkan.

Re:Vulkan1.3 on the M1 in 1 Month by talldayo on Thursday June 06, 2024 @12:11PM (#40599140)
My brother in Christ, OpenGL ES is officially depreciated on all Apple platforms. It is not "more stable, with less buggy drivers", I've used it.
Re:Vulkan1.3 on the M1 in 1 Month by pjmlp on Thursday June 06, 2024 @02:16PM (#40600626)
I thought we are talking about Android, and which APIs makes business sense, when AAA actually want to get paid, instead of having to pay back store returns.
Re:Vulkan1.3 on the M1 in 1 Month by talldayo on Thursday June 06, 2024 @03:47PM (#40601578)
I thought we were talking about capable APIs for creating enjoyable experiences, not barebones rendering frameworks for building flashier online casinos. My mistake.
Re:Vulkan1.3 on the M1 in 1 Month by pjmlp on Friday June 07, 2024 @09:57AM (#40608760)
Depends if those enjoyable experiences pay the mortgages of the developers.
Re:Vulkan1.3 on the M1 in 1 Month by pcwalton on Wednesday June 05, 2024 @09:33PM (#40592523)
You're confusing device-specific APIs with OS-specific APIs. There's a big difference. DX11, DX12, Metal, etc. are themselves all abstraction layers over what are in some cases very different hardware designs. (This will eventually become less so with Apple moving to in-house GPUs, but for now it's still true--Metal targets NVIDIA and AMD GPUs as well as Apple's M1/M2s.)

Maybe it'd be interesting to contemplate a world in which red team, green team, and blue team all have their own proprietary APIs and there are no cross-vendor abstractions, but that's not what we're discussing here.

Re:Vulkan1.3 on the M1 in 1 Month by DeathArrow on Thursday June 06, 2024 @02:28AM (#40594189)
>The Apple Metal platform surely is customized to the needs of Apple, its devices and its users ultimate needs, in a way Vulkan will never be.

Maybe Metal is customized to Apple's needs but how is it customized to Apple user's needs? One thing is for sure, had Apple been using Vulkan, the porting process to macOS would have been much easier.

Re:Vulkan1.3 on the M1 in 1 Month by flohofwoe on Thursday June 06, 2024 @02:50AM (#40594319)
> the porting process to macOS would have been much easier

Porting the 3D renderer to another 3D API isn't the hard part of a game port, but also:

Apple is offering a D3D12 porting toolkit since a little while which TBH makes a lot more sense than native Vulkan support (since there are so many more D3D12 games than Vulkan games):

https://developer.apple.com/games/

Re:Vulkan1.3 on the M1 in 1 Month by talldayo on Thursday June 06, 2024 @12:44PM (#40599544)
> Apple is offering a D3D12 porting toolkit since a little while which TBH makes a lot more sense than native Vulkan support

It would make more sense... if GPTK behaved like DXVK.

But instead, you're not allowed to distribute games with it, you can't easily modify it, and Apple themselves doesn't commit to supporting or updating it. Unlike Proton, which is community maintained, GPTK is Apple-maintained. If something breaks, your best option for "fixing" it is to run upstream DXVK on a properly supported machine.

Re:Vulkan1.3 on the M1 in 1 Month by johnnyanmac on Thursday June 06, 2024 @05:55AM (#40595559)
> more ideological than practical grounded developers who accept that competition of private standards will bring out the best user experience, each platform having its customized architecture.

There's no clean answer here. You push that mentality of "Customers first" too hard, and you get the PS3; an unwieldy architecture that devs are forced to support but end up with worse ports than the Xbox 360. The customer doesn't necessarily "win" here.

You push developers first too hard and you get Linux. You can do anything you want if you dig deep enough. But as we all know, the common consumer barely reads the tutorial, let alone learns how to configure complex settings in a CLI.

There needs to be some middle ground, and not making developers duplicate their work for every new private business is at least a starting point.

>Maybe the society of worldwide developers had better things to do than spend precious time on Vulkan.

Given MacOS's marketshare, I'm sure they did. Let's not pretend that the few metal games we have on Desktop wasn't built on the grounds of some Candy Crush clone that generated billions of dollars 10 years ago and justified the forced upgrade (we can definitely justify from there if "making candy crush run faster" is a better thing to do. But it pays the bills, I guess).

Very few devs want to support Mac and the numbers speak for themselves.

Re:Vulkan1.3 on the M1 in 1 Month by ttoinou on Thursday June 06, 2024 @08:45AM (#40596736)

   not making developers duplicate their work for every new private business is at least a starting point.
Im sure we all understand the benefits of a unified API / same abstraction layer. It’s about how the abstraction is leaking in real life and how to squeeze every last percent of developer’s experience and final application speed