6 ms·
Can you describe how, specifically?
by pcwalton 10y ago
Can you describe how, specifically?
- pjmlp 10y agoHere is a NDA free presentation I can point to. http://develop.scee.net/wp-content/uploads/2014/11/ParisGC2013Final.pdf http://develop.scee.net/wp-content/uploads/2014/11/ParisGC20... Starts on slide 32 for the graphics part.
- pcwalton 10y agoAs I suspected, all of the features that I can see described here are in Vulkan. In particular, the first couple of slides pretty much identically resemble Vulkan's "elevator pitch". The presentation is from 2014, so when they claim "better than DirectX", they're referring to pre-DX12. It certainly doesn't back up your claim that it's "much better" than Vulkan.
- pandaman 10y agoWhat is the SRT equivalent in Vulkan if you don't mind me asking? What about DispatchDraw?
- Overv 10y agoDescriptor layouts are the equivalent of SRT in Vulkan. It is unclear to me what exactly DispatchDraw is for, because back-face and offscreen culling are standard features of any graphics pipeline.
- pandaman 10y ago>Descriptor layouts are the equivalent of SRT in Vulkan. I am not sure how. I do not use Vulkan, I use GNM. I asked this because implementing SRT does not seem possible in a platform independent API. So I checked the docs again and the descriptor layout is the same thing I remember - a set of bindings you manage through a bunch of API calls. On the other hand SRT is a plain c-structure. You pass a pointer to structure to a shader as a parameter. Exactly as same as you pass a structure to a function in C/C++. You don't need APIs to create sturctures, you can store them in a file, you can write them from another shader etc. etc. > It is unclear to me what exactly DispatchDraw is for, because back-face and offscreen culling are standard features of any graphics pipeline. It's pretty clear what is it for if you actually wrote real-time graphics. JFYI - it's "index shader" essentially. Having control over indices you can implement much faster culling.
- pcwalton 10y ago> It's pretty clear what is it for if you actually wrote real-time graphics. JFYI - it's "index shader" essentially. Having control over indices you can implement much faster culling. This sounds like indirect draw, which has been standard for years and is supported by Vulkan.
- pandaman 10y agoIndirect draw is a draw, which instead of direct arguments (number of indices, number of instances, offsets) takes an address of a structure with these parameters. It does not create indices. You could use it for culling but only on the level of a whole draw. DispatchDraw generates indices in a shader and can do a triangle level culling among other things.
- pcwalton 10y ago> It does not create indices You combine it with a Compute Shader to create the indices. Indirect draw is how you make those indices available to the drawing functionality.
- pandaman 10y agoSure, it's possible, but it would be much slower(just for going off chip, not taking synchronization into account) than just letting all triangles through so it has no practical application. Again, even if this had been practical, it does not make DD same as ID. You can draw anything with OpenGl 1.0 but it does not make it the same API as Vulcan, does it?
- pjmlp 10y agoI can only give you what isn't under NDA. Like another user has commented, the PS4 low level API is like Assembly in terms of hardware control, whereas the higher level, is is similar to Vulkan in API surface, is a bit more like C in terms of control. Another area where the PS4 APIs are better is infrastructure, meaning graphical debuggers, libraries and OS integration. Also the amount of production code experience that both Sony and licensed developers have with the whole stack. So why would Sony throw all this away, just to make some Reddit and HN users happy, that wouldn't anyway make games for the PS4?
- sangnoir 10y ago> So why would Sony throw all this away, just to make some Reddit and HN users happy, that wouldn't anyway make games for the PS4? They won't have to discard their API - they can support Vulkan and their current API and make everyone happy. In this case 'everyone' includes people who would like to port their Vulkan games to PSNext as well as Vulkan-based graphics/game engines.
- pcwalton 10y ago> Like another user has commented, the PS4 low level API is like Assembly in terms of hardware control, whereas the higher level, is is similar to Vulkan in API surface, is a bit more like C in terms of control. And as I've argued here, that isn't a plus. I don't believe that game developers are producing better GPU assembly than an optimizing backend can. > Another area where the PS4 APIs are better is infrastructure, meaning graphical debuggers, libraries and OS integration. That isn't part of the API. That's part of the tooling. > Also the amount of production code experience that both Sony and licensed developers have with the whole stack. That isn't part of the API either. > So why would Sony throw all this away, just to make some Reddit and HN users happy, that wouldn't anyway make games for the PS4? Er, nobody is talking about "throwing all of this away". I'm simply questioning your claim that Vulkan is worse than what Sony created for the PS4.
- bitbiter 10y agoVulcan, DirectX 12, and Metal are basically like C. They're made to be as low level as possible while maintaining hardware portability. With the PS4 hardware is locked so their API is more like assembly (or maybe inline assembly in a C program) where you're doing specific hardware operations. They also provide a second graphics API that wraps that one, working basically at the same level as Direct3D 11 or OpenGL. This article might be of interest: http://www.eurogamer.net/articles/digitalfoundry-inside-playstation-4 http://www.eurogamer.net/articles/digitalfoundry-inside-play...
- shmerl 10y agoIt's not better, it's lower level than even Vulkan, and Vulkan itself is already very low level. Sure you can go as low as hardware specific machine code in theory. The question is whether it's something needed, or it's an overkill for most intents and purposes. Consoles had a distinct need for assembly like level APIs - their hardware had very long update cycle (7+ years), so it used to quickly become outdated, and developers had to go to insane lengths to squeeze performance out of it. It's not only very costly to do it, it can't be reused (it's all platform specific). Currently consoles are moving away from these long cycles (under competitive pressure), so need for that will be less as well.
- zanny 10y agoThere is also the fact that in modern CPU-side development you will find it almost always is a bad idea to try to drop to assembly micro-optimization. Your compiler is going to almost always do a better job optimizing the general case into an optimal set you won't be able to easily implement in raw ASM, especially when you start using vectorization instructions. The same concept applies to Vulkan / DX12. The hardware manufacturers will know better than any developers about per-device shortcuts to put into their drivers, and if they do not need to maintain millions of LOCs of OpenGL state machine and validation layers they might find time to optimize the shader compiler to be in the same class of "the compiler is smarter than you" reasons not to use a hard ASM language. In the case of consoles, all of them are using AMD based graphics, and when the next generation comes out they will all be on a similar cadence of GCN. I cannot imagine in what world an optimized AMD SPIR-V compiler that AMD already needs to write for the desktop and mobile won't beat 99% of developers on both the Sony / MS / Nintendo and 3rd party sides trying to microoptimize RadeonSI ASM.
- shmerl 10y ago> I cannot imagine in what world an optimized AMD SPIR-V compiler that AMD already needs to write for the desktop and mobile won't beat 99% of developers on both the Sony / MS / Nintendo and 3rd party sides trying to microoptimize RadeonSI ASM. Good point. Today not to provide Vulkan on consoles is a political diversion (to make cross platform development more costly by taxing developers with doing the same thing multiple times).