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

3

u/Ok-Sherbert-6569 Apr 15 '24

Well vulkan should be more like metal. You should have explicit ability to manually memory management and also be able to leave that up to the driver. Any other approach is doomed and stupid

11

u/Revolutionalredstone Apr 15 '24

Agreed, I've actually seen c++ wrappers for Vulcan which do something just like that!

IMO The real issue comes from people writing directly against it, Vulcan is a great driver! and you can USE IT TO EXPOSE an excellent graphics interface!

But for whatever reason people don't do that... they try to force their game systems to treat Vulcan like it was a high level graphics API which it just is not.

Enjoy