Hey guys,
so im very very very close to finally release my app that i have been working on since december, i have made lots of progress thanks to these forums. Anywho, what i have been noticing is a problem with my game that causes it to start running choppy, in 2 second intervals. And the strange thing is that the issue seems to happen at random times. i am using director class to change around scenes, so if i die in my game or i replay the level, usually the level restarts just fine, but at random times the level starts with this problem that it starts playing choppy, if i leave the game and go into the main menu of my game, it performs fine, but if i go back into a level its choppy as it was. If i then restart my app completely it will run fine again until a random time when this issue comes back. I’m really not sure what to do, seems almost like a corona issue because its happening so randomly. I just wanted to see if anyone has any ideas or opinions of what might be causing this. thank you so much for your time. [import]uid: 19620 topic_id: 13763 reply_id: 313763[/import]
Are you removing everything that needs removing when you change scenes? Cancelling timers, removing runtime listeners, cancelling transitions, etc?
It sounds like something isn’t getting cleaned up properly. [import]uid: 52491 topic_id: 13763 reply_id: 50574[/import]
I was gonna say what @peach said but also you might wanna shut down apps running in the background if you are using an iOS device. Another thing I’ve noticed is that when Openfeint or GameCenter sends data the game/app can become a little “choppy” during that phase. [import]uid: 13560 topic_id: 13763 reply_id: 50588[/import]
Hey guys,
yea this is actually for android, i test it on my HTC incredible. I have been trying to double check everything, such as runtime listeners, and timers and i think to have them all, i have more time today so im going to triple check… Its strange though because i can sit and play a level, restart that same level, and repeat this process several times and its random on what restart that its starts to act up. I know im not giving much to work with here, just wanted to see what you guys thought, thanks for your thoughts. [import]uid: 19620 topic_id: 13763 reply_id: 50599[/import]
Just a few quick clean up questions.
So for my display objects, all i need to do is “display.remove()” then i can set it to NIL. Then when i run collectgarbage(), will that fully clean up that object? just want to make sure im doing that correctly.
And it is true that i can do the same to a display group and all the child objects are automatically removed and nil’ed and cleaned up correct?
One other question, if i have physics joints, when i remove and NIL the objects the joints are attached too, does this automatically destroy the joints?
These questions would be helpful to have the answers too so i can know im cleaning up properly. thanks [import]uid: 19620 topic_id: 13763 reply_id: 50601[/import]