News for hackers. Stuff that matters.
Re:After the iPhone 4S, Android just feels wrong by masklinn on Friday October 21, 2011 @03:50PM (#3141359)
> Comparing last year's Android with this year's iOS?

You could make that comparison using any iOS and any iPhone combination apart from iPhone 3G + iOS 4. It's not new to the 4S, although the 4S probably pulls even further ahead, this issue has been a recurring theme in Android phone reviews ever since the first Android phone was released.

Re:After the iPhone 4S, Android just feels wrong by chugger on Friday October 21, 2011 @04:41PM (#3141589)
I'm amazed no one's mentioned this yet. it's not just hardware acceleration that's the problem with Android. it's the garbage collection constantly running in the background that's causing some of the performance issues and lag. Now with ICS I read that it will allow the garbage collector to run on a different core from your application. that's definitely going to improve performance, but the overhead is still there. No wonder Android smartphones need 1.x GHZ and 1GB of RAM. Android needs it.
Re:After the iPhone 4S, Android just feels wrong by ZeroGravitas on Saturday October 22, 2011 @03:44AM (#3143103)
The Android devs mentioned this themselves in the very first comment on the bug about turning on GPU acceleration[1]. But the internet decided that GPU acceleration was the silver bullet, and now it's been turned on they're surprised that it's not.

And this is somehow further evidence of Google's incompetence (and/or lack of taste) rather than just the obvious result of a bunch of engineering tradeoffs that, if you look at Android marketshare and Google's resultant influence on the future of the web, seem to have worked out quite well for them.

[1] http://code.google.com/p/android/issues/detail?id=6914#c1

Re:After the iPhone 4S, Android just feels wrong by chugger on Saturday October 22, 2011 @05:39PM (#3144388)
What Google should've done is disable the garbage collector in Android/Dalvik the same way Apple did in iOS/Obj C. I don't know whether it's lack of foresight or incompetence on the part of Google, or maybe they were in a hurry to launch Android they didn't have time to re-architect the thing. Garbage collection exists in MAC OS X/Obj C btw.
Re:After the iPhone 4S, Android just feels wrong by nitrogen on Friday October 21, 2011 @06:01PM (#3141911)
No wonder Android smartphones need 1.x GHZ and 1GB of RAM. Android needs it.

The side effect of having all that extra CPU is that, when not running the core Android UI (e.g. a game written mostly in native code), a lot more power is available to developers.

Re:After the iPhone 4S, Android just feels wrong by chugger on Friday October 21, 2011 @06:17PM (#3141962)
garbage collection is not limited to the UI. Games, etc. everything's affected by this. this is partly a Java "issue".
Re:After the iPhone 4S, Android just feels wrong by ibisum on Sunday October 23, 2011 @05:14AM (#3145674)
If you write your game properly using the NDK you won't incur any GC at all. Its quite possible to achieve zero-collection this way.
Re:After the iPhone 4S, Android just feels wrong by wbkang on Friday October 21, 2011 @06:28PM (#3141998)
Is there any evidence that suggest this? I have seen people saying this against desktop Java applications as well but mostly the unresponsiveness is caused by bad programming not GC. The GC process runs mostly in sub-milliseconds and you will never notice this.
Re:After the iPhone 4S, Android just feels wrong by chugger on Friday October 21, 2011 @06:42PM (#3142042)
it's a widely known issues.

If you allocate objects in a user interface loop, you will force a periodic garbage collection, creating little "hiccups" in the user experience. The concurrent collector introduced in Gingerbread helps, but unnecessary work should always be avoided. http://developer.android.com/guide/practices/design/performa...

Why should I avoid garbage collection? When Dalvik does a GC, most of the time your game will have to wait until the garbage collection is complete. It will often take in the order of 100 milliseconds to complete. Doesn’t sound like much but in your game loop this is huge – causing a horrible stutter or lack of responsiveness. http://fanitis.com/2011/02/09/android-game-performance-garba...

Garbage collection and async operations frequently block UI rendering. http://www.satine.org/archives/2011/01/01/the-care-and-feedi...

Android Garbage Collector Slow Down http://stackoverflow.com/questions/6742314/android-garbage-c...

I'm performance tuning interactive games in Java for the Android platform. Once in a while there is a hiccup in drawing and interaction for garbage collection. Usually it's less than one tenth of a second, but sometimes it can be as large as 200ms on very slow devices. http://stackoverflow.com/questions/2484079/how-can-i-avoid-g...

Re:After the iPhone 4S, Android just feels wrong by pixie_ on Friday October 21, 2011 @06:54PM (#3142072)
Exactly. I tried to mention the bad performance of the GC earlier. You can find my post and the very bottom.
Re:After the iPhone 4S, Android just feels wrong by chugger on Friday October 21, 2011 @06:58PM (#3142089)
rofl @pixie they down voted you.
Re:After the iPhone 4S, Android just feels wrong by chugger on Friday October 21, 2011 @04:52PM (#3141647)
another note:

iOS/Obj C does not do automatic garbage collection specifically for this reason (and battery life).