ios - SpriteKit Game slows down -
i writing ios app. has tab bar controller , 1 of tab displays view has collection view - lists different mini games. when tap on particular item, show view consists of both uiview , skview. skview presents skscene of game play happens. there close button closes view , user collection view.
now works fine first few iterations - tap on item in collection view, shows game , can play without hassle , close it. animations smooth. if keep opening , closing view, becomes sluggish , animations slower , slower. makes other parts of app sluggish. clearing skscene, deleting children, removing actions. instruments don't show retail or memory leaks. not sure whats going wrong. please help!
okay, answering own question. never ever use nstimer in spritekit. problem in case. replacing update method fixed things me.
Comments
Post a Comment