OK, I measured how many moves per sec the view gets when I hold my finger as still as possible. The result is surprising (I expected more and was hoping that's the reason for the slow down) and is about 70 moves/second. I still don't get why the view gets 70 moves/sec if I'm not moving my finger at all :( Can anyone shed some light on why touching the device's screen and holding the finger on it will decrease the speed of my app as much as *twice*?
Thanks! On Fri, Jan 9, 2009 at 2:40 PM, Stoyan Damov <stoyan.da...@gmail.com> wrote: > Hi guys, > > I'm developing a touch-controlled game and have noticed that when I > touch the screen and don't lift my finger off it the game's frame rate > drops in *half*. > My touch-related code does nothing but record the touch event, that > is, setting a few members of an object. No locking, no nothing. > > I've noticed that a long time ago and wasn't very concerned because > even with this unreasonable frame drop the game plays at > 25 fps and > is still visually pleasing, but it doesn't look as good as when > playing at full fps. > I'm wondering if anyone knows (especially guys who have developed or > are developing similar games) whether there's something I can do to > make this performance problem go away. > The only thing I've figured out so far is to disable the long press on > the surface view (thinking that Android itself is making something > funny if long press is requested) but it didn't make any difference. > > Thanks! > Stoyan > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---