News for hackers. Stuff that matters.
Re:Raspberry Pi 4 V3DV graphics driver achieves Vulkan 1.0 c... by rixrax on Wednesday November 25, 2020 @05:44AM (#25207832)
Noob question - is there a quick summary somewhere why Vulkan is better than e.g. OpenGL? Whats different? And what kind of performance enhancements one should expect when using Vulkan?
Re:Raspberry Pi 4 V3DV graphics driver achieves Vulkan 1.0 c... by jpm48 on Wednesday November 25, 2020 @06:13AM (#25208037)
OpenGL is single threaded with a single state machine (ok there are some atomic supports via extensions). Vulkan allows you to manage the stream so you can multi-thread. This allows you to update more that 1 state at a time, for example in OpenGL loading textures and mesh data at the same time can't happen easily. In vulkan you can tune this yourself. (this is a very simplistic example). I usually say that Vulkan is more akin to you writing the graphics driver. Where as OpenGL gives you the driver.
Re:Raspberry Pi 4 V3DV graphics driver achieves Vulkan 1.0 c... by GreenHeuristics on Wednesday November 25, 2020 @08:53AM (#25209211)
OpenGL supports multi-threading via creation of multiple contexts, sharing resources (textures, shaders etc) between them.
Re:Raspberry Pi 4 V3DV graphics driver achieves Vulkan 1.0 c... by jpm48 on Wednesday November 25, 2020 @01:36PM (#25212595)
Vertex array objects are not which can be a bit of a pain.
Re:Raspberry Pi 4 V3DV graphics driver achieves Vulkan 1.0 c... by grishka on Wednesday November 25, 2020 @05:50AM (#25207876)
As I understand it, Vulkan allows the application much more control over the rendering pipeline, whereas OpenGL has a lot of internal state you control indirectly.
Re:Raspberry Pi 4 V3DV graphics driver achieves Vulkan 1.0 c... by gchadwick on Wednesday November 25, 2020 @06:01AM (#25207964)
One issue with OpenGL is it was originally designed in the 90s when modern GPUs didn't exist. Whilst the API has evolved since then there was a reticence to chunk it all away and start again with a clean slate, or at least have a radical resdesign (something DirectX didn't shy away from).

Vulkan is built based on modern GPU architecture as well as being lower level then OpenGL. This makes it easier to get the best out of the hardware.

Re:Raspberry Pi 4 V3DV graphics driver achieves Vulkan 1.0 c... by tarruda on Wednesday November 25, 2020 @05:48AM (#25207863)
Answer from another noob: AFAIK it is not about being better, but lower level.

Being closer to how GPUs work underneath gives developers more flexibility for optimizing.

Re:Raspberry Pi 4 V3DV graphics driver achieves Vulkan 1.0 c... by GreenHeuristics on Wednesday November 25, 2020 @08:55AM (#25209221)
Often it has been that Vulkan is closer to how GPUs work simply due to GPU manufacturers having to change their GPUs to work well with Vulkan. To for example add a co-processor to the GPU so that it can do job scheduling in a more Vulkanish way.

Vulkan was after all a spec from one GPU manufacturer (AMD), there are a handfull others with their own archs developed with their own assumptions.

Re:Raspberry Pi 4 V3DV graphics driver achieves Vulkan 1.0 c... by cma on Wednesday November 25, 2020 @02:30PM (#25213241)
Mantle was the single GPU manufacturer API, Vulkan was based on Mantle, but its creation had input from all the major vendors including Nvidia.
Re:Raspberry Pi 4 V3DV graphics driver achieves Vulkan 1.0 c... by GreenHeuristics on Thursday November 26, 2020 @02:29AM (#25217734)
'had input' = can be accepted, not 'is also based on'
Re:Raspberry Pi 4 V3DV graphics driver achieves Vulkan 1.0 c... by cgufus on Wednesday November 25, 2020 @05:46AM (#25207846)
Isn't Vulkan just the new name for the efforts that historically went into OpenGL?
Re:Raspberry Pi 4 V3DV graphics driver achieves Vulkan 1.0 c... by pja on Wednesday November 25, 2020 @06:12AM (#25208033)
It’s a clean slate API by the same industry group that’s lower level than OpenGL.