Discussion about official Mozilla Firefox builds
Now that this has officially released in Firefox 4, its time to revise the first post.
Things to Know BEFORE Activation:
1. Direct2D and DirectWrite is ONLY available on Windows 7/Windows Server 2008/Windows Vista SP2(With Platform Update)
2. Some Add-ons may interfere with proper operation when they call a certain API prematurely.
3. Your Video Drivers should be updated to the latest version.
How to Turn on Direct2D & DirectWrite for Windows 7/Windows Server 2008/Windows Vista SP2(With Platform Update):
Direct2D & DirectWrite should be on by default for compatible systems. The Option to toggle Accelerated Rendering on or off is in the "Advanced" section of the "General" Tab in the Options Window.
To turn it On or OFF:
Open up the Options Dialog: Firefox Menu > Options (Classic Menu: Tools > Options)
Select: Advanced > "General" Tab > "Use hardware acceleration when available"
To Check for Direct2D/DirectWrite working on your system:
Firefox Menu > Help > Troubleshooting Information
- At the bottom of the page Both Direct2D and DirectWrite should say "true".
- GPU Accelerated Windows category should say "1/1 Direct3D 10".
Forcing Acceleration ON
This is NOT recommended. The developers have disabled acceleration in Firefox on your system for stability reasons.
TO FORCE ON:
In about:config, Search for "gfx.direct2d.force-enabled".
- If its not there then add it. (Right Click anywhere and select "NEW" then "boolean". Add in the pref without quotes.)
- Double Click the pref to turn it "true". That will enable Direct2d & DirectWrite. To revert, double click again.
- Some fonts do not render properly depending on a few factors including Video Card, drivers and ClearType settings.
- Memory Usage will increase slightly. (But not noticeably high.)
- Enabling Anti Aliasing with Firefox on Nvidia Graphics Drivers will cause graphics corruption.
- Enabling Anisotropic Filtering with Firefox can cause fonts to blur.
If you would like to file bugs for this issue, be sure to search for the bug first.
The Dependency List can also show what issues are already linked.
If the bug is not filed then Open a New bug, attach [DW] for Text rendering oddities or [D2D] for other graphical errors to the title of the bug with "Core:Graphics" as the component and "Trunk" as the version and give them detailed information on the problem including Graphics Hardware and Driver Version.
Frequently Asked Questions:
1. Why Direct2D and DirectWrite and not DirectX10?
- Direct2D and DirectWrite are new solutions to replace GDI/GDI+ in current and future versions of Windows. These new solutions run ontop of DirectX10.
2. Why not OpenGL?
- Direct2D and DirectWrite has advantages that the standard OpenGL API in Windows currently does not.
3. What is the Windows Vista Platform Update?
- Microsoft created an update to backport some Windows 7 core functions to Windows Vista. Windows Vista users should have already received and installed this package through Windows Update.
4. Will My DirectX9 Hardware work?
- Yes, providing you are using Windows 7 or Windows Vista SP2 (With Platform Update). In those Operating Systems, some DirectX10 functions are emulated for DirectX9 hardware which is called "DirectX10-Level-9". There is a chance that some older DirectX9 cards won't work.
5. Why is Windows Xp not Supported?
- Direct2D and DirectWrite requires DirectX10. DirectX10 can only be found on Windows 7/Windows Server 2008/Windows Vista SP2(With Platform Update).
Examples to Test:
http://maps.google.com (the maps, not street view.)
http://people.mozilla.org/~jdaggett/tes ... rfall.html
http://srufaculty.sru.edu/david.dailey/ ... drag12.svg
http://www.tapper-ware.net/stable/web.d ... transform/
http://www.basschouten.com/blog1.php/20 ... -a-browser
http://www.basschouten.com/blog1.php/20 ... irectwrite
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
http://blogs.msdn.com/directx/archive/2 ... write.aspx
http://blogs.msdn.com/directx/archive/2 ... d-gdi.aspx
http://blogs.technet.com/thomasolsen/ar ... d-api.aspx
Last edited by Omega X on April 23rd, 2011, 8:54 pm, edited 42 times in total.
Another good test link that really shows off the performance with DirectWrite and D2D enabled:
If you want to turn off the D2D and do no want to remove/add the pref for the widget, you can set to value to '0' (zero) and it will for normal GDI (browser restart is required)
Looks good. Nice job.
You might want to mention downloading the latest development version of Adblock Plus for D2D/DW compatibility since it is probably the most widely used extension. It can be found here:
This is another good test example that was mentioned in another thread:
This test provided the biggest noticeable difference to me after enabling D2D/DW.
Scrolling at times will become sluggish but usually returns to normal in the course of viewing other pages.
Intel i7 Core Quad @ 4.25Ghz | Cooler Master Hyper 212 Plus | 12GB PC3-16000 RAM | ASUS HD6970 2GB - 12.3 CATS | ASUS PA246Q IPS 24" LCD 16:10 | OCZ AGILITY-EX SSD SLC | Windows 7 SP1 x64 Ultimate
I forgot about that balloon example, and I went looking for it twice.
OpenGL has fantastic support on windows, its the vendors who produce the drivers that suck at supporting it, and if its not supported properly on windows you'd be hard pressed finding it supported on linux either (ATI and Intel as examples).
Its not. VRAM usage has not increased at all using D2D.
Are there, in fact, plans to enable OpenGL on platforms other than Windows?
Microsoft gives minimal OpenGL support on Windows. Its no surprise that Driver makers don't support it properly there since they have to do most of the work.
Also, some have reported increased memory usage after turning on D2D and DW. I made a guess as to what was happening. If you have hard evidence please share it.
@ Capn Refsmmat
Yes, there were mentions of plans to enable OpenGL support for OSX and Linux.
Nifty. I searched for bugs filed on OpenGL, but this is all I found:
and there hasn't been much activity for a while. But if they do intend to, this should be interesting...
All graphic card vendors provide a minimal of OpenGL 1.4 ICD. Intel's and ATI's opengl on linux is near non existant (and the open source drivers are a mockery).
System memory yes, not video memory. Only Nvidia cards can display the usage of Video memory via NVAPI and it has not increased at all through using Direct2D.
Yeah, Bas has been preoccupied with D2D and Layers. The plan I saw was to merge Cairo's latest OpenGL work to the Trunk and adjust it. But there were import issues to be worked out before hand.
Also see this:
Thanks, I'll remove that guess on VRam.
Stickied. Please let me know when it's importance is through.
Give a man a fish, and he eats for a day. Teach a man to fish, and he eats for a lifetime.
I like poetry, long walks on the beach and poking dead things with a stick.
Please do not PM me for personal support. Keep posts here in the Forums instead and we all learn.
Thanks! Sure thing.
Omega X: I suggest you add the dependency tree so a bunch of dupes are not filed and to also suggest users mark any bugs dependent on bug 527707.
https://bugzilla.mozilla.org/showdepend ... resolved=1
Who is online
Users browsing this forum: No registered users and 1 guest