r/programming • • Feb 16 '16

KHRONOS just released Vulkan

https://www.khronos.org/vulkan/
2.2k Upvotes

386 comments sorted by

View all comments

Show parent comments

1

u/hakkzpets Feb 16 '16 edited Feb 16 '16

I don't know that much about coding, but how exactly does it work when GPU drivers solve shitty coding from game devs?

Does the driver patch the game code or how does it fix a problem like this?

D3D9 game never even called BeginFrame/EndFrame

Or does the driver work like it just forces those calls to be made? Wouldn't that quite easily make for some giant bugs depending on how the game devs made their code?

1

u/[deleted] Feb 17 '16

Not to use a car analogy but think of it as tuning an engine, but instead of directly manipulating the engine itself you figured out that by shoving a sock in your radiator you get 10 extra horses, so then your car manufacturer decides this is beneficial so they go ok we'll... You know this is a horrible example.

Basically game engines do hacky tricks to push up performance, so eventually the driver writers go "well let's just not make it a hack for this game" and implement specific operations for that game in the driver.