Will Verduzco · Dec 4, 2011 at 04:00 pm

Google’s Dianne Hackborn Dispels Android Hardware Acceleration Myths

There’s been much fervor regarding Google’s inclusion of “full” hardware acceleration into Android 4.0 Ice Cream Sandwich. And this is with good reason—the 2D software rendering in Android 2.x made for a noticeably less smooth experience than competing OSes.

While the inclusion of a greater extent of hardware acceleration into the OS is a wonderful thing, there are many misconceptions surrounding what it brings to the table. First off, Android has had elements of hardware acceleration for tasks such as window compositing for years. This means that all window animations were also always hardware accelerated.

Unlike window compositing, drawing inside of a window has traditionally been accomplished by the CPU in Android 2.x and below. In Android 3.0 Honeycomb, however, these functions could be offloaded to the device’s GPU as long as android:hardwareAccelerated=”true” was placed in the application’s manifest. The only difference with Android 4.0 is that ICS turns on hardware acceleration by default as long as API level 14 or higher is targeted. Thus, hardware acceleration in ICS is no more “full” than in Honeycomb. (Note: You can force all applications in ICS to utilize hardware acceleration in 4.0 through the developer options settings pane—something I have wanted in Honeycomb for eight months.)

OK. Now, hardware acceleration is on by default in API 14+ apps, and we have a way to force hardware acceleration in all apps regardless of the contents of the manifest. All is gravy, right? That’s unfortunately not the case. In the case of the PowerVR drivers used in the Nexus S and even Google’s new flagship, simply enabling hardware acceleration in any process eats up 8 MB of memory—per process! While not much on its own, 8 MB here and 8 MB there will lead to much higher memory consumption that could also lead to much slower multitasking. As a result, the Android team is putting considerable effort into fine tuning exactly what parts of the Android UI will use GPU rendering on the Nexus S.

Long story short? When compared to Android 2.x, ICS brings great features to the table thanks to its increased reliance on hardware acceleration. However, other than being turned on by default, ICS’s hardware acceleration cannot be considered any more “full” than what we already had in Honeycomb. Furthermore, hardware acceleration isn’t the magic bullet that many consider it to be—but it will certainly help!

Interested in learning more? Read Dianne’s post on Google+ and join the discussion in the original thread.


_________
Want something on the XDA Portal? Send us a tip!

Will Verduzco

willverduzco is an editor on XDA-Developers, the largest community for Android users. Will Verduzco is the Portal Administrator for the XDA-Developers Portal. He has been addicted to mobile technology since the HTC Wizard. But starting with the Nexus One, his gadget love affair shifted to Google's little green robot. He is also a Johns Hopkins University graduate in neuroscience and is now currently studying to become a physician. View willverduzco's posts and articles here.
Mario Tomás Serrafero · Aug 4, 2015 at 02:17 pm · no comments

Sony’s Emergence in The Middle: Is The Price Right?

Sony’s Electronics Division is not in its best days, and its smartphone products are seemingly an important cause of this. The Japanese giant’s Xperia line has been on the decline in terms of sales, and these past few months have been particularly damaging to the company due to the Xperia Z4’s market performance. Sony’s Q1 results were also not favorable, as its mobile division lost $184 million and sales slumped 16% year-on-year.   Not too long ago we featured a...

XDA NEWS
Eric Hulse · Aug 4, 2015 at 03:42 am · 1 comment

HTC Delivering Ads Straight to Sense Home

HTC's 2015 has been a year marked by a desperate search for revenue. The HTC One M9 launched with its own launcher complete with a Smart Folder in the Sense Home Widget. This automatic pseudo-folder would populate with "suggestions" that were nothing more than thinly-veiled ads.   Just over a month ago, HTC began placing advertisements (that can thankfully be disabled) in Blinkfeed. These Blinkfeed ads appeared after Yelp advertisements began appearing on HTC's Lock screen. Users, expectedly, voiced dissatisfaction all...

XDA NEWS
Brian Young · Aug 2, 2015 at 09:05 pm · 2 comments

Galaxy S6 & Edge get €100 Price Cut—New Models Incoming

Samsung has dropped the price of both the Galaxy S6 and S6 Edge by €100, making the current retail price of these phones €599 and €699, respectively. Though no new prices have been announced stateside, a cut is expected soon. (more…)

XDA NEWS