3 ms·
A really bad analogy (still gets the message across): If GPU APIs were programming languages OpenGL would be Visual Basic. You're shielded from 90% of the more
by zamalek 11y ago
A really bad analogy (still gets the message across):
If GPU APIs were programming languages OpenGL would be Visual Basic. You're shielded from 90% of the more difficult aspects of accessing the GPU, for a performance cost. Vulkan would be akin to C.
For example: if you use OpenGL the GPU driver will tons of things (costing performance) to make sure that you don't update a texture while the GPU is using it - even if you know what you are doing (e.g. updating a portion of the texture that isn't being used for the render). Vulkan will get right out of your way and let you do what you want: even update a texture while its in use and potentially cause a bug/driver crash or other issues.
The interviewer made this assumption in the second question:
> Vulkan will “replace” OpenGL
Which given my above explanation you will see is probably not true. OpenGL is incredibly valuable because it's so simple - Vulkan and OpenGL simply don't compete with each other, they solve slightly different problems.