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

-1

u/morglod Apr 15 '24

Fact

Also looks like people (as always) reading only big labels from big companies. OpenGL have most things (and somewhere even more) than Vulkan through extensions. And most games on vulkan works slower than gl. GL state management is bad? Ofc better copy 40 bytes of descriptors for every api callπŸ€™ yeaaahh. 2024. Make your graphic api calls through multiple data copies to buffers that you write from all cores of your CPU and than wait while 192bit GPU connector will eat that stuff. Low leveeaaall yeaaahh

2

u/Revolutionalredstone Apr 16 '24

Hats off for the snazzy flair! :D It's refreshing to see that I'm not alone in the old "OpenGL Retirement Home" .

Vulkan is sold on it's low-level features, but when it comes down to the actual race (where program quality = programmers time / api difficulty) old simple and reliable OpenGL leaves it eating dust.

Thanks for the laughs, Enjoy

2

u/morglod Apr 16 '24

Funny that people dislikes when it's just true

Try read from buffer on modern wgpu native api. 20ms in rust implementation mmmmmmm yeaaah low level performance! (macos m1 wgpu-rs)

2

u/Revolutionalredstone Apr 16 '24

Yeah the things I've had downvoted makes you wonder about the readership of Reddit and their ability to comprehend the things they choose to vote on.

Not to worry I got your msg πŸ™‚ and I really appreciate you sharing!

Graphics and programming subs are especially full of frustrated down-vote distributers πŸ˜‚

All the best my good man πŸ˜‰