903 points · by ekianjo · 10y ago · 201 comments
https://twitter.com/renderpipeline/status/699346348651507713
There is no reason why any given app developer would want to talk to Vulkan directly. It's basically only suitable for a subset of engine developers and low level API programmers.
I also heard some people who were under NDA might have some disappointing things to report about the Vulkan decision process now that it's out. But the question is whether it matters at all whether it's a good API or not, given my impression that it's apparently not intended for interfacing to humans but to higher layer APIs.
It's quite a bit more positive about vulcan.
If OpenGL as of 4.5 were implemented perfectly on all hardware on all systems, we would never need Vulkan because everyone could just AZDO for optimization. Since we don't live in that fantasy world where pigs fly and Nvidia releases freedom respecting drivers, Vulkan takes responsibility away from hardware vendors who demonstrably cannot handle the work and puts the burden on the developer, who... probably also cannot handle the work, but thats a per-application problem rather than a fundamental API problem.
And I'm currently working on my Msc. in computational science (and possibly a PhD. afterwards) so I'm also going to see how easy it is to shoehorn generic-HPC into this API. OpenCL is nice (well... maybe not nice but workable) but historically the graphics APIs have had better performance for less work. But I guess you could count me as a low level API programmer come to think of it.
And of course, a newer version does not neccesarilly mean that the out-of-date implementations will suddenly become "in-date": if anything they're even more out of date now ;)
http://steamcommunity.com/app/257510/discussions/0/412447331...
TLDR: optimism for the future but right now performance is actually noticeably worse than their DirectX 11 rendering backend.
--------
A: Ok, first, in GPU-bound scenarios (ultra settings, resolution higher than full HD), you'll see lower performance, 20 to 30% lower. This is work in progress, and we (both Croteam and IHVs) are analyzing and optimizing the performance. We'll get to the bottom of this!
Q: And CPU-bound scenarios?
A: Same or a bit faster. But for now, those scenarios really have to be super-CPU-bound. Like, rendering whole levels, without any help from visibility system, frustum, distance or occlusion culling.
Let me put it this way: When The Talos Principle came out, it had a very similar frame rate in DirectX 9 vs DX 11. But then we optimized the game, and the drivers were optimized in the meantime, and now D3D11 is 20-30% faster than D3D9! I have a firm belief that this will also happen to Vulkan vs D3D11, over time However, for now you can actually expect lower frame-rate compared to D3D11. C'mon, it's brand new API, give it some time. :)
[1] https://steamcommunity.com/app/257510/discussions/0/61282346...
Note this however:
> “Vulkan takes cross-platform performance and control to the next level,” said Bill Hollings of The Brenwill Workshop. “We are excited to be working through Khronos, the forum for open industry standards, to bring Vulkan to iOS and OS X.[1]”
Of course Apple had to remain the jerks they are and not support Vulkan natively, forcing developers to write translation layers[2]...
[1] https://www.khronos.org/news/press/khronos-releases-vulkan-1...
Thats a rather immature view of the technology world that smacks of the tired old tribal warfare notions that only internet forums believe in.
Apple had a technical problem of slow, bloated and battery-draining OpenGL API and they solved it using Metal more than 18 months ago, when no other viable alternative was on the horizon. Are they jerks because they didn't saddle their users with a technically inferior solution for even longer?
Khronos has let OpenGL evolve into a byzantine beast of an API with GPU vendors effectively segmenting it into multiple complicated variants of best practices (like AZDO and others). Vulkan was announced more than two years ago, but unless you were in a select inner circle of developers, there was no actionable information available, until today.
In the meantime, major commercial engines already have official support for Metal (or Unity will have it soon). Popular games like World of Warcraft already have betas using Metal. I can download free IDE, documentation, sample profiling and debugging tools for developing Metal applications.
Sad truth is that Kronos and the Vulkan group took too long to evolve OpenGL and to give developers any actionable specifications for Vulkan.
Em no, they are jerks because they never updated OpenGL implementation on OS X (which still is generally 30% or so slower than Windows implementation on same hardware, not to mention lacking of full 4.2, 4.3, 4.4 and 4.5 OpenGL support) then implementing a new proprietary API on the desktop with huge fanfare and marketing about being "30%-50% faster" (or in other words - as fast as OpenGL is on Windows). Meanwhile, OpenGL implementation is still rotten as of 2016 at 2010 OpenGL 4.1 levels with no update.
Leaving an open implementation of a 3D standard to rot in performance limbo and then bringing in a new proprietary standard which has to be used to get competitive performance does bring the word "jerks" to mind.
And you think lock-in is a mature approach to technology? It is not. And lock-in is the only reason why Apple pushed Metal instead of joining the Vulkan effort. Unless you are trying to claim that they just couldn't plan things and ended up with their own NIH despite Vulkan emerging in the background. But that doesn't fly, since they could have corrected it when they realized where things are moving. So "no ill intent" reasoning here doesn't sound convincing.
If we're lucky, it won't be as successful; decades of graphic stack fragmentation hasn't been pleasant to live through, both as a developer and a gamer.
GPU vendors don't care much about API support tooling, as long as their hardware gets sold.
We write programs that use DirectX,Metal, OpenGL/OpenCL, and now Vulkan and I disagree.
We believe competition is great. OpenGL/CL was in theory a standard but over the years we had to funnel way more resources to make that work than with DirectX or Metal combined. Why? Because of the "design by committee" mentality of OpenGL/CL.
The only reason they had to react with Vulkan was competition from private companies and even then the reaction was slow and painful for those that were forced to support the bloat software for years.
We could do the same thing in OpenGL/CL with 5 different ways,one modern way and 4 obsolete but not pruned from the standard because some company of the committee that had obsolete legacy code banned the removal.
This made the codebase so big and hard to maintain, and expensive for developers to support.
If Microsoft and Apple runs circles around those people, they are forced to act and develop a better standard.
For us it is easier to develop translation layers that support OpenGL/CL messiness.
Competition is great, sure. But Apple are anti-competition here. Competition would mean choosing between using Vulkan or Metal on their system. Where is that choice (wrapper is a workaround, but besides)?
All those lock-in proponents are actually scared of competition. So we are not in disagreement. Competition is indeed good. Lock-in however is not, and lock-in is anti-competition.
> The only reason they had to react with Vulkan was competition from private companies
It's the other way around. The only reason MS and Apple suddenly woke up is because AMD was planning to open up Mantle (which resulted in Vulkan). Except they reacted in their usual manner. Instead of helping the shared effort they pushed for more lock-in.
I am more worried about Microsoft though, with Windows and Xbox they force millions of people to use DirectX.
Yeah, we agreed on that . It took millions for our company to support OpenGL/CL only because we did not want to make our code dependent on just one provider. It was tough to justify that decision (financially). Decision that only started to pay back with Android popularity.
Not every decision has to be filled with malice, sometimes it just makes sense.
No matter what feedback from developer were, those people didn't care. But Microsoft did and forced the guys to react much later.
The same thing happened with so many things to mention here, like asserting the same quality on different machines that save millions to companies in debugging time and money.
The question is why Apple can't support Vulkan, or rather why wouldn't they. The answer is quite obvious - they like lock-in.
> If the Flowchart is true
Flowchart is not true, because using OpenGL is not a good proposition going forward. Some will develop more tools and higher level frameworks to make using Vulkan easier. But jerks like Apple, MS and others will put roadblocks for developers preventing them from using the new API on their platforms.
So it doesn't excuse their lack of support for Vulkan in any way.
It will live side-by-side with OpenGL for the foreseeable future. It's just targeting the same general area (graphics using GPUs) and is standardized by the same folks (Khronos).
No. Not at all. That's why it's not a successor.
If you're a huge games company writing an engine, sure, it's a better fit for you than OpenGL.
If you're almost any other visualization use-case, it's too low level and you'll want to remain with the higher level OpenGL API.
It's an alternative, not a replacement. At most OpenGL might come to be a friendly API implemented on top of Vulkan, as opposed to beside.
EDIT: Some historical discussion in this reddit thread https://www.reddit.com/r/vulkan/comments/3hkdek/opengl_suppo...
It sounds like the most typical usage would be to implement things in OpenGL and then do a few hardcore optimization tasks in Vulkan. Why not add that access to OpenGL and put a "use at your own risk" disclaimer in front of it? Or are they so incompatible you have to write your entire graphics code in either but never both?
Submitters: the HN guidelines ask you to use the original title except when it is misleading or linkbait. Please don't add editorial interpretation—it's against the spirit of the site and often turns the discussion into a nitpicky debate about what you did to the title. In this case, the post has no obvious single title, but the subtitle "Vulkan Is Here" works fine.
The Wikipedia article on OpenGL lists Vulkan as the successor, and the former name for the Vulkan project was "Next Generation OpenGL Initiative" (glNext).
[1] "Khronos announces openGL successor Vulkan" http://www.infoworld.com/article/2892236/khronos-announces-o...
[2] "The successor to OpenGL has a name: Vulkan" http://www.gamasutra.com/view/news/237907/The_successor_to_O...
It reminds me of Nintendo releasing the Nintendo DS and calling it their 'third pillar', standing alongside their home console and Gameboy lines. They made it quite clear that despite its similar market position, the Nintendo DS was not the next Gameboy and it was not replacing the Gameboy line. Of course, the DS was incredibly successful and they never made any new Gameboy-branded handhelds ever again. (Though they did do a few updates to the existing model.)
The Nintendo DS was a Gameboy that they didn't want to call a Gameboy, and so when it succeeded the brand simply changed and things continued on as usual.
I suspect that we may see the same with Vulkan. When anyone can design an OpenGL-like abstraction as a library on top of Vulkan, the desire to make big updates to OpenGL will fade.
Even here, the discussion of how Vulkan relates to OpenGL would be better if not hung up on the word "successor", and would naturally have come up in the thread.
Is there any case where you would not want to use Vulkan in a new project?
https://twitter.com/renderpipeline/status/699501481632886786
All major engines already have announced migrating to Vulkan and/or its platform-specific counterparts (DX12/Metal), so you'd be indirectly using Vulkan anyway.
The problem with OpenGL was that it was the lowest level of access you got to the device - a high level giant API that hides the implementation behind it. Which made it a massive PITA to implement for hardware vendors, and slow to adapt to changes in the GPU landscape.
It is very likely we will see an implementation of OpenGL that compiles to Vulkan in the same way we are seeing immediate development of VK -> Metal compilers and will probably see DX12 -> Vulkan as well. You just need an API wrapper and a shader translator that takes their respective shader formats and compiles them to SPIR-V rather than the original targets.
Any project with graphics simple enough that it already easily hits the desired performance on baseline hardware?
If you don't need full control or maximum performance, something like OpenGL ES 2 will still be a lot easier to program because it does a lot of things for you that you would have to do yourself when using Vulkan. Also, the installed base of supported hardware/drivers will be much larger for the foreseeable future.
I've looked into Metal (Apple's take on an API along the same lines as Vulkan) for my simple 2D game, but for my purpose it does not offer any benefits. The same thing would hold for Vulkan, in case I would want to port to some other platform.
Which is normally done by the game engine. And the big ones are already migrating to Metal et. al.
Is the market for self-made game engines still that big? From a consumers perspective, virtually everything is on one of the "big" engines nowadays (when in doubt, Unity).
Or is it more likely to stay as something for engine builders, and as a fall-back for the points where OpenGL performance isn't sufficient?
I think we'll have to wait and see how people actually use it. I know from answering Stack Overflow questions that a lot of people are still using glVertex().
Point being that OpenGL exists mainly to support old CAD apps. Actively maintained current apps will switch to Vulkan, or whatever API provides the best benefit on the target platform.
New game engines and other graphically intensive applications will probably target both OpenGL and Vulkan, at least until Vulkan is supported on most of hardware available.
It is intended to replace OpenGL eventually. It matches modern hardware and unlike OpenGL allows using parallelism without shared state.
Why not? It is a successor, except it's not an iterative development but rather an effort to make things from scratch (which is good in this case).
> It will live side-by-side with OpenGL for the foreseeable future.
Sure, because OpenGL is still needed for supporting legacy applications and anything that won't be rewritten to Vulkan.
If this follows the usual trajectory, we'll have a sort-of-working implementation of Vulkan 1.0 in OS X 10.13 (although it will kernel panic if you look at it the wrong way).
But maybe Apple's stance on Vulkan is different now due to their own Metal API? Is Apple involved in Vulkan at all?
My guess is we'll see Vulkan in the next major OSX/iOS release.
Console vendors are also there and they never cared about OpenGL support, regardless of urban legends.
The only console to ever support OpenGL was the PS3 with the OpenGL ES 1.0 / Cg combo that very few ever bothered to use.
Also remember that although Apple created OpenCL, their implementation leaves a lot to wish for.
I think they just wanted to see if they can push major game developers to adopt Metal for Mac games early on. If they could do that - awesome for them, and they would never have to adopt Vulkan. If they can't, they'll have to adopt Vulkan.
Here's hoping the latter will happen.
Vulkan was announced in December 2014, with no significant commitment.
iOS 8 including Metal was announced mid-2014, and would have been in development for a considerable time before. By the time it was announced for OSX, Vulkan was still anaemic and not showing significant progress.
So it does make sense to keep using Metal for them.
> I think they just wanted to see if they can push major game developers to adopt Metal for Mac games early on. If they could do that - awesome for them, and they would never have to adopt Vulkan.
If that was the plan, it's probably going to fail: The developers of Unity e.g. found Metal, DX12 and Vulkan so similar that they estimate to be able to support all three with minimal development overhead.
Metal was made available in iOS8, in September 2014, almost 18 months ago. That's pretty long. In fact the first Metal public demo predates the Vulkan private kickoff meeting.
> I think they just wanted to see if they can push major game developers to adopt Metal for Mac games early on.
Mid-2015 they made their iOS graphics API — which had been available for nearly a year at this point — available on OSX. Fact remains that they realised a need for and started working on a lower-overhead API much earlier than Vulkan was conceived let alone released, likely circa 2012~2013 if they were almost done by mid-2014.
EDIT: Removed hotlink
Kudos all the more deserved for the fact that AMD doesn't have the financial firepower of its competitors.
I wanted to take a squiz at making GPU compute code for "fun" and I'm wondering if Vulkan compute is worth looking at.
I've seen asynchronous DMAs + command execution (copy engine) exposed in some APIs, but not asynchronous compute shaders.
And credit: https://twitter.com/renderpipeline/status/699501481632886786
Err, do they? Where?
I was under the impression this isn't implemented yet and is expected to be included in Android 7.
Imagination Tech has an SDK as well. Apparently, a Nexus Player is a good device to work on with it.
https://www.reddit.com/r/gamedev/comments/463jo2/vulkan_api_...
Hopefully with lower level APIs like vulkan it means higher level APIs could be better designed than opengl perhaps?
It's a graphics API that gives you more explicit control over synchronization, buffering, and resource sharing. There's still many reasons to prefer OpenGL (for which there are good bindings in CL already and could use more contributors!).
If you're just the curious sort and want to know more then by all means... it will be a tough battle if this is your first delve into graphics programming.
I find this to be a very exciting opportunity, not just for CL but for many other languages, to have a framework that feels like belongs in the host language, not just fugly ffi wrappers.
(Note: I'm personally interested in this.)
I'm not suggesting you cannot write a Vulkan API library in CL -- work has already begun in that direction: join in on #lispgames if you're interested.
It's just not going to be the ideal API to learn if you're new to graphics programming when OpenGL is already here, is rather well understood, and has plenty of supporting libraries and extensions for most needs.
Vulkan is not the right choice if you're just getting started unless you're already motivated and intensely curious (ie: already have some decent exposure to OpenGL, multi-threading, and are curious to know more).
Sure, it can be done, but it's most likely to lead to tons of frustration and abandonment.
I was pretty good using classic OpenGL (before shaders), and writing a 100% shader based simple example was quite some work, mostly spent understanding how 4x4 matrices and graphics are related.
I expect for most typical programmers for that to be the hardest part, understanding how pixels emerge from a long pipeline of operations on 3 or 4-vectors and 4x4-matrices
You can build a better OpenGL on top of Vulkan, but until someone writes one OpenGL for average developers makes more sense.
1. Less CPU usage than an equivalent game in OpenGl. This is especially true for games which want to draw lots of different individual things to the screen, so you may be seeing more of those.
2. Smaller drivers, which means more consistently performant and bug free. There's far less of a chance of getting weird things from having an unusual operating system or graphics card setup.
3. More cross platform. There are many different pieces which change on different platforms (consoles vs desktops vs mobile), but depending on what platforms choose to support Vulkan, it's one less thing to worry about when porting over.
4. Maybe better games. There's a bunch of things which help with development, so as long as a sufficient majority of graphics cards get vulkan drivers, it may help reduce some coding cost.
Games which use common engines (ie, Unity) will likely get these features for free. Others will have to work harder for it.
(I'm still somewhat skeptical as the monkey patching is a value-add secret sauce that seems likely to continue solely because it's such a weird competitive thing between the two biggest vendors and a galvanizer for the brand loyalties they try to maintain, but perhaps I'm just feeling pessimistic about the capitalist drives here.)
That's the entire point behind Vulkan. OpenGL was created back when we still had fixed-function rendering pipelines in GPU's, and while it has evolved to support the massively parallel supercomputers GPU's have become it doesn't have much low-level control over it. Vulkan gives the engine developer the thinnest abstraction possible over a modern GPU, from everything from explicit resource sharing and even explicit access to multiple GPU's (no more relying on nVidia and AMD to add SLI/Crossfire profiles).
The end user will see better framerates, I suppose.
Spending less time in the driver generally means spending more time doing useful things.
Looking forward to seeing SPIR-V compilers in other languages...
Due to the refinement of the pipeline and memory access, etc. provided by Vulkan, there's a lot of room for optimization.
___
Though on the other hand, even with additional overhead on a Vulkan web API, the improved state management and access to command buffers may still allow for smarter rendering with negligible overhead via JS
Fun times
On the other hand the nature of implementation in Chrome, i.e. does seem to lend itself somewhat to a command buffer approach as in Vulkan.
If Vulkan as low-level as expected then it's will easily let app lockup your GPU completely. Though as drivers are they shouldn't cause troubles anymore.
Windows-centric, but many things also available for Linux and Android.
------- Drivers -------
Nvidia GPU driver: https://developer.nvidia.com/vulkan-driver (worth trying even if your GPU is not listed as supported, e.g. 900 series mobile Maxwell GPUs like GTX 970M or GTX 980M work ok)
AMD GPU driver: http://support.amd.com/en-us/kb-articles/Pages/Radeon-Vulkan...
------- Demos -------
Nvidia Vulkan Choppers demo: https://nvidia.app.box.com/s/rj9nzxkpz21qu34h8zew301kray9urb...
Nvidia Vulkan Fish demo (threaded rendering): http://developer.download.nvidia.com/mobile/shield/assets/Th...
Vulkan examples binaries by Sascha Willems: http://vulkan.gpuinfo.org/examples.php
- requires assets from source distribution (create "bin" subfolder and place binaries there): https://github.com/SaschaWillems/Vulkan
- also may need to install Visual Studio 2015 redistributables: https://www.microsoft.com/en-us/download/details.aspx?id=481...
------- Games -------
Talos Principle: http://store.steampowered.com/app/257510/ (there is a free demo available)
See how to enable Vulkan support here: http://steamcommunity.com/app/257510/discussions/0/412447331...
------- Tools -------
Vulkan HW capabilities database: http://vulkan.gpuinfo.org/
Vulkan Hardware Capability Viewer: http://vulkan.gpuinfo.org/download.php
https://01.org/linuxgraphics/downloads/intel-graphics-instal...
Also: it is a shame the API docs appear to be behind a login page. Hopefully that will change! The nice thing about opengl is it (at least when I used it) the docs were easy to get at.
The Khronos site seems to be overloaded right now.
https://developer.nvidia.com/vulkan-driver
Why is this so, any idea?
$ lspci | grep -i nvidia 03:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 840M] (rev a2)
https://www.khronos.org/conformance/adopters/conformant-prod...
I don't know why some dates are in the future..