The Register® — Biting the hand that feeds IT

Feeds

Mozilla chucks Roc at Microsoft's new hardness

IE9 acceleration talk rubbished

Ensure Ease of Recovery with Asigra’s Agentless Software

Microsoft has claimed that Internet Explorer 9 is the only browser offering "full" hardware acceleration.

And Mozilla has accused its old rival of talking nonsense.

With a Friday blog post, Microsoft web graphics program manager Ted Johnson laid out a trio hardware acceleration "phases," before telling the world that only IE9 does all three. "With IE9, developers have a fully-hardware accelerated display pipeline that runs from their markup to the screen," Johnson said.

"Based on their blog posts, the hardware-accelerated implementations of other browsers generally accelerate one phase or the other, but not yet both [sic]. Delivering full [his italics] hardware acceleration, on by default, is an architectural undertaking...

"Today, IE9 is the first and only browser to deliver full hardware acceleration of all HTML5 content."

But his claim was promptly refuted by Mozilla developer Robert O'Callahan as well as Mozilla director of community development Asa Dotzler. "The facts are that Firefox takes advantage of the same Windows 7 APIs that Microsoft does to accelerate both the compositing and the rendering of Web content and that Mozilla provided test builds of Firefox...with this hardware acceleration well before Microsoft did," Dotzler said.

"We are faster and we were first."

Asked to respond, Microsoft said it was "sticking by" by Johnson's blog post. The company declined to discuss the issue, but indicated it would do so later this week at a press event unveiling the IE9 beta.

In his blog post – which arrived just two days after Mozilla officially rolled graphics hardware acceleration into the Firefox 4 beta – Johnson boasted that IE9 applies hardware acceleration to graphics rendering, page composition, and desktop composition. IE9 uses Windows Direct2D and DirectWrite systems for content rendering. It uses Direct3D for page composition. And desktop composition involves using the Desktop Window Manager (DWM) – the system that drives the graphic user interface in Windows Vista and Windows 7 – to complete the screen image around the browser window.

"After a browser renders content and composes pages, Windows Vista and Windows 7 use the GPU to compose the final screen display via the Desktop Window Manager (DWM)," Johnson says. "Because IE9 uses DirectX and only DirectX, there is better interaction between IE9 and the DWM, using less GPU memory and resulting in better stability than browsers that mix different subsystems."

Mozilla's Robert O'Callahan – aka "Roc" – confirms with The Reg that Firefox offers all three flavors of hardware acceleration described by Johnson and that the techniques used by Firefox are "analogous" to those used by Microsoft. There may be slight differences in the way Microsoft is handling things – "I don't know exactly what they do. They can see our code, but we can't see into theirs," O'Callahan says – but as Dotzler points out, Mozilla is using exactly the same APIs: Direct2D for content drawing, Direct3D for compositing, and the Desktop Windows Manager as well.

It's unclear what – precisely – Microsoft is referring to when it says that if you only use DirectX for content drawing and compositing, there's better integration with the Desktop Windows Manager. But Mozilla meets this criteria.

"They seem to be saying that if you use Direct3D and Direct2D for all your application drawing and nothing else, there are performance advantages with DWM," O'Callahan says. "We do now draw the entire application window with Direct3D, so we should be getting that advantage. But I don't know how to test that, because I'm not exactly sure what they're talking about. But we do what they say you need to do to get that advantage."

Microsoft's Johnson also makes noises about competitors losing performance because they're working to provide cross-platform hardware acceleration. "When there is a desire to run across multiple platforms, developers introduce abstraction layers and inevitably make trade-offs which ultimately impact performance and reduce the ability of a browser to achieve ‘native’ performance," he says. "Getting the full value of the GPU is extremely challenging and writing to intermediate layers and libraries instead of an operating system’s native support makes it even harder."

