title: Why are touch events destroying my Android framerate?
body: <p>I'm developing a game for Android. It's got a lot going on but is running reasonably smoothly. That is, of course, until the user touches the screen.</p>
  
  <p>While they're touching it, <code>onTouchEvent</code> is called (with <code>action = ACTION_MOVE</code>, <code>x = 0</code> and <code>y = 0</code>) roughly once every ten milliseconds at what appears to be a fairly high priority, as it absolutely obliterates the framerate. As soon as the touch ends the framerate returns to its nice state.</p>
  
  <p>I've tried</p>
  
  <ul>
  <li>having <code>onTouchEvent</code> handle input for the game as usual</li>
  <li>having <code>onTouchEvent</code> return <code>true</code> straight away</li>
  <li>not having <code>onTouchEvent</code> implemented at all</li>
  </ul>
  
  <p>The problem persists in all three situations.</p>
  
  <p>Has anyone encountered this? Is there a way to reduce the rate at which <code>ACTION_MOVE</code> events are generated, or to ensure that they're only generated when there is actual movement, or use a polling method that just gets the current location of the touch? Or even just a way to disable it entirely?</p>