News for hackers. Stuff that matters.
Re:I learned Vulkan and wrote a small game engine with it by ryandrake on Friday November 21, 2025 @10:07PM (#46011705)
You don't have a tiny brain. Vulkan is a low-level chip abstraction API, and is about as joyful to use as a low-level USB API. For a more fun experience with very small amounts of source code needed to get started, I'd recommend trying OpenGL (especially pre-2.0 when they introduced shaders and started down the GPU-programming path), but the industry is dead-set on killing OpenGL for some reason.
Re:I learned Vulkan and wrote a small game engine with it by zffr on Saturday November 22, 2025 @02:05AM (#46012775)
Does anyone know why the industry is killing OpenGL?
Re:I learned Vulkan and wrote a small game engine with it by whstl on Saturday November 22, 2025 @03:55AM (#46013283)
People wanted more direct control over the GPU and memory, instead of having the drivers do that hard work.

To fix this AMD developed Mantle in 2013. This inspired others: Apple released Metal in 2014, Microsoft released DX12 in 2015, and Khronos released Vulkan in 2016 based on Mantle. They're all kind of similar (some APIs better than others IMO).

OpenGL did get some extensions to improve it too but in the end all the big engines just use the other 3.

Re:I learned Vulkan and wrote a small game engine with it by dontlaugh on Saturday November 22, 2025 @05:02AM (#46013554)
OpenGL cannot achieve the control over modern hardware necessary to get competitive performance. Even in terms of CPU overhead it’s very limiting.

Direct3D (and Mantle) had been offering lower level access for years, Vulkan was absolutely necessary.

It’s like assembly. Most of us don’t have to bother.

Re:I learned Vulkan and wrote a small game engine with it by jbb67 on Saturday November 22, 2025 @04:51AM (#46013512)
Vulkan is definitely a major pain and very difficult to learn... But once you've created an init function, a create buffer function, a create material function etc which you do once you can largely then just ignore it and write at a higher level.

I don't like Vulkan. I keep thinking did nobody look at this and think 'there must be a better way' but it's what we've got and mostly it's just learn it and write the code once

Re:I learned Vulkan and wrote a small game engine with it by flohofwoe on Saturday November 22, 2025 @10:26AM (#46015465)
> I'd recommend trying OpenGL

Tbh, OpenGL sucks just as much as Vulkan, just in different ways. It's time to admit that Khronos is simply terrible at designing 3D APIs ;) (probably because there are too many cooks involved)