Low-level mysteries of pipeline barriers
summary
Explains exactly when to use pipeline barriers, subpass dependencies and events to avoid stalls: use image barriers to transition from linear to optimal tiling before copies, wait with transfer -> fragment stage masks so shader sampling sees the copied data, and use dependency by region for tile-local reads to keep work on-tile. Shows real fixes (change stage mask from wrong bits to COLOR_ATTACHMENT_OUTPUT, batch barriers) that cut frame time on Lineage 2 Revolution and Final Fantasy 15 ports.
AI-written summary · about
chapters (16)
- 0:00Introduction and team intro
- 1:52GPUs are embarrassingly parallel
- 6:31Memory access and caching in GPUs
- 10:45What are pipeline barriers
- 15:22Framebuffer local dependencies
- 18:54Global synchronization with barriers
- 21:44Events for parallel work
- 23:13Fred takes over programming demo
- 24:23Vulkan synchronization basics
- 27:10Memory barriers and image layouts
- 30:24Copying data with pipeline barriers
- 33:10Batching and CPU overhead
- 33:53Subpass dependencies explained
- 37:48Semaphores and render passes
- 39:58Case study optimization example
- 41:47Final performance results
