r/GraphicsProgramming • • Mar 07 '15

"Zero Driver Overhead" misleading?

So one of the buzzwords that's been flying around for some time is "Zero Driver Overhead." People are trying to use OpenGL and now now Vulkan and approach having zero time spent in the driver.

But isn't this goal a bit misleading, perhaps? Just because you can use openGL in a way that it spends no time in the driver, doesn't actually mean that you did graphics more efficiently. It could be (and I'm pretty sure it is in some cases) that you're just doing in client code a bunch of things that were previously done in the driver. So your program does the same thing, and doesn't even run much faster, it just spends more time in client code, and less time in the driver.

This doesn't sound like a particularly good thing. Thoughts?

2 Upvotes

8 comments sorted by

View all comments

15

u/nexuapex Mar 07 '15 edited Mar 07 '15

There's a bunch of things that "Zero Driver Overhead" could mean:

If you take all the CPU code that you put in the driver and put it in your program instead, then it won't be any faster, but it will be more controllable by you. Driver writers have to optimize for every single program, while you only have optimize for yours. If the code is in your program instead of in an opaque driver with no symbols, you have a chance of optimizing the things that your program takes advantage of. (But if you do a bad job, you can end up with the same or worse performance, which I think is what you're talking about.)

Another possible meaning is that driver overhead arises from an API that doesn't map closely to the hardware, meaning that the driver has to do a bunch of work to translate your API calls to something that the hardware understands. You can reduce the total amount of CPU work just by changing the API to be a more natural fit for the hardware (although you also have to make the appropriate changes in your program to match the new API). The total complexity is reduced, not migrated from driver to program.

And finally, there's the AZDO OpenGL model, which is largely about stripping out the driver APIs totally. Persistent mapped buffers let you write to memory without any driver code getting in the way: "zero" overhead instead of "minimal" overhead.