问题
I have a memory leak that I can't seem to trace. Instruments sees it, and reports it as jet_buffer_Metal, but I don't know what that is pointing me to specifically.
It happens regularly. I have tried everything. Removing all my nodes, removing physicsBodies, but it still seems to be there. I don't have anything in Update or any other of the game cycle methods. I can post all that code there, but really I only add two nodes, that can only move on touch. I don't touch the screen, and the memory leak is still there.
One of my nodes has a PhysicsBody of circleOfRadius, and I have heard there might be some leaks with those types before, but again, the leak is still there if I remove the node with that physicsBody.
Finally, I am getting this in my debug window:
<SKMetalLayer: 0x14ce28da0>: calling -display has no effect.
I have a hunch it is related, but can't find where it is coming from.
I am using an SKS file that is currently empty. The nodes are added in code for now.
来源:https://stackoverflow.com/questions/37950822/spritekit-metal-memory-leak-with-nothing-happening