r/GraphicsProgramming • • Apr 15 '24

Is Vulkan a failed API?

I know it's modern and can do things that older APIs like OpenGL can't but how many developers are benefiting from the added verbosity and complexity?

The OpenGL reddit has more members and higher engagement than the Vulkan reddit despite the fact that OpenGL hasn't been updated in 7 years.

Personally, I would prefer if an API like Metal had cross platform support, it's modern and far less verbose.

0 Upvotes

62 comments sorted by

View all comments

67

u/Revolutionalredstone Apr 15 '24 edited Apr 15 '24

Vulcan is WIDELY misunderstood.

Most people should not be directly using it.

The fact that you are comparing it to OpenGL shows a problem.

Vulkan is MUCH lower-level than OpenGL. This control comes with the cost of greater verbosity and complexity in the code. Vulkan requires more setup and management of resources, such as memory and command buffers, which are generally handled quite well automatically by OpenGL.

Most of my friends who invested the 3-6 months to convert to Vulcan saw their performance decrease compared to easy to use OpenGL.

The exposure (and requirement) of ultra low level threading might be a benefit to some low level optimization experts on AAA titles, but most people can't do a better job managing those details than OpenGL was already doing!

The reality is people really understood OpenGL, it's just a driver with an API for users to draw 3D things!

When Vulcan came out (something much closer to a raw driver) people didn't know what to think of it and some idiot said oh it's just faster OpenGL and a million dipshits wasted their time hahaha.

The reality is these things are miles apart, even people who claim to directly use Vulcan don't actually do anything like that, they create object models and god-classes to make it reasonable.

IMHO you should really just use BGFX or other simple unified layers and let it pick Vulcan as the backend automatically where appropriate.

Failing that just use OpenGL, It runs like a dream on anything, and I've never seen a legitimate reason for bad graphics performance, a bit of LOD + frustum culling and you can render anything with OpenGL! here's some footage my newest OpenGL Minecraft clone: https://imgur.com/a/MZgTUIL (running on a computer with no GPU)

Enjoy

19

u/Glacia Apr 15 '24

The fact that you are comparing it to OpenGL shows a problem.

Before the official name Vulkan was called OpenGL Next, why wouldn't you compare it to OpenGL?

I think you're the one who misunderstood what Vulkan was/is.

Just because it end up as "write your own driver API" doesn't mean it was the original goal. It just shows that it was made by committee and completely failed to deliver. No one asked for this. People just wanted OpenGL with less driver overhead. Remember AZDO?

6

u/Revolutionalredstone Apr 15 '24 edited Apr 16 '24

IIRC Vulkan originally went under the title 'Next Generation OpenGL Initiative'?. I understand the original plan was to unify the core tech of OGL, ES and OCL. AFAIK The API was ALWAYS meant to be extremely low-level & comprehensive?

Commercially this NEVER made sense, it's an unviable upgrade for many projects due to the required learning time and it doesn't even promise an instantaneous performance benefits (without also changing up your program's structure).

If you're saying THAT outcome was less the original plan and more the result of committee bureaucracy uselessness along the way - well that would certainly make a lot more sense! (however it happened - we agree this is not what people wanted - and it's not what some people try to pretend it is)

OpenGL is much loved by users, it's down-to-earth and dead simple, however OpenGL most certainly will be implemented using the Vulkan API in the future.

Advanced new OpenGL-on-Vulcan implementations might even bring what remaining performance gap exists together as Vulcan experts will surely be bought in to implement the next version of OpenGL's backend.

Thanks for sharing

9

u/Glacia Apr 15 '24

You need to dig some history to figure out how we end up here.

Before Vulkan became a thing people were abusing OpenGL to remove driver overhead. That's why I mentioned AZDO - there was a clear demand from actual users. We would probably got OpenGL 5, but AMD donated Mantle API to Khronos and Vulkan ended up based on Mantle API.

Mantle was created by AMD driver team to test out what low level API could be, and that's how we end up here.

7

u/Revolutionalredstone Apr 15 '24 edited Apr 15 '24

Wow that's quite a story! thanks for sharing my dude! definitely all makes a lot more sense with additional context. AZDO is especially interesting! all the best my good man.

Enjoy!

2

u/IceSentry Apr 15 '24

I'm curious. Do you have an idea why you make the vulcan/vulkan typo so much? They're not close to each other on a qwerty keyboard so I assume it's something else. Do you spend a lot of time discussing star trek and vulcans?

2

u/Revolutionalredstone Apr 16 '24

Definitely blaming StartTek!

The only thing I do more than graphics programming is watching startrek!