Dianne Hackborn Google-alkalmazott írt egy hosszabb postot az Android UI renderelődési problémáiról.
Android has always used some hardware accelerated drawing. Since before 1.0 all window compositing to the display has been done with hardware. This means that many of the animations you see have always been hardware accelerated: menus being shown, sliding the notification shade, transitions between activities, pop-ups and dialogs showing and hiding, etc. (...) Hardware accelerated drawing is not all full of win. For example on the PVR drivers of devices like the Nexus S and Galaxy Nexus, simply starting to use OpenGL in a process eats about 8MB of RAM. Given that our process overhead is about 2MB, this is pretty huge. That RAM takes away from other things, such as the number of background processes that can be kept running, potentially slowing down things like app switching.
Erre írt választ a Google egykori gyakornoka, Andrew Munn:
Why is Android laggy, while iOS, Windows Phone 7, QNX, and WebOS are fluid? (...) It’s because on iOS all UI rendering occurs in a dedicated UI thread with real-time priority. On the other hand, Android follows the traditional PC model of rendering occurring on the main thread with normal priority.This is a not an abstract or academic difference. You can see it for yourself. Grab your closest iPad or iPhone and open Safari. Start loading a complex web page like Facebook. Half way through loading, put your finger on the screen and move it around. All rendering instantly stops. The website will literally never load until you remove your finger. This is because the UI thread is intercepting all events and rendering the UI at real-time priority.If you repeat this exercise on Android, you’ll notice that the browser will attempt to both animate the page and render the HTML, and do an ‘ok’ job at both. On Android, this a case where an efficient dual core processor really helps, which is why the Galaxy S II is famous for its smoothness. (...) With some luck, Android 5.0 will bring the buttery-smooth Android we’ve all dreamed about since we first held an HTC G1.
Az egész polémiát érdemes végigolvasni.
Hargita Nándor · http://sliceandsmile.blog.hu 2011.12.08. 11:53:00
jtrencsenyi 2011.12.09. 22:04:04
A több magos procik meg semmit nem érnek ICS nélkül.