96 points · by alexvoica · 11y ago · 42 comments
The blog post only somewhat touches on it but I believe a key part of why this is so much faster is that it sounds like Vulkan is actually exposing tiled-based rendering. Note that PowerVR is a tile-based deferred renderer under the hood[1]. So if the app is doing the work of chunking draws into tiles instead of the driver trying to extract that from the OpenGL stream that's going to be significantly more efficient.
1: http://blog.imgtec.com/powervr/a-look-at-the-powervr-graphic...
The demos is slightly unrealistic yes and you could use multi draw indirect. But you would not be able to use multiple cores with that. As for moving objects, you would really just need to handle the objects moving between tiles and pass the animation matricies in the right places. It was thought about, but we didn't have time to implement.
[1] http://arstechnica.com/gadgets/2015/08/android-to-support-vu...
...Because that sounds like it could be a really long wait, if it happens at all.
I guess it could work for the gaming console market?
The only place you probably won't see a quick uptake is with mobile GPUs, since they essentially never receive updates.
[1] https://en.wikipedia.org/wiki/PowerVR#Series_6_.28Rogue.29
If mobile GPUs as a class almost never receive updates, this will slow adoption of a new low-level way of using them, regardless of a few scattered exceptions to the "Mobile GPUs never receive updates" rule. :)
But as it has support from NVidia and AMD that won't be a problem:
https://www.khronos.org/news/press/khronos-reveals-vulkan-ap...
(See the "Industry Support" section.)
As I understand it, the goal is to move the API closer to the hardware. Hopefully so close that the driver will be very thin. There are plenty of software developers out there who can implement an OpenGL driver in Vulkan as well as the employees of AMD and Nvidia, I would think.
Having to rely on companies to update their drivers or open the source code has been a major pain point for a long time. Especially on mobile where there are many custom chips from different companies.
Normally, drivers try to batch up a lot of work, but being really subtle about things (calling glGet, for instance), you can accidentally cause a blocking flush of your entire state.
Making applications fast involves trying to defer and hack around this state machine as much as possible, while maintaining correct behavior. As such, you end up with tons of subtle, hard-to-find interaction bugs. I've debugged and fixed some of these in a certain mobile OpenGL driver we're deploying on our platform we licensed from the vendor.
This is independent from other tricky bits of OpenGL ES, like the shader compiler front-end choking on perfectly valid GLSL, because there's no compliance tests for any of it.
---- For Vulkan, we’ll not only develop similar tests for use in the Android CTS, but we’ll also contribute them to Khronos for use in Vulkan’s own open source Conformance Test Suite. ----
[1] http://android-developers.blogspot.co.uk/2015/08/low-overhea...
I'd say in the high 99.99999ies
There is also a demo and sdk for Mantle here: https://github.com/Overv/MantleHelloTriangle