HN2new | past | comments | ask | show | jobs | submitlogin

Vulkan is way better. It's not lower level per se, just a way better abstraction for how modern GPU hardware works as opposed to the mid/late 90s hardware that OpenGL still targets at it's core.

The biggest win is how explicit it is so you won't stutter for things like shader recompiles like you do in OpenGL (I'll give you a hint, most of the time the shader isn't fully compiled by the time glLink returns). Also, Vulkan's emphasis on immutable objects really tickles my fancy in terms of programming hygiene.



While Vulkan is a better abstraction for modern GPU hardware, I’ve always thought OpenGL better mapped to how humans think of 3D scenes, and imposes relatively little* tedious boilerplate on the developer. If I wanted to get a quick experiment up and running that just shows a model and maybe using a few shaders, I know which API I’d rather use. If I wanted to make a simple, non-AAA budget game without using Unity or Unreal, I know which API I’d rather use.

Vulkan, to me, is the assembly language of graphics APIs. Few should need to drop down that far, but those who do really need to.

*The exception being platform-specific window management which has always been terrible, but mostly solved by compatibility libraries.


Honestly, OpenGL isn't that great for how people think. IMO a scene graph API is much better in that situation.

The boilerplate in Vulkan is a lot of work to get to a triangle on the screen, but once you're there it really isn't much more work to do whatever. The boilerplate isn't linear with lines of code, and honestly anything nontrivial with modern OpenGL is probably going to have more boilerplate.

It's sort of an unfortunate consequence of how code architecturally should change with log10(cloc). Examples in Vulkan look verbose, but as soon as you get out of examples, it's a lot nicer. So, with a simple game, I'd probably end up using something like Vulkan too.


The world of 3D APIs would have been much different if OpenInventor was released on the same terms as OpenGL, but it wasn't.

OpenGL is so raw than everyone ends up creating their own scene graph API from scratch.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: