I have recently bought the Dead Trigger game on my phone. Upon factory 
resetting my phone, if I start playing the game straight away, I will have 
a very nice lag free experience. However, once I started signing in to my 
Google Talk, Google Maps, Google Drive, and installed Tasker, the game will 
start to lag, especially when there are a lot of zombies on the screen.

While waiting for Nexus 7 to be available here so I can play the game 
better, I went to investigate what's the main reason for Dead Trigger to 
lag, I just fired up the game, and just watch the output of adb logcat.

I noticed that once the game is up and running, the lowmemorykiller kicked 
into action quite a lot, there's process xxx has died messages all over 
logcat, followed by "Start proc xxx" and "scheduling restart of service 
xxx" messages:

I/ActivityManager( 250): Process com.google.android.gsf.login (pid 18553) 
has died.
...
I/ActivityManager( 250): Start proc com.google.android.gsf.login for 
service 
com.google.android.gsf.login/com.google.android.gsf.loginservice.GoogleLoginSer 
vice: pid=18790 uid=10012 gids={3003, 1015, 1028, 1007, 2001, 3006}

I/ActivityManager( 250): Process com.google.android.apps.maps (pid 18716) 
has died.
W/ActivityManager( 250): Scheduling restart of crashed service 
com.google.android.apps.maps/com.google.googlenav.prefetch.android.PrefetcherSe 
rvice in 20000ms

This died and Startproc/Restart process repeated throughout a game play.

What I don't get is that, doesn't this causes the process/service to be 
killed and restarted, killed and restarted, when I am having a foreground 
app that needs a lot of memory?? I have digged into the code for 
ActivityManagerService.java, and it looked like it have no way to tell 
which process is killed by the lowmemorykiller and which process crashed.

Other than uninstalling the apps (I definitely need Maps, Talk and Tasker), 
is there any other way to tell the ActivityManager not to restart any of 
the services until I am done playing the game?

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