News for hackers. Stuff that matters.
Re:VK9: Direct3D 9 compatibility layer using Vulkan by shmerl on Sunday April 23, 2017 @09:30PM (#14181395)
That's smart. Those who don't think about it in advance, are bitten by this later. Read the article above.

Metal is Apple's lame attempt to tax cross platform graphics developers. That's exactly what is emphasized there.

Re:VK9: Direct3D 9 compatibility layer using Vulkan by cwyers on Sunday April 23, 2017 @09:46PM (#14181432)
The article you linked to is advice from people who port games to Linux on how to make games more portable. It's not advice on how to ship them on time, how to make them performant, how to minimize the amount of developer labor required to build them. Given what a small share of the market Linux is for games, developers have other priorities than what makes games easy to port to Linux. And it's not a chicken-and-egg problem; the Linux market for games isn't much smaller than the Linux market for any other commercial software.
Re:VK9: Direct3D 9 compatibility layer using Vulkan by shmerl on Sunday April 23, 2017 @09:52PM (#14181446)
Performance is orthogonal issue to portability. You can make it portable, and perform well too (using something like Vulkan and proper engine design).

Linux gaming market is growing. Not sure about other commercial software in this context, but I'd guess it can indirectly be affected too, since bigger gaming market makes Linux desktop usage grow in general.

Re:VK9: Direct3D 9 compatibility layer using Vulkan by klodolph on Sunday April 23, 2017 @10:01PM (#14181476)
So, "Here, use a different API with worse developer support, and in return you get access to a market that's ~1-2% the size of the Windows gaming market?"

I mean, I'm all for OpenGL. I use OpenGL. Hell, I develop OpenGL games on Linux and then port them to Windows afterwards (released ~10 made that way so far). But the choice to use it depends on what market you're going after.

Re:VK9: Direct3D 9 compatibility layer using Vulkan by Qwertious on Monday April 24, 2017 @07:55AM (#14183493)
Vulkan has better performance than DX11, and it has literally twice the audience of DX12 - DX12 only supports Windows 10, so any W7/W8/etc users are SOL unless you use DX11 or Vulkan.
Re:VK9: Direct3D 9 compatibility layer using Vulkan by pjmlp on Monday April 24, 2017 @08:02AM (#14183530)
Re:VK9: Direct3D 9 compatibility layer using Vulkan by shmerl on Monday April 24, 2017 @09:19AM (#14184040)
This is irrelevant. With all major engines gaining Vulkan support this list will baloon fast.
Re:VK9: Direct3D 9 compatibility layer using Vulkan by pjmlp on Monday April 24, 2017 @09:51AM (#14184279)
A good gaming engine supports multiple graphics APIs, making specific ones irrelevant.
Re:VK9: Direct3D 9 compatibility layer using Vulkan by shmerl on Monday April 24, 2017 @01:52PM (#14186381)
My point was, adoption in engines is relatively slow, but once it happens, things become easier. So current usage lists aren't a reflection of general progress. Unity for example gained Vulkan support in the latest version which came out recently, and Unreal is still not there (but already close). Same goes for Lumberyard.

Of course the tax on development imposed by lock-in freaks translates into that slowness. I.e. as you said, need for engines to support many balkanized APIs means slower releases to the market.

Re:VK9: Direct3D 9 compatibility layer using Vulkan by shmerl on Sunday April 23, 2017 @10:02PM (#14181480)
Isn't it what MS is saying for DX12? Except Vulkan is not locked into MS only stuff.
Re:VK9: Direct3D 9 compatibility layer using Vulkan by klodolph on Sunday April 23, 2017 @10:20PM (#14181526)
The cost of porting between DX12 and Vulkan is not so high, not anything like the cost of porting between OpenGL and DX11.
Re:VK9: Direct3D 9 compatibility layer using Vulkan by cwyers on Monday April 24, 2017 @01:51AM (#14182196)
In the abstract, performance may be unrelated to portability. But if tooling, drivers and expertise are all focused on DirectX, and if getting OpenGL to do everything DirectX can do requires using vendor-specific additions to the spec that are non-portable, then in practice, it may be harder to make OpenGL performant across multiple vendor's GPUs.
Re:VK9: Direct3D 9 compatibility layer using Vulkan by douche on Sunday April 23, 2017 @11:11PM (#14181689)
Seriously, anyone who cares about cross-platform compatibility is already using Unity or Unreal.
Re:VK9: Direct3D 9 compatibility layer using Vulkan by shmerl on Sunday April 23, 2017 @11:49PM (#14181851)
Not everyone, but probably quite many.
Re:VK9: Direct3D 9 compatibility layer using Vulkan by klodolph on Sunday April 23, 2017 @09:56PM (#14181455)
I'm going to agree with cwyers here. The choice of which graphics API to use is not automatic, and "just use OpenGL, dummy!" just glosses over the fact that different developers have different priorities.

OpenGL gets you desktop and mobile all in one fell swoop (well, with a lot of tinkering and hard work). If that's your market, sure, go ahead. If you're writing a higher-end game targeting consoles and PC, then you'll end up doing a lot of extra work porting your engine to consoles and in return have access to a much larger market. Those consoles don't really support OpenGL, at least not as a first-class citizen, but one of them does support Direct3D. Direct3D also has excellent developer support.

Given the good support, good tool integration, and the fact that Direct3D runs on, say, two of your three most important platforms, it's a good choice.

Re:VK9: Direct3D 9 compatibility layer using Vulkan by shmerl on Sunday April 23, 2017 @10:04PM (#14181486)
> Those consoles don't really support OpenGL, at least not as a first-class citizen

Switch supports it now as first class citizen, and Vulkan as well. Nintendo were first to straighten this up. MS and Sony are still in the dark ages.

Re:VK9: Direct3D 9 compatibility layer using Vulkan by klodolph on Sunday April 23, 2017 @10:16PM (#14181516)
That rhetoric about "the dark ages" is doing nobody any favors, it almost makes it sounds like Sony uses tabs in their source code or something even worse. Is this some kind of holy war, OpenGL versus the forces of darkness?

To clarify, yes, I was talking about PS4 and Xbox One. Those two systems, plus Windows, are the primary market for most AAA games. Just do a search for "2017 video games" and you'll see a big chunk of games that only run on those three systems. OpenGL isn't a very compelling choice there.

Re:VK9: Direct3D 9 compatibility layer using Vulkan by shmerl on Sunday April 23, 2017 @10:19PM (#14181523)
> That rhetoric about "the dark ages" is doing nobody any favors

I'm calling it what it is. Their refusal to support Vulkan shows they intend to remain in the dark ages, and continue forcing developers to operate with balkanized non portable APIs. It's like some browser maker would refuse to support HTML and would require you to use ActiveX, Flash or whatever.

Re:VK9: Direct3D 9 compatibility layer using Vulkan by klodolph on Sunday April 23, 2017 @10:38PM (#14181578)
"I'm calling it what it is," is a poor excuse for poor rhetoric. Balkanized APIs are a historical fact. Khronos wasn't exactly quick to support modern hardware in the 2000s, everyone paid the price for it, Microsoft picked up the slack, and here we are with developers entrenched in the Direct3D ecosystem. Vulkan arrived about a year ago and that's not exactly a lot of time to sweep away all the inferior APIs before it. These things take time. The engine developers are figuring out how to use Vulkan, and Vulkan support is spreading. It's going to take more than a couple years.

Meanwhile, Microsoft is managing their profitable Windows business by supporting key app developers, including game studios, who are already happily using Direct3D. Are they going to axe it and piss off a valuable segment of developers? No.

The analogy with Flash is a pretty good one. Flash was used everywhere on the web for years and years. Then the iPhone sucked all the oxygen out of the room and Flash died.

Just like everyone switched from Flash to JavaScript so they could get their websites to run on the iPhone, maybe everyone will switch from Direct3D to Vulkan for the same reason. Flash took a long time to die. After Apple announced the iPhone would not support flash, it was five years later that YouTube stopped using it for video. And yes, there were a lot of good reasons to require Flash in the meantime, until the open web caught up.

Re:VK9: Direct3D 9 compatibility layer using Vulkan by shmerl on Sunday April 23, 2017 @11:53PM (#14181865)
> Balkanized APIs are a historical fact.

Dark ages were long and historic too, which doesn't mean they didn't have a lot of problems :) So I find it a proper comparison. Those who insist on keeping things balkanized today (MS, Sony and Co), are slowing down the progress.

> maybe everyone will switch from Direct3D to Vulkan for the same reason.

I definitely hope so. Current messed up state shouldn't exist forever.

Re:VK9: Direct3D 9 compatibility layer using Vulkan by douche on Sunday April 23, 2017 @11:16PM (#14181706)
So a brand-new console from a company that has an abysmal record at working with third-party developers?

I kind of wish consoles would just go away, so we could focus on PCs.

Re:VK9: Direct3D 9 compatibility layer using Vulkan by pjmlp on Monday April 24, 2017 @07:29AM (#14183395)
Actually as second class citizens to help porting titles to it.

Switch first class citizen is called NVN.

https://blogs.nvidia.com/blog/2016/10/20/nintendo-switch

Also, MonoGame, Unreal and Unity are official supported middleware.