Apple unveils Mac OS X 10.8 Mountain Lion coming this summer

  • Inside OS X 10.8 Mountain Lion: Enhanced Printing & Scanning

  • Apple's 'iPad 3' rumored to have Siri, dual-core A5X chip, 1080p camera

  • Apple's North Carolina solar, fuel cell plants will be largest of their kind

  • AI readers get lowest prices ANYWHERE on MacBooks plus Free 2-Day shipping: Mac Price Guide updated Feb. 22nd. (Find the best prices on Macs)
    Wednesday, December 7, 2011

    Former Google intern explains why UI lag occurs more often in Android than iOS

    By AppleInsider Staff

    Published: 02:07 AM EST (11:07 PM PST)


    A former intern for Google's Android team has provided explanations for why Android experiences more touch interface lag than competing mobile operating systems from Apple, Microsoft and Research in Motion.

    Undergraduate software engineering student Andrew Munn posted his observations on Google+, as noted by Cult of Mac. He did disclaim, however, that he will be starting an internship with Microsoft's Windows Phone team in January, adding that any opinions from the report were his alone.

    According to Munn, Android has a difficult time dealing with the touch interface because it handles rendering "on the main thread with normal priority," as opposed to iOS, which treats UI rendering with real-time priority. He cites examples of website loading and the Movies app on Android where the operating system will continue to load while registering touch input.

    Munn identified several other factors that contribute to UI lag on Android. For instance, the photo gallery app in either Android 3.0 Honeycomb or 4.0 Ice Cream Sandwich is capped at 30 frames per second in order to prevent a noticeable "hiccup" at 60 FPS.

    "Capping the frame rate at 30 fixes the hiccup problem at the expense of buttery smooth animations at all times," he said.

    The author also pointed to hardware issues for Android. According to him, Nvidia's Tegra 2 chip limits Android because of its low memory bandwidth and lack of NEON instruction set support. Tablets based on Honeycomb would be "better off with a different GPU," such as the Samsung Hummingbird or Apple A4.

    Munn noted that Android "has a ways to go" before achieving more efficient UI compositing, especially when compared against Apple's iOS.

    "On iOS, each UI view is rendered separately and stored in memory, so many animations only require the GPU to recomposite UI views," he said. "GPUs are extremely good at this. Unfortunately, on Android, the UI hierarchy is flattened before rendering, so animations require every animating section of the screen to be redrawn."

    Another reason for the lag is the limitations of Android's Dalvik virtual machine, which is "not as mature" as a desktop-class Java VM, Munn said. However, the issue with Dalvik will be offset by hardware acceleration from Ice Cream Sandwich on and improvements to Dalvik.

    But, in spite of the improvements, Munn believes the Android user interface "will never be completely smooth because of the design constraints" that limit UI rendering to the main thread of an app with normal priority.

    "Even with a Galaxy Nexus, or the quad-core EeePad Transformer Prime, there is no way to guarantee a smooth frame rate if these two design constraints remain true," he said. "It’s telling that it takes the power of a Galaxy Nexus to approach the smoothness of a three year old iPhone."

    According to Munn, the reason behind the design change is that the original Android prototype didn't have a touchscreen, as it was meant to be a BlackBerry competitor. As such, Android's architecture is meant to support a keyboard and trackball. Munn further claimed that after the original iPhone arrived in 2007, Google rushed to complete Android, but "it was too late to rewrite the UI framework."

    He cited Windows Mobile 6.5, BlackBerry OS and Symbian as examples of other older operating systems that suffered similar problems with touch performance. Microsoft, RIM and Nokia have all abandoned those OSes in order to start from scratch. "Android is the only mobile OS left that existed pre-iPhone," the report noted.

    Android Software Engineer Romain Guy admitted as much when he said that choices made years ago had contributed to work the team has to do now.

    "Having the UI thread handle animations is the biggest problem," he said. "We are working on other solutions to try to improve this (schedule drawing on vsync instead of block on vsync after drawing, possible use a separate rendering thread, etc.) An easy solution would of course to create a new UI toolkit but there are many downsides to this also.”

    According to the report, those downsides include the fact that apps would have to be rewritten to support the new framework, Android would need legacy support for old apps and work on other Android features would be held up while the new framework was being built.

    "However, I believe the rewrite must happen, despite the downsides. As an aspiring product manager, I find Android’s lagginess absolutely unacceptable. It should be priority #1 for the Android team," Munn said.

    UI Lag has long been an area for which reviewers have criticized Android. One recent usability study by Jakob Nielsen on Amazon's Android-based Kindle Fire found erratic scrolling and "huge lag in response after pressing command-buttons." Nielsen suspected that "sloppy programming" was causing the issue.

    The New York Times' David Pogue also took issue with the Kindle Fire. "Animations are sluggish and jerky -- even the page turns that you'd think would be the pride of the Kindle team," he said in his review. "Taps sometimes don't register. There are no progress or 'wait' indicators, so you frequently don't know if the machine has even registered your touch commands. The momentum of the animations hasn't been calculated right, so the whole thing feels ornery."

    Munn himself viewed the issue as damaging to Android's image. He also saw it as a violation of Google's guiding principles, which have generally led to faster, optimized products. Finally, he mentioned that UI lag breaks the direct 1-to-1 relationship that touch screens offer.

    "The device no longer feels natural. It loses the magic. The user is pulled out of their interaction and must implicitly acknowledge they are using an imperfect computer simulation. I often get “lost” in an iPad, but I cringe when a Xoom stutters between home screens," he said.

    To conclude, the report ended on a more upbeat note, with Munn voicing his belief that the Android rendering framework is in the hands of a capable team. "I know they will have it eventually," he said.

    Filed under : iPhone, iPad 138 Comments ] 
    Story topics: iOS, Microsoft, windows phone 7, Google, Research in Motion, Android   Print ] [ Story Link ] 


    RSS
    RSS
    Mac Connection End of Summer Sale
    MacBook Pro Model
    Apple
    Price
    Discount
    2.4GHz dual 13" MacBook Pro $1,199.00 $1,095.12* $103.88
    2.8GHz dual 13" MacBook Pro $1,499.00 $1,382.19* $116.81
    2.2GHz quad 15" MacBook Pro $1,799.00 $1,658.63* $140.37
    2.4GHz quad 15" MacBook Pro $2,199.00 $1,983.61* $215.39
    2.4GHz quad 17" MacBook Pro $2,499.00 $2,274.61* $224.39
    Early 2011 MacBook Pro Model
    Apple
    Price
    Discount
    2.7GHz dual 13" MacBook Pro $1,499.00 $1,159.19* $339.81
    2.0GHz quad 15" MacBook Pro $1,799.00 $1,503.49* $295.51
    2.2GHz quad 15" MacBook Pro $2,199.00 $1,645.03* $553.97
    2.2GHz quad 17" MacBook Pro $2,499.00 $1,814.38* $684.62
    *Instant 3% AppleInsider Reader Discount Applied When Adding Items To Your Cart

    AppleInsider Features
    Hot Forum Topics

    Recent Articles
    Apple's first Amsterdam retail store set to open March 3
    Killer Deals: Save up to $680 off MacBook Pros and $79 off Mac minis
    New Beatles ringtones are exclusive to Apple's iTunes Store
    Microsoft joins Apple in FRAND patent fight against Motorola
    Apple tells court banning iPad sales would 'hurt China's national interest'
    Reports suggest Office for iPad is still coming, despite Microsoft's denial
    Factory workers claim Foxconn hid underage employees before FLA inspection
    'Nightline' report on Apple production line shows iPhone is basically handmade
    Google reportedly prepping heads-up display Android eyeglasses for 2012 launch
    Apple confirms plans for 'green' data center in Oregon
    Inside OS X 10.8 Mountain Lion: Enhanced Printing & Scanning
    Safari user sues Google over claimed privacy violation
    Qualcomm releases new Gobi universal mobile chips with LTE support
    Apple's Mac sales solid ahead of "possible MacBook Air refresh" as early as March
    With China Telecom iPhone deal final, Apple turns attention to China Mobile
    Apple extends Mac App Store sandboxing restriction deadline to June 1
    Apple launches iTunes in the Cloud service in Japan
    Microsoft Office for iPad said to arrive soon, Microsoft calls claims 'inaccurate'
    'iPad 3' rumored to launch in Germany on March 23
    Apple's 'iPad 3' rumored to have Siri, dual-core A5X chip, 1080p camera
    Apple to allow independent environmental audits of its supply chain
    Suppliers gearing up for Apple's launch of new MacBook Air models
    Proview ready to negotiate on eve of Shanghai court hearing
    Apple opening up supplier factories to third-party environmental inspections
    Apple's iPhone 4S climbs to 29% smartphone market share in UK
    China Telecom to offer fully-subsidized iPhone 4S starting March 9
    Microsoft to challenge iCloud with SkyDrive OS X client
    Apple threatens Proview with defamation countersuit
    Amazon gearing up to launch 10-inch Kindle Fire in Q2 2012 - report
    Apple's North Carolina solar, fuel cell plants will be largest of their kind
    Apple's sixth-gen iPhone expected to debut in September or October of 2012
    Chinese iPad trademark suit seen as chance for Samsung, Lenovo to gain on Apple
    ABC offers glimpse at 'Nightline' special 'iFactory: Inside Apple'
    Samsung officially spinning off struggling LCD business in April
    Lower Chinese court rules to halt iPad sales
    Samsung reportedly tapping Chinese supplier to produce 'iPad 3' displays
    'A5X' CPU featured on purported Apple 'iPad 3' logic board
    Alleged 'iPad 3' photos showcase larger camera, tapered case
    Apple issues statement on iPhone 4 'antenna-gate' lawsuit settlement
    Mountain Lion focuses on Cocoa, drops X11 and deprecates Carbon Core








    AppleInsider RSS Feed
    AppleInsider © 1997-2011
    Please review our Privacy Policy.
    Written/Edited/Compiled by the AppleInsider Staff.