Hello!
I really need your help.
We are making an application with about 10-12 screens. We are using storyboard to flip these screens back and forth. Each screen has a background image (about 1440*768 size), some items on it (several sprites for moving objects etc) and sounds (3-4 sounds on each page 1-2 secs long each). The problem occurs when I’m flipping these screens and when I’m performing some transitions of these objects on ther pages (simple movements back-forth etc). So as the result app stops responding randomly and crashes. I’ve made some invewstigation and my guess is that it’s about memory usage - I’ve check how much memory simulator uses and even in Windows it’s jumps significantly - I presume something similar happens on devices as well (I’ve checked on two Android phones and a tablet).
In order to fix this I’ve made following imporvements:
- Once I’m hiding the page all objects and sounds are disposes explicitly (in scene exit event)
- Once page is fliped the old page is disposed excplicitly
- Also I’m trying to unload all the sounds on each page when the page is about to be hidden.
But all this stuff didn’t solve major problem - it still crashes after some time of app usage.
I can fix this by turning all sounds off - in this case it uses much less memory. But for us it’s not an option - we want to have at least some music on background and some even short sounds on different actions.
So your HELP is urgently needed! Did anyone face such problems? Any ideas how to solve it? It REALY disappoints. I’m event thinking that storyboard pages transition could eat the resources so I would then make screens flipping manually. But I would really like to use this functionality.
Thank you! [import]uid: 67485 topic_id: 26771 reply_id: 326771[/import]