SpriteKit/Metal memory leak with nothing happening

夙愿已清 提交于 2020-03-21 20:29:35

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!