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

enter image description here

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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -