Platform/GFX/Direct2DDemo: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 9: Line 9:
'''Required Hardware'''
'''Required Hardware'''


You'll need to make sure you have DX10 compatible hardware or higher. DX9 hardware may work, but performance will vary significantly. Onboard graphics chipsets may also not function quite as you'd like them to. nVidia or ATI hardware is at this point the best hardware to demo this on. In order to check for recent enough drivers and DX 10 support, go to Run, and execute 'dxdiag'. Under the 'display' tab it should display DDI: 10 (or higher), and on windows 7 it should display WDDM: 1.1
You'll need to make sure you have DX10 compatible hardware or higher. DX9 hardware may work, but performance will vary significantly. Onboard graphics chipsets may also not function quite as you'd like them to. NVIDIA or ATI hardware is at this point the best hardware to demo this on. In order to check for recent enough drivers and DX 10 support, go to Run, and execute 'dxdiag'. Under the 'display' tab it should display DDI: 10 (or higher), and on windows 7 it should display WDDM: 1.1


'''Installing a Build'''
'''Installing a Build'''


Mozilla 1.9.3 (mozilla-central) builds as of Friday, February 26, 2010, contain support for Direct2D and DirectWrite. This also includes Mozilla 1.9.3 alpha 2.
Mozilla 2.0 (mozilla-central) builds contain support for Direct2D and DirectWrite. As of August 17, 2010, Direct2D and DirectWrite were turned on by default for DirectX 10 hardware.


'''Starting the build'''
'''Checking if you are running Direct2D'''


The best way to start is is to just run the firefox executable with a special d2d profile. (i.e. firefox -no-remote -P d2d) A second instance can then be ran in order to make comparisons on a different profile.
Look in 'about:support'. At or near the bottom, you will see an item that tells you whether Direct2D is enabled.


'''Using Direct2D'''
'''Using Direct2D if it is not turned on for you'''


By default, Direct2D and DirectWrite are turned off. Steps to turn it on:
By default, Direct2D and DirectWrite are turned on for DirectX 10 hardware. If you want to try to force it on (check about:support to see if it worked), follow these steps:


# Enter 'about:config'
# Enter 'about:config'
Line 29: Line 29:
# Double-click on 'mozilla.widget.render-mode' and change its value to 6
# Double-click on 'mozilla.widget.render-mode' and change its value to 6
# Restart the browser
# Restart the browser
Special note: If you disable DirectWrite using this method, Direct2D will also be turned off.
'''Turning off Direct2D'''
If you suspect Direct2D has caused a bug, you can check by turning off Direct2D:
# Enter 'about:config'
# Click through the warning, if necessary
# Enter render in the 'Filter' box
# Double-click on 'mozilla.widget.render-mode' and change its value to 0
# Restart the browser
To revert to the default behaviour, change 'mozilla.widget.render-mode' to -1.


'''Some good sites'''
'''Some good sites'''
Confirmed users
856

edits