In my wallpaper service the receiving of touch events costs 20fps.

1. To test the difference I tried to not activate the touch events (also 
tried to call with false) with:
void 
android.service.wallpaper.WallpaperService.Engine.setTouchEventsEnabled(boolean 
enabled)
...this doesn't help as the events are received regardless in the following 
method...
void 
android.service.wallpaper.WallpaperService.Engine.onTouchEvent(MotionEvent 
event)

2. I'm curious about the 20fps drop as my rendering thread is a separate one 
from the main thread receiving the touch events. Even if I completely ignore 
the touch events in the main thread (thus never forwarding them to the 
separate rendering thread), the fps still goes down. This indicates, that 
the overall performance gets pushed down.

The current device is Nexus One with Android version 2.3.3. The application 
is linked with Android 2.2. The fps goes down that dramatically ONLY if the 
wallpaper is set as current wallpaper in the home screen, there is 
absolutely fps hit in the preview.

Is there something else to do for disabling the touch events? Also, what can 
be done to alleviate the touch event fps killer?

-- 
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