Getting Serious with Vulkan
summary
A Serious Engine Vulkan port is running in games and VR and shows platform-dependent speedups: about 2x on Android, roughly 20–30% on desktop and parity with D3D11 in many cases. Four tested approaches to update uniforms conclude that shared-host then batched copy to device at end of frame is fastest off Android, while host-shared direct writes work best on Android. Key pain points are driver bugs, validation-layer false positives, ring-buffer spillover corrupting constants, slow pipeline creation, occlusion-query semantics, and heavy engine rework to precreate descriptor sets/PSOs and move recording to worker threads.
AI-written summary · about
chapters (17)
- 0:00Intro
- 1:58Vulkan implementation
- 6:42Constant (uniform) and dynamic geometry buffers this is one of the things that could noticeably! impact Vulkan performance 4 methods for updating (selectable via console variable) - 1. update directly from system memory via vkCmdUpdateBuffer 2. have constant buffers in host/shared memory and update directly
- 9:28BUG!
- 11:16RenderDoc!
- 20:14Native Vulkan multi-threaded renderer still WIP!
- 21:46MT renderer, what if...
- 24:35OK, so 3 cores is something we can count on now how much slower is the recording of command buffers, again? replaying is much faster
- 26:36II. Present (cont'd)
- 28:42Stuff that our Direct3D 11 support already has
- 29:26Precreate everything!
- 30:58More! change high(er)-level graphics/rendering engine to match Vulkan "binding" style
- 34:42Optimize drivers! (we've seen Vulkan drivers being slower than OpenGL, yes, believe me!)
- 38:51Occlusion queries
- 40:08Native multi-threaded renderer
- 41:28Shader compilers (from SPIR-V)
- 42:30And a special rant for Android platform
