Platform/GFX/Direct2DDemo: Difference between revisions

(Created page with '= Demoing Direct2D = Since there are occasions where people might want to demonstrate Direct2D browser hardware acceleration. I'll briefly describe here how to do this. '''Requ…')
 
Line 13: Line 13:
'''Installing a Build'''
'''Installing a Build'''


Right now I have the latest build stored [http://www.bassified.nl/firefox-3.7a1pre.en-US.win32.d2d.2009.12.3.zip on my server]. Until we have the DirectX SDK installed on the try servers. This is a build without PGO, with a simple --disable-debug --enable-release mozconfig. Its performance should not be compared to normal build server builds at this point.
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.


'''Starting the build'''
'''Starting the build'''
Line 19: Line 19:
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.
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.


'''Using GDI'''
'''Using Direct2D'''


To compare or demo the performance difference it's possible to use GDI in one of my builds. Create a separate profile for your GDI version. And for that profile set the 'font.engine.forcegdi' pref to true. Note that if you do this from about:config it will need a restart before it starts using GDI.
By default, Direct2D and DirectWrite are turned off. Steps to turn it on:
 
# Enter 'about:config'
# Click through the warning, if necessary
# Enter gfx.font in the 'Filter' box
# Double-click on 'gfx.font_rendering.directwrite.enabled' to set it to true
# Below this, right click and select New > Integer to add a pref setting
# Enter 'mozilla.widget.render-mode' for the preference name, 6 for the value
# Restart


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

edits