Bringing Vainglory to Vulkan
summary
Port of Vainglory to Vulkan targets Galaxy S7 (Adreno and Exynos) and keeps 60 fps while reducing power and memory: 5% power drop overall and up to 30% in worst scenes. Key fixes include matching Java surface format to Vulkan surface, obeying std140 buffer layout to avoid padding bugs, avoiding premature destruction of Vulkan objects (pipelines/shaders) while GPU may still use them, choosing FIFO present mode over mailbox to prevent wasted GPU work, and using RenderDoc, ARM DS‑5, Snapdragon profilers, systrace and validation layers from day one.
AI-written summary · about
chapters (25)
- 0:00Intro
- 0:14Bringing Vainglory to Vulkan - Introduction Tips & lessons learned • Performance optimization tips
- 0:35Bringing games to Vulkan • We support game companies & major engine developers • Port games to Vulkan such as HIT, Vainglory, NFS etc...
- 0:59Our team
- 1:13What is Vainglory? * 3-vs-3 multiplayer online arena battles (MOBA) • World's largest mobile eSport
- 2:08OpenGL ES fallback • Check for Vulkan available in onCreate() Activity callback • Fallback to GLES if Vulkan isn't present or version is 1.0.11
- 3:12Swapchain Triple Buffer - Google Project Butter (since Android 4.1 Jelly Bean)
- 3:50Swapchain: FIFO VK_PRESENT_MODE_FIFO_KHR
- 4:27Swapchain: MAILBOX vs. FIFO
- 4:52Swapchain: FIFO vs MAILBOX
- 5:27Swapchain Surface format
- 5:55Swapchain: Surface format • Java to native
- 6:43Pipeline: Crash on destroy
- 7:26Pipeline: Safe destruction
- 8:18Shaders: Memory alignment
- 11:09Uniform buffer: Tiling artefacts N
- 11:58Uniform buffer: Tiling artefacts • Option #1: Uniform buffer per-swapchain index Option #2: Swapchain index based offset in a single uniform buffer
- 12:47OpenGL ES vs. Vulkan: Type conversions
- 13:52Image layouts: Swapchain . Swapchain layouts
- 14:31Image layouts: Textures - VK_TILING_LINEAR vs. VK_TILING_OPTIMAL
- 15:26Image layout: Staging buffer
- 16:03OpenGL ES vs. Vulkan: Geometry sorting - Geometry sorting (vertex & index buffers) • Improves cache read/write efficiency . Can affect how work is submitted to the GPU . Some OpenGL ES drivers do this automatically
- 17:24Rendering quality: Blend precision - Blend precision
- 19:32Rendering quality: Texture compression
- 21:33VG: Vulkan Beta
