Wednesday, October 31, 2012

Re: [android-developers] Re: Handler - Runnable Performance Issues at 40Hz

It's not an RTOS thing, it's more of a Java thread scheduler thing, so this happens closer to the framework level.

kris

On Wed, Oct 31, 2012 at 12:05 PM, marcpolo <marc.armstrong89@gmail.com> wrote:
I used java.util.Timer and TimerTask instead of the Runnable and this resulted in much improved performance, allowing me to schedule the task at 40Hz (on average).

As expected, given this is not a RTOS, the cycles vary +/-1-2ms, however I the the average cycle time is 25ms as desired.

So, it is shown that the Timer performs better than Runnable for scheduling tasks at frequencies around 40Hz (on the Galaxy S3).

Thanks very much for your help.

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate