发信人: meinong (麦农), 信区: Flash
标 题: Flash Player: CPU Hog or Hot Tamale? It Depends.
发信站: BBS 未名空间站 (Fri Mar 19 13:57:47 2010, 美东)
When it comes to efficient video playback, the ability to access hardware
acceleration is the single most
important factor in the overall CPU load. On Windows, where Flash can access
hardware acceleration, the
CPU requirements drop to negligible levels. It seems reasonable to assume
that if the Flash Player could
access GPU-based hardware acceleration on the Mac (or iPod/iPhone/iPad), the
difference between the CPU
required for HTML5 playback and Flash playback would be very much narrowed,
if not eliminated.
I don't follow the politics of the situation, but after noting significant
playback efficiencies in Flash Player
10.1 on the Mac, respected technologist and AnandTech founder Anand Lai
Shimpi commented "with actual
GPU-accelerated H.264 decoding I’m guessing those CPU utilization numbers
could drop to a remotely
reasonable value. But it’s up to Apple to expose the appropriate hooks to
allow Adobe to (eventually) enable
that functionality." So it looks like the ball is in Apple's court.
Overall, it's inaccurate to conclude that Flash is inherently inefficient.
Rather, Flash is efficient on platforms
where it can access hardware acceleration and less efficient where it can't.
With Flash Player 10.1, Flash has
the opportunity for a true leap in video playback performance on all
platforms that enable hardware
Turning full circle, if Anand is right, and I don't doubt that he is, Apple
complaining about Flash being a CPU
Hog while not exposing "the appropriate hooks" to enable Adobe to access
hardware acceleration seems
disingenuous at best. To be fair to Apple, though, the iPad related timing
was unfortunate, with the bulk of
the development work done under the shadow of Flash Player 10.0, which didn'
t offer hardware acceleration
other than full screen on any platform and was clearly less efficient than
the HTML5-based approach Apple
adopted. Now that Adobe has proven the concept on Windows, perhaps Apple
will cooperate with Adobe to
make hardware acceleration on the Mac, iPad and future devices happen. If
they choose not to, however,
they should quit pointing fingers at Flash.
What else? We also learned that not all HTML5 browsers/H.264 decoders are
created equal. Significantly,
with Flash 10.1 deployed, Google's HTML5 implementation required the most
CPU horsepower of all
playback scenarios -- by far -- on the Windows platform. On the Mac, Firefox
and Safari with Flash
required less CPU horsepower than Chrome's HTML5 implementation.
At least from a CPU utilization perspective, Flash isn't BAD and HTML5 isn't
GOOD. It all depends upon the
platform and implementation.
※ 来源:·WWW 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 192.150.]