Skip to main content
Inspiring
June 7, 2012
Answered

severe frame rate drop when touching screen iOS

Hi there,
I have a simple app with 2000 clips scrolling up the stage with a bitmap in each. They are moving around blazingly fast at 60 fps.
But the moment I even put a finger on the screen the fps drops to around 40 if i move my finger it drops down to 30 fps.

is this normal behavior  ?

there are no event listeners or anything like that.

thanks 🙂

This topic is closed to new replies. Start a new post to keep the conversation going.
JoenesyCorrect answer
Participating Frequently
June 15, 2012

I did a couple of things that improved the framerate:

mouseEnabled = false;

mouseChildren = false;

no movieclips, only bitmaps, maybe sprites.

if you use movieclips for controls make sure they are not nested in a different movieclip that covers the whole screen. (avoid nesting as much as possible)

remove any text_input text fields

7 replies

Participating Frequently
June 14, 2012

I have the exact same problem.. was wondering the same. My objects are stationairy, except for 5 object.. constant 60fps.. but when touching screen framrate drops, more fingers is even worse framedrop.. I'm at AIR 3.3, iphone 4.

Translate
Inspiring
June 15, 2012

yep same thing,
Check this out :
http://stackoverflow.com/questions/3493802/as3-cpu-performance-with-100-movieclip-copies
I guess its because even though we aren't listening for events they still dispatching events ??

Try mouseEnabled=false maybe ? if that doesn't work try converting them to bitmaps or shapes?

Translate
JoenesyCorrect answer
Participating Frequently
June 15, 2012

I did a couple of things that improved the framerate:

mouseEnabled = false;

mouseChildren = false;

no movieclips, only bitmaps, maybe sprites.

if you use movieclips for controls make sure they are not nested in a different movieclip that covers the whole screen. (avoid nesting as much as possible)

remove any text_input text fields

Translate