~/talk

UIImageView vs Metal

Talkat try! Swift Tokyo 2018 · 2018-03-01..03-03· [swift]

Built a small MetalImageView wrapper and benchmarked it against UIImageView in a table view using large images. Early CPU-only timing shows 0.02–0.05 ms per render (10–20× faster), but correct end-to-end timing including GPU shows 40–200 ms and visible stutter. Using Instruments Metal System Trace reveals a 20–500 ms texture load hotspot; fixing it by merging resize+render into one command buffer and caching MTL textures removes round trips and restores smooth scrolling. Key takeaways: UIKit already uses Metal, measure GPU time, avoid CPU/GPU round trips, cache GPU resources.

AI-written summary · about

  1. 0:00UIImageView vs Metal
  2. 2:09Framebuffer and GPU roles
  3. 4:26CPU vs GPU processing
  4. 6:17MetalとOpenGLの違い
  5. 7:43Metal wrapper class proposal
  6. 8:45Performance test overview
  7. 10:35Measurement contradictions and causes
  8. 11:23CPU-GPU processing flow basics
  9. 14:00UIKit leveraging Metal
  10. 15:49GPU processing time importance
  11. 16:37Metal System Traceによる分析
  12. 18:54Resize and rendering optimizations
  13. 21:31CPU-GPU processing efficiency
  14. 22:38Texture cache importance
  15. 24:07Memory layout for resources
  16. 25:13Summary and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.