Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-16-2012, 12:46 AM   #1
Senior Member
Join Date: May 2009
Posts: 254
Default [iOS] Memory Management Weirdness

I'm building an app for iPad in AIR 3.2 .. and am seeing some strange stuff going on.

.. when I fire up my app .. everything is butter. Everything runs smoothly. If I don't touch the screen for a few minutes.. then touch the screen. Everything is sluggish for 2 seconds and then back to normal.

Is this some sort of process thats putting my app to sleep or something ?

How can I get around this ?

Its not a good experience when you stop touching the app for a minute or so and then it is sluggish when you resume touching.

.. the weird part is that I found a fix by accident.

I was running a SWFProfiler to test my MEM usage... and noticed tha while the profiler is running ... My app stays alive and perfect the entire time the profiler is running.

My framerate never drops below 60fps ...

So now my question is ... What could I put in my app that is lightweight that can keep my app active ? Whats this profiler doing that is keeping everything running smooth and preventing the app from sleeping. ?

.. this is driving me absolutely crazy! ..

I've tried using a simple EnterFrame script to replace this Profiler .. thinking maybe that would stop this behaviour from happening. No dice.

What is it about the profiler that is making my app run amazingly fast at all times ?

The one thing I hate about AIR is how it handles memory... and the tools for monitoring it.

Can anyone see any issues if I just leave this profiler in my app ( hidden ) and running ? Not an ideal thing to do ... but its keeping my app running without sluggish behaviour.
Applauz is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 04:27 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.