Weird bug in iOS game when other apps are open...?
I've been working on a game for iPhone/iPad in AS3 and after lots of tweaking I'm finally getting a usable 30FPS framerate. Gameplay coding is mostly done, but I'm seeing a problem in testing which appears to be related to what background apps are in the dock...
Test the game normally and I get a nice stable 30fps. Quit, then open 2 or 3 other apps (so they are "suspended" in the background), then try again and I get 0fps... Quit and close those background apps (by double-tapping the home button and closing them) and start the game again and I once again get the 30 FPS.
Now everthing I've read seems to suggest that background apps shouldn't be a worry - that iOS should auto-close them if necessary... does anyone know what I can do to handle this, of what I can test for/change to try and fix the problem?
I'm using AIR 3.2, testing on an iPod Touch (retina) which is running iOS 4.3.5
I have considered upgrading to iOS 5 to see if that fixes the problem, but if it does it will mean the app can't be used on older devices? I have access to an iPhone and an iPad both running 5.1 so I'll try that tomorrow.
For testing I have been using an AS3 stats script up to today, but just confirmed these results using the Core Animation tool in Instruments on a Mac and see that in fact the fps does spike very briefly (maybe half a second) before dropping to 0. Game works perfectly when testing on the computer - problem only ever occurs when installed in the device. Finally I've used the remote debugger, and no errors are being traced out!
Any help/advice here would be most appreciated before I tear my few remaining hairs out
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Apple Seeds iOS 5.1 Beta and Xcode 4.3 to Developers||FlashMove||iOS Programming using XCode, Unity and Corona||1||03-18-2013 02:14 AM|
|Tech Apps class Flash CS3 Imageslider && Pacman Game||PifProblematic||Newbies||3||09-04-2009 03:49 PM|
|Open Source Snowball Fight Game...||jderosa3||Newbies||0||10-14-2008 02:40 PM|
|Text Based Game - Already Built & Established - At Least $100 a Day||JoRd||Work/Job Opportunities||1||10-12-2007 10:53 PM|
|$$$ We're paying to sponsor game designers! $$$||Westech||Work/Job Opportunities||7||03-27-2007 01:09 AM|