Skip to main content
Participant
September 23, 2011
Question

Touch detection performance issue, iOS

  • September 23, 2011
  • 1 reply
  • 676 views

Hi,

I'm experimenting with compiling simple app to use on iPad. The problem is when I try using touch controls performance drops significantly. FOr instance I render 10 bitmaps and control one movieclips rotation with a slider. When I touch the screen and move my finger the application freezes for a moment, skips frames. The more rapid my swipes are the longer freeze is. Am I doping something wrong? Or maybe it's the iOS compiler/hardware taht is at fault here?

My first thought was that sampling touch input has very high priority and it chokes the player but I can't figure out how to lower the sampling rate so I can't check this theory.

Any kind of input is much appreciated I reached a dead end here.

This topic has been closed for replies.

1 reply

Inspiring
September 23, 2011

You know a mouse Event works the same as a touch event right? Touch events are used if you need to interact with multiple thing(I Think)

Uriello99Author
Participant
September 23, 2011

I need two touches (to control angle and acceleration) so I'm stuck with touch events.

But still - I found here on forums that mouse events are more robust so I removed everything and left only angle control implemented with mouse events. Effect is the same - whole app stutters when I touch screen in active area and move 'cursor'. This is very weird, I'm sure if there was a bug like this someone would catch it already.

Inspiring
September 23, 2011

Well flash cannot really compare to native applications, there are certain things we can duplicate but will never fully be the same. For example scrolling of any type on IOS Devices is allways 'choppy' So maybe this effect you are trying to achieve is one of those problems with flashh. Allthough i personally have never had a problem woth touch events or mouse events. May I see your code? (Private message it to me if you do not feel comfortable showing every one) there are a few performance things you can do to help imporve things.