r/GraphicsProgramming • u/jrkirby • 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?
3
u/__Cyber_Dildonics__ Mar 08 '15
I think you misunderstand what is happening. In old school openGL you would do a C function call for every vertex you wanted to draw. Graphics cards got faster and eventually they were able to draw a triangle so fast that just calling 9 functions was too slow and caused too much latency.
The evolution of this is that vertex buffers were put to the card so that one function call in C could draw tens of thousands of polygons.
Now we are at the point where even function calls that do lots of work like this are not enough, with on major reason being that in openGL they must all go in one thread - the thread that created the openGL context.
What these new APIs do is batch lots of calls, so one function in C can do lots of draw calls. This is what is meant by 0 driver overhead. Nothing is actually zero overhead, but APIs like this reduce the cpu load to something very small.