Metal Memor Leak

Asked by At

I've got a leak in my metal pipeline and I don't know where...

I've tried Malloc Stack Diagnostics and it pointed at the creation of the metal device and the app delegate. So not really sure where to look.

Any debug tips?

memory leak malloc stack leak instrument

I'm on to something, the leak is pointing at my command buffer here.

I'm switching between some threads, mainly back to main from some completion handlers. What thread should I be doing the render setup on?


I'm testing to move all my render setup to a background thread:

let queue = DispatchQueue(label: "render", qos: .userInteractive, attributes: .concurrent, autoreleaseFrequency: .never, target: nil)
queue.async {
    // Render Setup

0 Answers