MTKView Drawing Performance
问题 What I am Trying to Do I am trying to show filters on a camera feed by using a Metal view: MTKView . I am closely following the method of Apple's sample code - Enhancing Live Video by Leveraging TrueDepth Camera Data (link). What I Have So Far Following code works great (mainly interpreted from above-mentioned sample code) : class MetalObject: NSObject, MTKViewDelegate { private var metalBufferView : MTKView? private var metalDevice = MTLCreateSystemDefaultDevice() private var