It's actually a conversion from a J2ME game and not one that otherwise
requires a lot of performance.  I have tried using wait() and notify()
as suggestion in the thread you mention but i have found that since i
am using postInvalidate() to repaint the View then it sometimes skips
painting frames.  I imagine this is because the UI thread is wait()ing
when the message comes in to repaint.


On Mar 26, 6:14 pm, Jon Colverson <[email protected]> wrote:
> On Mar 26, 1:29 pm, "Jonathan Fisher" <jonathan.fis...@runestone-
>
> games.com> wrote:
> > I am having a problem with thetouchscreenin that whenever thescreenis  
> > touched, it causes significantslowdownbecause of the large number of  
> > callbacks that are being made.  I have read in this group about throttling  
> > the UI thread, but this does not seem a good solution and i can't believe  
> > there isn't a better approach?
>
> What is your application? In my game I wanted onetouchevent per
> frame and I got good results by synchronizing the game thread with the
> UI 
> thread:http://groups.google.com/group/android-developers/browse_thread/threa...
>
> (Apologies if you've seen that post already.)
>
> --
> Jon

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to