[racket] moby: problem running on-tick and on-acceleration simultaneously on android

From: Danny Yoo (dyoo at cs.wpi.edu)
Date: Mon Nov 22 22:10:25 EST 2010

> on my phone, when I use on-acceleration (updating every 0.1 seconds, as is the default in moby's phonegap fork) and on-tick (delay = 1sec) together, on-tick gets extremely slowed down, that is, completely unusable...
> Does anyone have a similar experience, and perhaps an idea what to do here?


I'll take a look at this as soon as I can!  (I'm going into a phase of
optimization to get Moby up to speed.)

It might be that the velocity calculations really need to be done from
the Java side of things to get the right performance.  If that's the
case, I can sketch out the extensions to Phonegap.  Moby is already
doing something like this, because the "on-shake" handler's doing a
kind of change-of-acceleration computation and the Phonegap extension
is generating the on-shake event.


Posted on the users mailing list.