r/linux • u/lubosz • Feb 16 '16
KHRONOS just released Vulkan
https://www.khronos.org/vulkan/284
u/Eriner_ Feb 16 '16
The hype train has arrived at the station!
69
u/reentry Feb 16 '16
Along with the reddit hug of death by the looks of it...
16
u/m-p-3 Feb 16 '16
Archive link in case Reddit hugs it too hard.
9
Feb 16 '16
Also Archive.org[1]
[1]https://web.archive.org/web/20160216154433/http://khronos.org/vulkan/
141
u/GTB3NW Feb 16 '16
o o o o o o oo oo oo oo} o o oo ooo oo ooo ooo ooo ooo ooo oooooo} oo oo oo oo ooo ooo ooo oooo ooooo} o o o oo oo oo oooo oooooo} o o o ooo oo ooooo} o ooo} _________ \|/ ++ ___________ |_______|______/-___|-|_^_/-___||_n n_____/ GET _ |[][] |-----------------------|----|\ | (_) || |_______________________|_|| ||P | HYPE | -----/====+______|| _---====--||- / q|===================|_|=_/o====+|=====[__]o====+|==[__]-p\ _______________(_)(_)______(_)(_)_______/___/___/____/___/_(_)____\Really glad it's been released. Hopefully this will unify the graphics API ecosystem so everyone can get on with what they love, making and playing great games! :D
62
Feb 16 '16
Hey, hey. No one said
sl.32
u/GTB3NW Feb 16 '16
sl is too weighed down with carriages. The hype to speed ratio is not worth it so we cannot go with the generic steam locomotive, only the hype train will do!
37
41
Feb 16 '16
RIP mobile users.
19
u/grndzro4645 Feb 16 '16
Not really. Vulkan will be everywhere.
76
10
→ More replies (1)4
4
4
u/ocawa Feb 16 '16
is vulkan basically like the directX of linux?
27
6
Feb 16 '16
Only the graphical component. Other multimedia shit requires other libraries afaik
16
u/kukiric Feb 16 '16
Like SDL2, which claims to be a drop-in replacement for all non-D3D features present in DirectX, with a much better API.
3
u/ocawa Feb 16 '16
hmm, then what is the significance of vulkan?
5
u/Balinares Feb 17 '16
It's a new approach to GPU drivers and API that allows for much, much simpler drivers, and significantly better performance.
Basically OpenGL is an old design that fits the way GPUs work very poorly. Not its fault, GPUs came later. But the overhead of fitting it to GPUs is high, and Vulkan is essentially a complete redesign meant to do away with that overhead.
→ More replies (1)0
3
0
121
u/Nomto Feb 16 '16
Bit sad to see that AMD has no drivers ready for launch.
14
u/cp5184 Feb 16 '16
Are there any vulkan games or programs out yet?
28
u/redsteakraw Feb 16 '16 edited Feb 16 '16
Source 2 engine has been ported as is the Talos principle. It is just a matter of time for when unreal and unity have ports(as the Nintendo NX and Android will be using Vulcan), once major engines port all games that run on those engines gain Vulkan support by proxy.
Edit added Android
20
Feb 16 '16
Correct. You can add the
-vulkanflag to Dota 2's command line options to activate it. I imagine Valve will be pushing more support for it now that Vulkan it out.→ More replies (8)3
0
Feb 16 '16
[deleted]
11
u/flying-sheep Feb 16 '16
Wat. How?
38
26
u/Mocha_Bean Feb 16 '16
TTP was intended to be a Vulkan launch title, so Croteam got early access.
Several other developers had early access too.
14
Feb 16 '16
Croteam is a member of VAP (Vulkan Advisory Panel), and for almost a year we helped with designing the Vulkan API .
9
5
u/wjoe Feb 16 '16
For what it's worth, devs on that post say Vulkan support in the beta is currently Windows only, the Linux beta will be released in a day or two.
3
u/CoolDeal Feb 16 '16
On Vulkan, the game runs 20% to 30% slower than even D3D11/OpenGL, looks like they have a lot of work to do.
10
u/sharkwouter Feb 16 '16
Still a nice proof of concept. The game can run on Vulkan on day one on beta drivers.
→ More replies (1)3
12
u/nikomo Feb 16 '16
The spec was launched, all the drivers are still in beta.
I'm personally expecting Linux support when the drivers are done, but right now beta drivers are only really useful for developers. Still, sucks that AMD-using Linux-based developers have no drivers at the moment, no matter how small that demographic is.
8
Feb 16 '16
Which is bonus funny because linux users with amd cards are the ones that need vulkan the most.
That said, it can't be far away and there are like 2 games out that support it.
→ More replies (11)14
u/jbranso Feb 16 '16
It is. It's kind of sad that GNU can't recommend AMD graphics cards. AMD's cards are probably the closest to what nvidia cards can deliver, and their driver is almost libre, but nvidia cards are the only libre graphics cards available. That whole tangent was just to explain that AMD drivers for Linux are close to open source as anything out there. I wish more people bought AMD for that reason.
44
Feb 16 '16
GNU doesn't compromise on "almost libre" usually (also the hardware is pretty far from open).
27
Feb 16 '16
The FSF endorses Nouveau, despite Nvidia's far worse stances on open-source. The only difference is the nonfree firmware on AMD, which is a damn shame.
21
u/aaronbp Feb 16 '16
Recent nvidia GPUs also require non-free firmware, IIRC
6
u/themadnun Feb 16 '16
IIRC it's anything from about the past nine years. I have a 3870 here that's going into a Libreboot build (assuming it still works) as that's the most recent AMD card (2007) that can work without the firmware blobs, to my knowledge. Pretty sure Nvidia is about the same, time-wise.
→ More replies (2)3
u/sharkwouter Feb 16 '16
I really don't like the idea of giving money to Nvidia. Both Intel and AMD will invest at least a part of the money you give them on open source software, while Nvidia might even invest it in preventing open source software from succeeding.
2
Feb 16 '16
Does OpenGPU on AMD's side change any of that?
12
u/themadnun Feb 16 '16
GPUopen is just a suite for graphical effects. I don't think it's related at all to GPU drivers or their firmware.
Seems like a lot of people are conflating GPUOpen with AMD's new Open-friendly driver model/roadmap.
→ More replies (1)18
u/burning_iceman Feb 16 '16
but nvidia cards are the only libre graphics cards available.
Only true for older Nvidia cards. Current cards need closed source firmware provided by Nvidia.
4
→ More replies (6)1
Feb 16 '16
Isn't it better to have Intel and fully free software?
33
Feb 16 '16
It's better to actually be able to play video games.
→ More replies (1)3
u/poo_22 Feb 16 '16
Can you play games with Nouveau?
→ More replies (6)14
u/Mocha_Bean Feb 16 '16
Pretty much no.
Forget performance; I'm not even entirely sure it's possible.
→ More replies (1)
31
u/Jan2go Feb 16 '16
C++ wrapper for the Vulkan API: https://developer.nvidia.com/open-source-vulkan-c-api
1
u/riskable Feb 16 '16
I'm slightly concerned about this... Will using Nvidia's wrapper provide a performance boost when running on Nvidia hardware or perhaps degraded performance on non-Nvidia hardware? We've seen this in the past with Intel's compiler.
I know it's supposed to be a thin wrapper but is there a chance they could be hiding something there?
6
u/mafrasi2 Feb 16 '16 edited Feb 16 '16
It's open source and as you said should be pretty simple. In comparison Intel's compiler is closed-source and a massive piece of software, so I don't think there is much to worry about here.
203
u/WhoCaresAboutThat Feb 16 '16
Can't wait for it to kill DirectX!
93
32
u/DelusionalAI Feb 16 '16 edited Feb 16 '16
What are the advantages of this vs dx12? The only real thing I've seen is Vulkan's cross platform support.
86
u/d_r_benway Feb 16 '16
dx12 only supports Windows 10 (and maybe Xbox), Vulkan supports Windows xp - 10, Linux, Android and maybe console in future.
Vulkan I believe is more scalable.
50
u/nschubach Feb 16 '16
Nintendo has joined Khronos and it's fairly well confirmed that the NX will use a Vulkan compliant API.
→ More replies (14)2
u/Brainlag Feb 17 '16
Nobody provides a driver for windows xp nor vista, so I would say those are not supported.
63
u/WhoCaresAboutThat Feb 16 '16 edited Feb 16 '16
It's open source. It also has lower level support of the GPU.
14
u/DelusionalAI Feb 16 '16
Doesn't DX12 also provide low level GPU stuff? I'm trying to gauge why a game dev would use this over DX12. This is probably be the wrong sub to say this, but I'm not sure open source is enough of a pro to convince many devs to use it over DX12. Cross platform support might be, but I was wondering what else there might be.
62
u/kurosaki1990 Feb 16 '16
Cross platform is not like simple thing it's huge thing, Valve is trying to shift away gamers from windows and they are big player in pc gaming industry. This will help devs to choose Vulkan over DirectX since it's safe choice.
→ More replies (2)17
u/DelusionalAI Feb 16 '16 edited Feb 16 '16
I guess I didn't
releaserealize how many companies where actually supporting Vulkan. Its not just cross platform, its cross corporation. As long as it preforms close to DX12 (which everything seems to point that it will do just as well if not better) then this could be big.→ More replies (7)13
Feb 16 '16
Game dev would use a mainstream game engine, and they will support Vulkan, I think (Unity Tech. and Epic Games are members of the consortium).
7
u/grndzro4645 Feb 16 '16
Because they can also target Android/Linux/Windows. Same or better performance than DX12, and it's an easy port to DX12 for Xbox One.
→ More replies (2)→ More replies (1)4
u/ElvishJerricco Feb 16 '16
Vulkan can take advantage of the GPU for things besides graphics. It can use it for computations. Being lower level also makes it easier to make more finely tuned code
8
u/riskable Feb 16 '16
There's enormous non-gaming advantages of Vulkan over DX12: The ability to use the GPU for things other than graphics (vastly beyond what we currently have today; goodbye thread limitations!).
Seriously, no one is going to be spinning up GPU instances at various cloud compute providers running Windows.
15
u/ramennoodle Feb 16 '16
The only real thing I've seen is Vulkan's cross platform support.
Only? That is by far the most significant difference. So if you're happy targeting Windows/Xbox then there is no huge difference (other than perhaps the possibility that someday DirectX will be deprecated on Windows.) But for anyone interested in porting to MacOS, iOS, Android, future Nintendo game consoles, future Sony game consoles, Roku, Linux, smart TVs, etc., etc. it is great to have a common (platform- and corporate-independent) API.
7
u/renrutal Feb 16 '16 edited Feb 16 '16
Vulkan is not coming to OS X and iOS, unless Apple changes their mind.
→ More replies (3)7
3
Feb 16 '16
Many doc pages from DirectX12 look ripped right out of Mantle, so I expect them both to be similar. Microsoft will add some things to make it slightly different syntax wise, but the performance will probably be the same.
3
u/variaati0 Feb 16 '16
I think the more prudent question is what are advantages of DX12 over Vulkan. As far as I can see that would be none. Correct me, if someone can find some technical reason to use DX12 over Vulkan.
2
u/agent-squirrel Feb 16 '16
Did you get those GPU support figures wrong? That reads very oddly.
→ More replies (1)1
1
u/sonay Feb 16 '16
I share the sentiment however AFAIK this is just for graphics whereas DirectX is much more, so not likely.
42
20
u/MTSnacks_ Feb 16 '16
Damn r/linux, that was fast.
18
u/GTB3NW Feb 16 '16
Everyone suspected a release today because they were changing the site around and put some specific cache drop times for midnight rather than after the usual 24 hours.
39
Feb 16 '16
lol who are the motherfuckers checking cache expiry headers
2
u/GTB3NW Feb 16 '16
lmao but in this case it apparently spewed out the headers in the html body to start with before they switched to a placeholder image.
31
Feb 16 '16
now somebody eli5 ehat that means exactly for the average joe using a linux distribution.
54
15
u/BlueShellOP Feb 16 '16
Nothing for at least a few months. Then we'll see some cool tech demos. In the next year or so we'll see some games add it as an option (I imagine Valve will push it in their Source games). Maybe in the next year or two we'll see new games release with it out of the box. And then after that, who knows. Ideally this will mean we'll get proper cross platform game releases being the norm. Also, if all goes super well, Microsoft's grip on gaming will finally be loosened.
And then when it's finally ready to die, AMD will release a beta driver for it. /s
→ More replies (2)8
u/Linux_Learning Feb 16 '16
Talos principle is already released with Vulkan API, and Valve is switching their games over to it too currently.
→ More replies (1)4
u/Inprobamur Feb 16 '16
It will be really good news for 3d on ARM and on Android generally. For Linux it will bring more native 3d.
→ More replies (7)4
u/riskable Feb 16 '16
It means a couple of very meaningful things, actually!
More native games coming to Linux and better performance with those games.
Better performance for things like video decoding and encoding (no more waiting hours for your VP9/webm video render to finish, haha).
Better performance for things that use encryption. Yes! Vulkan exposes the GPU in ways that will allow offloading such things to the GPU.
Better performance when compressing/decompressing files (if the algorithm can be offloaded to the GPU it probably will be!).
10
18
35
Feb 16 '16
Can someone tell me the real benefits to Vulkan? People are acting like its a big deal but I also see people saying its only a small improvement some of the time? Things like its much harder to work with, its not worth it to even port from opengl a lot of the time, it won't replace opengl at all, and when there is an improvement it is small.
Also I've always wondered, why do Linux games perform worse compared to Windows? I've assumed opengl was the problem but what else is actually holding back Linux game performance?
57
u/ashleysmithgpu Feb 16 '16
Vulkan gives you much lower level control over the GPU. It's up to developers to take advantage of it. This means there is less code in the way of the hardware so hopefully more stable drivers. A lot of the problems with OpenGL drivers is that it has to guess at what the developer is trying to do.
→ More replies (11)16
u/chiagod Feb 16 '16
Isn't lower CPU utilization and better multi threading also an advantage of Mantle and Vulkan?
2
u/TeutonJon78 Feb 16 '16
Isn't it technically higher CPU utilization? Part of the point is removing the CPU-GPU bottleneck so more cores can talk to the GPU. I'd think this would raise total CPU usage but lower individual core usage.
11
u/ashleysmithgpu Feb 16 '16
If you limited your application to the same frame in both cases rate then it should be lower CPU utilisation than say OpenGL. Because OpenGL does validation, error checking and multi-buffering all of which you can remove or do better with Vulkan if you write your application correctly.
→ More replies (1)10
u/themadnun Feb 16 '16
"Removing overhead" is a better way to think about it. Now your CPU can run at 100% instead of 80% + 20% overhead for managing the GPU, kinda thing.
32
u/GTB3NW Feb 16 '16
I recently got TL;DR for it:
API is very much designed for parallel work. That means reduced single core usage which was a massive bottleneck for lots of games.
More code is executed on the GPU. Think of it being like OpenCL + OpenGL combined. Vulkan uses SPIR-V which describes actions and then what to do with the results. Basically instructions then shader. I'm not an expert on this myself but you can think of it as calculating physics for a bouncing ball for example and then the shading is computing what it looks like.
This most definitely will replace OpenGL but only once the ecosystem updates. The learning curve will be far greater that's for sure. There will probably be less companies building their own engines in house for a while that's for sure.
9
u/burning_iceman Feb 16 '16
OpenGL will stay around for developers who don't need extra performance or fine grained hardware control but instead prefer ease of use or require compatibility with old hardware.
11
Feb 16 '16
OpenGL becomes redundant if libraries like SDL can beat openGL's performance using Vulkan.
→ More replies (1)5
u/GTB3NW Feb 16 '16
Vulkan works on all hardware that supports OpenGL 4.1 / OpenGL ES 3.1. If you're using earlier versions of OpenGL then you're silly. Steam doesn't have stats for opengl but does state what percentage (seems broken this month, there was a 60% jump to a low directx version, almost certainly an error).
Less than 4% of cards support directx 9 or below which should still be OpenGL 3.1 compatible. Frankly if you don't have a GPU or support for 3.1 or higher these are not users you want to support, they are not the market share.
→ More replies (2)3
u/TeutonJon78 Feb 16 '16
Maybe it works on all those cards, but AMD isn't supporting it in any pre-GCN cards even though some could support it.
→ More replies (5)11
Feb 16 '16
It is a low level API that exposes the hardware capabilities, while OpenGL is higher level but you never know which function is implemented by the hardware and will be fast; and which one will be emulated inside the CPU.
10
u/bitwize Feb 16 '16
OpenGL is an abstraction layer for 3D drawing. "Draw this geometry with these textures and these shaders" is about as much as you can manage with it. Vulkan gives you much finer grained control over how the rendering pipeline does its work, providing direct access to command buffers (the exact sequence of draw commands), texture and geometry memory, and giving you a lower-level shader language (SPIR-V, think "LLVM for GPUs") to work with. Compared to OpenGL it's like going from Java to C++. Meaning you probably won't see much benefit -- unless you're good at being explicit about how your rendering pipeline hits memory and perform calculations, in which case you can pull out all the stops and squeeze that much more juice out of any given GPU.
6
u/Linux_Learning Feb 16 '16
What does this mean?
Vulkan is a combined effort by the biggest players of the computer graphics market to produce a single, open-source, cross-platform API to replace DirectX, OpenGL and Mantle in the context of gaming, providing the benefits of all three. It also officially replaces OpenGL ES as the primary graphics API for development on Google Android. With the new API, developers will be able to write graphics-related code once and use the same code in releases for any platform including Windows XP-10, Linux (inc. SteamOS, Ubuntu, etc.), Android and Tizen. The potential is that any platform can provide an implementation for Vulkan.
These are the companies involved in the development of the Vulkan specification: https://i.imgur.com/weu36Zo.jpg
These are the companies with membership to the Khronos group, the consortium funding Vulkan: https://i.imgur.com/7stvrM5.png
There's a lot more to it of course, but this is the basic gist. If you want to read more about Vulkan, check the Phoronix article here: https://www.phoronix.com/scan.php?page=article&item=vulkan-10
This is one of the biggest developments in gaming for a long time. All the benefits you've been hearing about DX12 are now available for Vulkan-enabled games on any platform, including Linux. We turned away from consoles due to their locked-down nature, and now it's time for the PCMR to ascend once more to complete gaming freedom whether you choose Linux or Windows (XP, 7, 8 or 10).
This is the biggest news for the PC gaming right now
If you want to make use of Vulkan right now, the development team of The Talos Principle have released a beta version of their game using a Vulkan renderer: https://steamcommunity.com/app/257510/discussions/0/412447331651559970/
Drivers are available right now as follows:
Nvidia on Windows 7-10 [1], Linux, Android
AMD on Windows 7-10 [2] (coming with amdgpu driver for Linux)
Intel on Linux
Imagination Technologies on Linux
ARM on Linux
Qualcomm on Android
[1] https://developer.nvidia.com/vulkan-driver
Source: /u/ant59
→ More replies (2)1
Feb 16 '16
why do Linux games perform worse compared to Windows?
They don't. Not on my gaming rig (high end desktop) anyway. All my Linux games run better than Windows, even non-native games run better.
7
12
u/d_r_benway Feb 16 '16
Anyone know if the Nvidia Gefore 400 series will be supported ?
According to previous press releases it suggested that 400+ will be supported
i.e
http://on-demand.gputechconf.com/siggraph/2015/presentation/SIG1501-Piers-Daniell.pdf
However I not on the download page only 600+ are supported ?
Anyone know for sure?
5
u/Moocha Feb 16 '16
Anyone know for sure?
Nobody outside Nvidia since they're not really in the habit of being open about future plans.
However, the beta Vulkan driver only supports the Geforce 600 series and newer cards, so I'm going to speculate it's not looking good for older cards.
3
Feb 16 '16
Khronos Group maintains a list of products that support Vulkan right now. [1] Sadly, my GT 620 isn't on there. :(
[1] https://www.khronos.org/conformance/adopters/conformant-products
0
Feb 16 '16
[deleted]
1
u/ACSlater Feb 16 '16
I thought all video cards with 4.x OpenGL support could use Vulkan. I'm still using an old GTS 450, but it will probably be retired by the end of the year.
12
u/bboozzoo Feb 16 '16
If anyone is interested, there was an interesting presentation at FOSDEM 2016 about Vulkan, video here: https://video.fosdem.org/2016/k1105/vulkan-in-open-source.mp4
6
u/WOnder9393 Feb 16 '16
Weird that "Vulkan 1.0 Specification in GitHub" redirects to https://www.khronos.org/registry/vulkan/
7
u/Moocha Feb 16 '16
They did a boo-boo. Actual GitHub link: https://github.com/KhronosGroup/Vulkan-Docs
6
5
9
3
u/spiffybaldguy Feb 16 '16 edited Feb 16 '16
I cannot wait to try these, I have a GTX770 and have waited for Vulkan to come out so I can move off microsoft and convert over to Linux (am in dual boot for now).
Edited for clarity and correction
3
Feb 16 '16
I hate to burst your bubble but by the time Vulcan is useful that card will be obsolete.
Why not come over now? If you don't have to play certain titles, there's enough now and it would appear that more and more titles are releasing for SteamOS. Here's a list of my currently owned games and I by no means own or play all of them: https://i.imgur.com/A29cZOh.png
A lot of this is what carried over from my days gaming on windows. Lately I just bit the bullet and committed to "as much free software as possible" on the phone, desktop, laptop. I use CyanogenMod on my phone and Fedora 23 for my main OS. CentOS as my server.
1
u/spiffybaldguy Feb 16 '16
I will have a new card this year. I have about 255 games on steam and another 40 or so on GoG. I do have a few standalones (mostly mmo's and such). I am still in Linux enthusiast mode while actually working on Redhat/CentOS at work as part of my job. I suspect I will be moving over a lot sooner. As I am very partial to all of my games, some are still not easily workable on Linux yet. Part of why I dual boot. If I can play it on Linux I generally default to that and purchase games that work on Linux at a minimum :). Getting there, baby steps!
1
Feb 16 '16
wait, you mean this literally means new drivers RIGHT NOW? I thought they just presented the sdk etc and now it's up to developers to make use of it.
2
3
2
u/OG-Mudbone Feb 16 '16
I am currently learning OpenCL for computational research on a smartphone. Should I care about this?
4
u/ToothFairyIsReal Feb 16 '16
You should care if you want to visualize your computations in a timely manner, without weird hacks.
1
u/OG-Mudbone Feb 16 '16
What do you mean visualize my computations? I'm not doing anything graphical, just parallelizing vector computations for algorithms.
→ More replies (1)
2
Feb 16 '16
So will vulkan come to GPUs that use radeonsi/xf86-video-ati or is it amdgpu only? I have a 7950.
2
u/haagch Feb 16 '16
Summary of what bridgman said in the phoronix forums:
Currently amdgpu only. Sea Islands has experimental support in amdgpu that should work with Vulkan. They are still thinking whether they should add Southern Islands support to amdgpu, or whether they should support Vulkan on radeon too just for the Southern Islands GPU.
Also there was someone not affiliated with AMD who started adding Southern Islands support to amdgpu: https://github.com/ronsaldo/linux-amdgpu-si/commits/driver/amdgpu-si, https://github.com/ronsaldo/libdrm/commits/amdgpu-si. The commit messages are kinda weird, but he seems to be making progress.
1
u/PinkyThePig Feb 16 '16
I asked that question to an AMD employee in the /r/amd subreddit if you wanted to check it periodically for a reply: https://www.reddit.com/r/Amd/comments/462jx7/amd_simplified_vulkan_api_khronos_group_has/d027n7v?context=3
2
3
3
u/slacka123 Feb 16 '16 edited Feb 17 '16
Any chance of this making it into Ubuntu 16.04? Or will the LTS users have to wait another 2 years for Vulkan?
4
u/dastva Feb 17 '16
There is a PPA for it over here, but I believe it is just for Intel graphics? I'm not sure, I haven't read much from here.
1
u/afiefh Feb 17 '16
The drivers aren't even in the stable mesa release yet. It definitely won't make it into a release that's two months away.
You can always add a PPA or upgrade to non-LTS versions.
1
Feb 16 '16
Will Vulkan be of any benefit for HPC? I can't seem to find any concrete information anywhere
1
u/1998tkhri Feb 17 '16
I don't know these companies/products, but is there a Star Trek reference here? KHRONOS --> Qo'noS; Vulkan --> Vulcan. What's next? Badjor? Frerenginar? Romyulis? Andoreeya?
1
u/pyro57 Feb 17 '16
HYYYYPE once games start to be written in this I hope to cut Windows from my life completely.
1
Feb 17 '16
btw, if you want to start programming right away, here's a list of resources which just popped up in my newsfeed:
1
Feb 17 '16 edited Feb 17 '16
Out of the loop: will it work properly on my 6950?
edit: Nope: http://support.amd.com/en-us/kb-articles/Pages/Radeon-Vulkan-Beta.aspx
She had a good 5 year run.
1
1
u/comrade-jim Feb 16 '16
Can someone explain what Vulkan is and how to use it to build a game?
22
u/skocznymroczny Feb 16 '16
Vulkan is a low-level graphics API, meant to be a competitor for likes of DirectX 12 and Metal. How to use it to build a game? Download the headers and start coding. But realistically, if you ask what Vulkan is, then to use it to build a game you will want to wait for engines like Unity3D to start supporting Vulkan.
2
1
u/frenchtrickler Feb 16 '16 edited Feb 16 '16
What the hell is a Vulkan and a KHRONOS and why is everyone so pumped, ELI10? Thanks so much.
1
u/TheArcane Feb 16 '16
Can anyone explain why this is a big deal?
1
u/XSSpants Feb 16 '16
Vulkan is a next-gen crossplatform graphics API that unlike DX12, will run on every other OS except iOS.
Android is adopting it, so that's an install base of millions.
I just hope we don't get a deluge of shitty mobile game ports for Linux.........
2
Feb 16 '16
I just hope we don't get a deluge of shitty mobile game ports for Linux.........
There's already too many of these shitty retro indie games, to be honest. I would think though this is exactly what we're going to get more of if it takes hold on Android first.
You tend to get what the devs learn to do first.
→ More replies (1)
1
u/Twisted_Fate Feb 16 '16
I tried to install the nvidia driver but it failed and my old driver got wasted in the process, had to reinstall it.
-4
u/BASH_SCRIPTS_FOR_YOU Feb 16 '16
Anyone have some tutorials for a currently learning c programmer?
17
15
u/m_0g Feb 16 '16
I would not recommend trying low-level graphics before you have a firm grasp on C.
8
u/MrRadar Feb 16 '16
In addition to being too new for tutorials this is a much lower-level API than traditional OpenGL so it requires a lot more boilerplate setup to start drawing triangles on-screen. If you want to learn 3D graphics start with an OpenGL tutorial.
5
u/pclouds Feb 16 '16
This is actually Mantle, but I suspect Vulkan API won't be much different
https://medium.com/@Overv/implementing-hello-triangle-in-mantle-4302450fbcd2
1
Feb 16 '16
Here's something that may tide you over until more comprehensive guides come along. You can also take apart some of the demos to see how they work.
-2
u/aaronbp Feb 16 '16
Wake me up when there are open drivers available got radeonsi people
2
Feb 16 '16
[removed] — view removed comment
5
u/aaronbp Feb 16 '16
My understanding is that 1) AMDs Windows OpenGL implementation is just as bad as the one on Linux and 2) Vulkan does not have the same performance gotchas as OpenGL.
If AMD keeps their drivers proprietary, someone else will write open ones anyway. This is Linux, after all.
0
134
u/jck Feb 16 '16 edited Feb 16 '16
Only Nvidia has a Linux driver right now. Amd supports only windows. Intel link goes to a blog post.
EDIT: Intel's driver has been added to a mesa branch!
This is ironic considering that Vulkan was spinned off from Mantle.