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

5

u/PeterBrobby Apr 15 '24

I think it would of been a good idea for Khronos to still update OpenGL whilst offering Vulkan to those who want it.

7

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

I'm not sold, OpenGL is pretty much done, it works completely fine.

Looking at the timeline it's clear they were just adding random stuff by the end, even by 3.0 there was very little true new core tech.

4.0 and beyond is kind of like 'General Compute' and 'bindless' which are fine but OpenCL exists and already does compute much much better (and it was already completely compatible with OpenGL anyway) bindless is super cool but it's such a departure and radical change that it basically only gets used by a niche set of people who really go hard (since most people don't want to unlearn everything they knew just for the computers which can support it)

IMO people should be more focused on their game and less focused on their API ;)

I've used OpenGL 3.0 for over 15 years straight, it never lets me down and it runs everywhere like a dream! (the few devices which don't support it WILL support gles 2 which is basically just identical, you change one or two things here and there and it just works!)

Enjoy

4

u/winterpeach355 Feb 18 '25

OpenGL is not "done" by any means. They have yet to go full DSA or ditch geometry shaders. A modern OpenGL 5.0 would be perfect for people who just want an easy cross platform API.