ios - SpriteKit Memory Leak on static Menu scene -
im experiencing memory leak on static menu scene, appears happens on every scene, game scene static menu/gameover. memory appears deallocated correctly (and it's reduced when scene gone).
those static scenes not conatins update callback defined. it's setup in didmovetoview , inside there couple sklabelnodes , skspritenode allocated spritenodewithimage.
i have tried use dealloc monitor if scene got's deallocated correctly, , appears seems it's not source of issue.
browsing google pointed me other threads created on stackoverflow spritenodewithimage texturewithimage may cause -memory leaks -weird error "cuicatalog: invalid request: requesting subtype without specifying idiom"
so have tried create uiimage imagenamed , put in texture , use in sktexture, has removed cuicatalog error (which anyway, seems stupid message did not been removed apple - can confirm ?) according memory leaks didn't @ all, , anyway in scene being created once on beginning have no idea why memory keeps growing , growing 0,5mb per sec.
looking forward tips.
best regards
actually have found source of problem. seems debugging physics makes huge memory leak
skview.showsphysics = yes;
it's not big problem since happens while debugging when showsphysics=yes.
but know anyway.
Comments
Post a Comment