The latest Firefox beta includes support for Direct2D acceleration on Windows platforms.
As well as
support for Google's WebM video codec, the latest beta of Firefox introduces Direct2D acceleration on Windows platforms.
Released today, Firefox 4 Beta 4 is the first beta release to include the code for 2D graphics acceleration on Windows - something Microsoft has already promised will be an integral part of
Internet Explorer 9.
According to Mozilla's
platorm wiki, although the code to enable 2D acceleration - which takes the effort of rendering graphics objects away from the CPU, promising better all-round performance in graphics- or JavaScript-heavy sites - is part of the latest beta release, it is disabled by default as the team didn't feel confident enough to "
turn it on for all users."
Thankfully, enabling the acceleration is pretty straightforward for the more advanced users willing to give the bleeding edge a try: "
To turn on Direct2D: Go in to about:config
and set mozilla.widget.render-mode
to 6, and gfx.font_rendering.directwrite.enabled
to true."
Once that's done, just restart Firefox and go to
about:support, and if Direct2D is enabled you should see a message right at the bottom of the page.
As expected of a beta, there are issues that the team at Mozilla want to keep an eye on - in particular, the effect enabling acceleration has on overall memory usage and its interactions with plugins like Adobe's Flash, which in version 10.1 includes its own hardware acceleration support.
Will you be downloading the latest beta to try out the new GPU-accelerated browsing, or are you going to sit this one out and let others discover any bugs that might be hiding? Should Mozilla be concentrating on shedding some bloat from Firefox rather than adding new features like this? Share your thoughts over in
the forums.
27 Comments
Discuss in the forums ReplyThat is hardly straightforward, it might not be difficult, but try explaining that to an older generation compared to going to something like Tools - Options - Tick box for 2D acceleration.
TBH, it's about time Mozilla and others made these advanced features more readily available for the more common things that day to day users might benefit from.
I'd expect that in the final release of Firefox 4 this will be enabled by default, and nobody will ever really need to turn it off.
TBH, you absolutely do not get this at all. You need to actually download the Minefield nightlies in order to even get this option, which are very unlikely for the older generation to EVEN know about it, much less download and install.
Fail.
Plus, if you read the sentence again, I said it was "pretty straightforward for the more advanced users." Somehow, I doubt that members of your apparently senile "older generation" read bit-tech and install betas.
Just sayin'.
Almost every add-on is working fine with the Beta. Just install "Add-on Compatibility Reporter" add-on.
Let me know when Chrome or Opera adds this feature.
this is as said a minefield nightly and I've been testing Direct2D enabled Firefox for quite some time now.
Direct2D "code" is already in Beta 3
This feature is enabled by default in the firefox 4 prebeta 5 builds (available here, so beta 5 should have this enabled by default too. Be patient if you don't like fiddling around with about:config.
https://wiki.mozilla.org/Releases/Firefox_4.0b4
I'm not sure is the problem with Direct2D Firefox beta based error, or aren't web pages just simply coded whit D2D in mind, since at least youtube has some issues playing vids properly when D2D is enabled (might have something to do with Flash...)
Anyway, so I have D2D enabled. I tried the H/W font rendering as well, but turned that off rapidly. It's rubbish, all blurry.
What I'd like to know, however, is what benefits we should be seeing with D2D enabled. I mean, FF runs as fast as it did without it. One would think they'd use it to stop FF max'ing out one of the cores on my AMD 955BE every time scroll a page. :-D
Hmm does that still happen with D2D enabled? I'd have hoped it wouldn't as I also get the problem with one of my cores getting maxed out too when scrolling a content heavy page, such as those using jpegs for background images (www.shopto.net is an ok example to test this). It's very choppy as well when scrolling.
Kinda sucks really why this happens on a high-end system for something as simple as displaying a web site.
All that said, it's always been ridiculous to me that FF eats up as much RAM as it does. I've been on Opera full time since they dropped the top banner that 'kept it free'. We're getting on FF4, and still they can't or won't do anything about the memory usage issues? No thanks, I'll take the hit on my geek cred and still have a computer I can multi-task on, with the browser open. There are a few add-ons I miss at work, but given the piece of crap Dell I have there, and that I typically have Opera (9-10 tabs), IE (1-2 tabs), Outlook, 3-5 instances of Excel, Crimson Editor, Irfanview, and the company's business suite open at once, I can't spare the RAM for Hungry Hungry Firefox.
I have D2D enabled and it doesn't, seem there is a spike in CPU load (increases by about 25% on 2 cores) and the multiplier steps up, but it doesn't max out anything. Of course, this is a totally unrealistic test, I have Cool'n'quiet enabled and a load of background stuff open.
http://people.mozilla.com/~vladimir/demos/photos.svg
I hope it gets better in the future.
I really look forward to Direct2D on Windows, then Microsoft will finally have cought up with MacOSX
- If you look at the three Quartz implementation diagrams in sequence, you can see how the video card portion of the diagram has slowly expanded over the course of four years to encompass more and more of the display layer. The reason is clear when you look at the bandwidth numbers: 30GB/s between the GPU and VRAM, and that number is climbing rapidlymuch more rapidly than the bandwidth between the CPU and RAM.
http://arstechnica.com/apple/reviews/2005/04/macosx-10-4.ars/14
I hope Windows 8 is entirlely in Direct2D and can render at 120fps on these new 120hz monitors :)
http://jooh.no/web/60hz_vs_120hz_smooth_mouse_cursor.jpg
http://jooh.no/web/120Hz_LCD_vs_CRT_comparison.jpg
- The ASUS VG236H was my first exposure to 120Hz refresh displays that arent CRTs, and the difference is about as subtle as a dump truck driving through your living room. I spent the first half hour seriously just dragging windows back and forth across the desktop - from a 120Hz display to a 60Hz, stunned at how smooth and different 120Hz was. Yeah, its that different.
http://www.anandtech.com/show/3842/asus-vg236h-review-our-first-look-at-120hz
but you probably have already heard me goskel elsewhere by now hehe
http://www.basschouten.com/blog1.php/2009/11/22/direct2d-hardware-rendering-a-browser