Well I wouldn't say that it's Dalvik itself, but rather the internal
java code for google apps like the sms messaging app, and the gmail
app, or any other service that runs in the phone.
I don't think that a ~200ms lag every 4 minutes is that bad, but I
guess it would depend on your type of game.
I'd recommend running your app in the emulator, I don't get any GC
runs when it's idle.  At least from the bit of testing that I did.
I know you won't be able to play your game in the emulator, but you
can at least verify no GC runs happen in your code.

However, I guess if you make enough noise, someone might try to fix this.
If anyone has a fix for this I'd be interested to hear it as well.

On Tue, Jun 22, 2010 at 3:37 PM, Neilz <[email protected]> wrote:
> Yes, I think that's what's happening here too.
>
> I used DDMS, and while I'm not 100% sure I'm reading it right, it
> would appear that the allocations that are taking place are related to
> Dalvik, and totally unrelated to my own code.
>
> On Jun 22, 11:22 pm, Peter Eastman <[email protected]> wrote:
>> I've also seen this sort of stuttering, which in my case is clearly
>> related to gc, since a message appears in the log saying that a gc was
>> just done whenever it happens.  I've used DDMS to identify where
>> garbage is being produced, and have completely eliminated all
>> allocations in my own code.  By I'm still seeing allocations in code
>> internal to Dalvik itself, and I haven't found any way to get rid of
>> them.
>>
>> Peter
>
> --
> 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



-- 
http://diastrofunk.com, http://developingthedream.blogspot.com/,
http://www.youtube.com/user/revoltingx, ~Isaiah 55:8-9

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