News for hackers. Stuff that matters.
Re:Chrome will begin pausing many Flash ads by default on Se... by userbinator on Friday August 28, 2015 @10:06AM (#10135464)
arguably even worse than flash would have been

I'm not surprised. As someone who has worked with it (and even written pieces of a simple Flash renderer), SWF was designed to be an extremely compact format and is far simpler to parse and render than the HTML + CSS + SVG + JS replacement that's being promoted.

In that respect, all the complaints about Flash and mobile battery life should be attributable to the mere presence of Flash content. The reason why disabling Flash improves battery life is because the content doesn't get rendered. If the same content were present and rendered with HTML5 it would require more computing power, because the overhead of parsing (several!) text-based formats and using a complex rendering model originally designed for static documents compared to a binary format and rendering model designed for interactive animations, simply cannot be eliminated. I suppose new standards for documents, vector images, and scripting could be designed (WebAssembly comes to mind), but at that point you'll just be reinventing Flash/SWF...

For that reason, disable JS and you will get improved battery life too:

https://www.reddit.com/r/apple/comments/2lent3/fwiw_disablin...

Re:Chrome will begin pausing many Flash ads by default on Se... by acdha on Friday August 28, 2015 @10:40AM (#10135646)
The part about the file format is quite true but it's not the only thing to compare since there are so many features in either runtime and Flash has been used for so many different things. The most relevant example here was the way Adobe made only half-hearted attempts to optimize video playback, which is where I saw the battery life discussion really get started as more people noticed that playing H.264 video back in Flash took an entire CPU core and still dropped frames while playing the same file in <video> or the Windows/OS X media frameworks took less than 10% for perfect playback.
Re:Chrome will begin pausing many Flash ads by default on Se... by zwetan on Friday August 28, 2015 @02:55PM (#10137265)
half-hearted attempts to optimize video playback ?

the Flash Player plugin can render hardware accelerated video since v10.2 (released early 2011).

http://blogs.adobe.com/flashplayer/2011/02/flash-player-10-2...

"For example, using Flash Player 10.2 with Stage Video hardware acceleration, we’ve tested a Mac Mini released two years ago and a low-powered GPU-enabled Windows netbook playing smooth full HD 1080p video using less than 8% of the CPU; more powerful computers use even less."

Re:Chrome will begin pausing many Flash ads by default on Se... by acdha on Friday August 28, 2015 @04:00PM (#10137556)
> the Flash Player plugin can render hardware accelerated video since v10.2 (released early 2011).

I'm aware of that but the quality of the actual implementations still varies widely. I've done the comparison periodically since that was released and their quoted figures have never reproduced on any Flash video player which is actually used on the web (YouTube, Vimeo, jwplayer and a few other open-source projects, the custom players used by various big media companies, etc.).

On OS X or Windows XP-8.1, on multiple devices, it's consistently been the same: Flash = fan on high, HTML5 = fans off. Flash's settings show hardware acceleration enabled but there's either a really restrictive hardware check quietly disabling it or absolutely nobody ever managed to ship a player using Stage Video, including the companies quoted in that press release.

Re:Chrome will begin pausing many Flash ads by default on Se... by userbinator on Friday August 28, 2015 @03:08PM (#10137320)
Jobs' original criticism of Flash was in 2010, when HW accel was not yet available. It might've lead Adobe to do it, however.
Re:Chrome will begin pausing many Flash ads by default on Se... by Schlaefer on Tuesday September 01, 2015 @01:15AM (#10150850)
Actually h.264 hardware acceleration was introduced in 10.1 mid 2010 and it had a public beta in the months before. It was Windows only with Adobe saying: "Mac OS X does not expose access to the required API" [1]. Apple opened up the hardware API while 10.1 was on the finish line [2] and so the Mac only got support in the next 10.2 release.

So another interpretation is: Apple was well aware that smooth video playback was coming to other platforms and Jobs piece (and opening up the acceleration API) was an reaction to that.

[1] http://www.adobe.com/cn/devnet/flashplayer/articles/fplayer1...

[2] http://kodi.tv/osx-gets-h-264-acceleration/