Could someone please post a snippet on how to do this?
Jiri
Dianne Hackborn wrote:
And the solution is NOT to increase your thread priority so you can
better fight with the system. You will get better results by putting
in the sleep so you aren't fighting.
On Thu, Aug 13, 2009 at 3:32
E.g. when you handle the ACTION_MOVE in your touch-handler, just do a
Thread.sleep(20) before your method returns.
If you don't have a touch-handler in your app, just register one and
only do the Thread.sleep(20) when handling the ACTION_MOVE.
On Aug 14, 3:32 am, Jiri
I see, thanks a lot.
Jiri
Streets Of Boston wrote:
E.g. when you handle the ACTION_MOVE in your touch-handler, just do a
Thread.sleep(20) before your method returns.
If you don't have a touch-handler in your app, just register one and
only do the Thread.sleep(20) when handling the
Thank you all for replying.
Sleeping in onTouchEvent is an interesting idea, I will try that.
But results in my first post where obtained while *not moving* finger
at all. Well, maybe there are fluctuations in determining my finger's
position, and events were arriving nevertheless. I will check
On a touch screen it is basically impossible to not move your finger.
On Fri, Aug 14, 2009 at 1:14 PM, Dmitry.Skiba dmitry.sk...@gmail.comwrote:
Thank you all for replying.
Sleeping in onTouchEvent is an interesting idea, I will try that.
But results in my first post where obtained while
The recommendation for this is to sleep in the touch event handler.
The system will send you touch events as fast as you can process them.
If you artificially decrease this by sleeping in the handler, you will
allow more processing time for other threads which are theoretically
running your
For me a sleep of about 20millisecs was most effective.
Note that this only works if your opengl render-thread is a seperate
thread (not the main gui-thread).
On Aug 13, 6:32 pm, Justin (Google Employee) j...@google.com
wrote:
The recommendation for this is to sleep in the touch event handler.
And the solution is NOT to increase your thread priority so you can better
fight with the system. You will get better results by putting in the
sleep so you aren't fighting.
On Thu, Aug 13, 2009 at 3:32 PM, Justin (Google Employee)
j...@google.comwrote:
The recommendation for this is to
8 matches
Mail list logo