“Android的顯示問題非硬體加速不行,弊在爛架構”

“Android’s graphics problems are not due to a lack of hardware acceleration. They’re due to poor architecture.”

- Corun @ Hacker News

以上為上文[Mobile] Android上的硬體加速 (前稱[Webkit] Android上的webkit硬體加速)之後續討論之一。這篇詳述了iOS和Android對View的方式的差異,外加:

  • 在iOS上想達至和Android有同樣「效果」(Lag),請用Layer
  • Android的策略有個好處: 吃少一點的記憶體。(看似是為了支援low-end機種的選擇)

p.s. 正式一點的後續在Why is Android laggy, while iOS, Windows Phone 7, QNX, and WebOS are fluid?,tl;dr的版本為

  1. Android 的錯之一是,UI rendering塞在app的main thread中 (EPIC FAIL)
  2. Android 的另一個錯是,UI rendering的優先權(priority)只有normal  (YET ANOTHER EPIC FAIL)

如果以上的都是太長的話…

「一切都是架構和rendering策略的錯」

Tags: Android WTF