显示标签为“硬件加速”的博文。显示所有博文
显示标签为“硬件加速”的博文。显示所有博文

Firefox 自带的 ClearType 硬件加速渲染参数

gfx.font_rendering.cleartype.always_use_for_content true
gfx.font_rendering.cleartype.use_for_downloadable_fonts true
cleartype 级别,0 100 100 最大;
gfx.font_rendering.cleartype_params.cleartype_level;100
对比度增强,0 100 100最大 ;
gfx.font_rendering.cleartype_params.enhanced_contrast;200
gamma 1.0 2.2,这里它是按照 cleartype 的注册表值来指派的,1000-2200/1000 对应 1.0 2.2
gfx.font_rendering.cleartype_params.gamma;2200
渲染像素结构,0 = flat, 1 = RGB, 2 = BGR 液晶就用RGB
gfx.font_rendering.cleartype_params.pixel_structure;1
渲染模式,0 = default, 1 = aliased, 2 = GDI Classic, 3 = GDI Natural,
4 = Natural, 5 = Natural Symmetric
;能开启次像素渲染 5 效果最好

gfx.font_rendering.cleartype_params.rendering_mode;5
其中 gfx.font_rendering.cleartype_params.enhanced_contrast 取值对字体浓淡影响较大,自己试试吧,数值越大越黑。

How to Enable WebGL for Blocked Graphics Cards in Firefox

火狐开启和关闭webGL方法

HTML5中有一项非常强大的3D画面显示技术——webGL。被称为Flash的替代者,SilverLight有力竞争者。WebGL是一项在网页浏览器体现3D画面的技术,有别于过往需加装浏览器插件,通过WebGL的技术,只需要编写网页代码即可实现3D图像的展示。WebGL的规格尚在发展中,由非营利的Khronos Group管理。

 








 推荐一些WebGL的3D小游戏:
经典鱼缸测试:这是一个经典的网页速度测试,电脑网速越快,鱼游的速度就越快,另外有多个场景可以切换,鱼的数量也可以设置。
Cycleblob:该游戏场景类似基于贪吃蛇游戏,可以通过上下左右键移动,并有多个关卡。
3D水母:该游戏有点单调,展示的是水底3D水母,并可以用鼠标来调整视角。
但是webGL目前存在一些问题,比如安全性问题(不知道现在解决了没有)。大多数安全专家建议,用户应该在浏览器中关闭WebGL,直到WebGL标准作出相应修正解决这一安全问题。

那么我们能不能随时打开和关闭webGL,只在使用时开启呢?以下为开启方法,关闭反之。
在地址栏输入about:config
找到webgl.disabled 设为false
找到webgl.force-enabled 设为true
WebGL is amazing. Take a look at X-Wing or First-Person Tetris in Firefox. What do you mean it’s not working?
My laptop’s two years old but, despite having a reasonable dedicated graphics card, WebGL is disabled in Firefox. Mozilla blacklist specific GPUs based on the driver version number, i.e.
  • NVIDIA cards require a driver numbered 8.17.12.5721 or greater
  • AMD/ATI cards are 8.741.0.0 or greater
  • Intel cards normally require 6.14.11 on XP, 7.15.10 on Vista or 8.15.10 on 7 (although some products are completely blocked)
  • Macs require OS version 10.6 or newer
In general, blacklisting is a good thing. You don’t want WebGL crashing the browser because your card doesn’t support the right number of Z/Stencil ROP Units, 128-bit floating point HDR, anisotropic texture filtering or some other bizarre feature no one understands.
Unfortunately, hardware vendors stop producing drivers for legacy products (anything released before last Tuesday). In some cases, your PC vendor will insist on releasing their own modified driver updates and there’s no guarantee they’ll do that. Your graphics card may be WebGL-compatible, but it’ll be blocked in Firefox if the driver version is 0.0.0.1 behind the approved list. Type “about:support” in the address bar and scroll down to the “Graphics” section at the bottom to discover whether your card is suitable.
And all you Chrome users can stop giggling — Google is adopting GPU blacklists in their browser shortly.

Big Red Warning

We’re about to bypass Firefox’s GPU blacklist. It’s a dumb thing to do and involves tinkering with dangerous configuration settings. Do this at your own risk: I can’t accept responsibility for any catastrophic PC failures, migraines, plagues, explosions or spontaneous human combustion caused by these changes … But it’s worth the risk to play X-Wing!

Here Be Dragons

Type about:config in Firefox’s address bar and make the following changes:
  • To enable WebGL, set webgl.force-enabled to true.
  • To enable Layers Acceleration, set layers.acceleration.force-enabled to true
  • To enable Direct2D in Windows Vista/7, set gfx.direct2d.force-enabled to true
Now, cross your fingers, restart Firefox and try running a WebGL application. It’s probably best to undo those changes if smoke starts pouring from your PC.

如何开启火狐浏览器的GPU加速

俗话说男女搭配,干活不累,CPU和GPU本来各司其职,相安无事多年。但近来人们对于计算机美学的要求越来越高,CPU对于GUI和网页的渲染略 显吃力,是时候让GPU除了游戏和3D制作领域之外有些作为。大势之下,Chrome 9,10、IE 9、Firefox 4一同走进GPU时代!chrome和IE都是默认开启了GPU加速,Firefox由于自定义性很高,可玩性也带来了麻烦,默认情况下3D加速只开启了 Direct2D,没有完全开启DirectWrite独立GPU


需要以下步骤:
  • 确认显卡是否支持DirectX 10,如图所示,我的是3100M,DDI(Device Driver Intrface)版本10.1,支持Direct2D;WDDM 1.1(Win7和Vista SP2支持),支持DirectWrite。

























  • 根据火狐的开发工程师AsaDotzler在博客中的介绍,火狐所采用的GPU加速文字处理采用了微软的DirectWriteDirect2D 两种接口,这两种接口集成在WindowsVista以及Windows7操作系统中,主要用于文本以及2D图像的GPU硬件加速功能。   不过,要想GPU加速文本的功能,不仅仅要下载最新的nightlyBuild火狐(Minefield)之外,还要通过以下方法操作才能开启该功能:
  • 1、进入about:config配置页面并搜索gfx.font
  • 2、双击 gfx.font_rendering.directwrite.enabled 打开这项功能;
  • 3、点右键新建一个integer,命名为mozilla.widget.render-mode
  • 4、为该integer赋值为6;
  • 5、重启浏览器。