As O'Callahan points out, this is apparently a reference to Google Chrome. Mountain View is handling all hardware acceleration through the OpenGL standard, mapping OpenGL to Direct3D using a new open source project is calls ANGLE (Almost Native Graphics Layer Engine), and it's not offering Direct2D acceleration.

But in using DirectX 10, Mozilla has not gone the Google route. O'Callahan does acknowledge that Mozilla uses an intermediate layer for use with the old DirectX 9, OpenGL, and non-accelerated situations – dubbed "Layers" – but he says this doesn't necessarily sacrifice speed. "[Layers] is a lot higher-level than GL/ANGLE," he writes in his blog post. "It's certainly true that only having to target Vista and Windows 7 would mean less development effort, but an extra abstraction layer need not hurt performance – if you do it right."

Mozilla is working to offer hardware-accelerated compositing on Mac, Linux, and mobile via OpenGL. And although there's not really an equivalent to Direct2D on Mac and Linux, it's hoping to work with others across the industry to developer an option for hardware accelerating content.

The open-source outfit hopes to offer OpenGL hardware acceleration on Mac, Linux, and mobile with Firefox 4, but support for some platforms may slip to a later release.

Mozilla is also providing hardware accelerated compositing on Windows XP. And, well, you won't get that from Microsoft. "So, for all their hand-waiving about the difficulties of multi-platform acceleration that, according to them the other browser vendors face, it seems Microsoft are the ones struggling to support even their most popular Windows version," says Dotzler.

"If Mozilla can accelerate browsing for the hundreds of millions of PC users on Microsoft's Windows XP, why can't Microsoft? And why are they spreading FUD about Firefox when we beat them not just on the latest and greatest Windows 7 but on Windows XP where a majority of their users are today?" ®

Requirements Checklist for Choosing a Cloud Backup and Recovery Service Provider

How entertaining!

Oh, the old Microsoft smoke-and-mirrors game, in which their tenacity is rivaled only by the flexibility of their claims. Who needs sit-coms, with there's such news about?

Do they offer a certification as a Microsoft Marketing Partner? I wonder!

7
0

When...

...IE (any version) can do hardware acceleration on Mac and Linux I'll take an interest. Until then MS can just shut their yap.

4
0
Anonymous Coward

I'm a bit confused

It happens, small brain syndrome I call it. Why does the browser need to do hardware acceleration at all? Surely what it should do it just say "Hey, OS! Run this video/audio/whatever. I need it 320x200 and at these co-ordinates" (or whatever parameters make sense). Then the OS either says "Sure!" and responds with the stream/whatever; or the OS says "WTF? I don't have the codec for that." and the browser just plonks and error message somewhere.

I mean, this is what happens with file access etc. It's not as if every browser bundles it's own disc managers and so on, so why should other resources be any different?

3
0

More from The Register

Bjarne Again: Hallelujah for C++
Plus: Now officially OK to admit you never used STL algorithms
Interwebs taunt Sir Jony over Apple eye candy makeover
Hey Ive, Ive... add more unicorns, willya?
SCO vs. IBM battle resumes over ownership of Unix
Zombie lawsuit back and wants to suck the brains out of Linux
Red Hat to ditch MySQL for MariaDB in RHEL 7
So long, Oracle! Don't let the door hit you on the way out
Shy? Socially inadequate? Fiddling with your phone could help
App 'tells the brutal truth' about social inadequates' chatup lines
Java EE 7 melds HTML5 with enterprise apps
New release arrives with GlassFish, NetBeans support
Nuke plants to rely on PDP-11 code UNTIL 2050!
Programmers and their walking sticks converge in Canada
 breaking news
'Office Facebook' firm Tibbr wants you to PAY for mobe-meetings app
Great idea. Punters won't cough for it though
 breaking news
The only Waze is Google: Ad giant tipped to gobble map app 'for $1.3bn'
Pac-Man-satnav-ish upstart in bidding war with Apple, Facebook
 breaking news
PM Cameron calls for modern, programmable computers! (We think)
IT education musings to G8 chiefs to mystify IT industry