分页: 1 / 3

[分享]提升ati商业驱动在compiz下的性能,3/21 更新

发表于 : 2008-02-20 0:35
zhuqin_83
这个是最近才出来的新选项,修改xorg.conf,非完美解决之前的2D缓慢(如firefox等拖动有迟钝感)的问题。说没完美是因为依然还能觉察出迟钝,在arch下,xorg7.3 xserver 1.4pre,感觉还不如xf86-video-ati 6.7.197打开exa快。(ubuntu7.10应该是6.7.196的,开启exa会崩溃。)

参考 http://forum.compiz-fusion.org/showthread.php?t=6794

找到 Section "ServerLayout"
添加Option "AIGLX" "on" 以打开aiglx支持(其实不加也行,会自动加载)

找到 Section "Device" 并添加
Option "XAANoOffscreenPixmaps" "on" ->这个必备!
Option "TexturedVideo" "on" ->AVIVO加速,非常重要的新特性!但对于x1050之前的显卡必须是off。见注释0
Option "VideoOverlay" "off" ->x1050及以上显卡必须有这一行,光光删除是不够的,但之前的必须是on。见注释0
Option "OpenGLOverlay" "off" ->同上
Option "Textured2D" "on" ->见注释1,最好加上
Option "TexturedXrender" "on" ->见注释2,最好加上
Option "UseFastTLS" "1" ->打开fast thread local storage。如果在虚拟机下或者用wine请关闭
Option "BackingStore" "on" ->很有用!见注释3

找到 Section "Screen"
DefaultDepth 24

找到 Section "DRI"(不要也成)添加
Mode 0666

找到 Section "Extensions": ->见注释5,添加:
Option "RENDER" "Enable"
Option "DAMAGE" "Enable"
Option "Composite" "Enable"(不加也行)
Option "XVideo" "Enable" (不加也行,一般会自动加载)

注释0:
First we simply specify Option "OpenGLOverlay" "off" in order to make sure it doesn't load cause it drains most of our CPU power under playback and offers nothing useful.
Now we must decide according to our card model which of the 2 others we will use...

For cards older thanX1050 we must have this video setup:
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "TexturedVideo" "off"

For cards newer than X1050 and IGPs we must have this one:
Option "VideoOverlay" "off"
Option "OpenGLOverlay" "off"
Option "TexturedVideo" "on"
Also please see these 2 posts by John Bridgman from AMD which really explain a lot!
http://phoronix.com/forums/showpost....&postcount=184
http://phoronix.com/forums/showpost....&postcount=182

注释 1:
Textured2D option utilizes a new 2D acceleration mechanism of the driver which really boosts up 2D performance and behaviour! It also loads GLESX module. (I have seen a 9550 old Radeon easily overcome at 2D performance my X1250 with this option!)
Important when works cause it improves the slow windowed scrolling problem every ATI user faces when use Compiz-Fusion with AIGLX and fglrx driver. BE CAREFUL with that! It is a hidden option and it may NOT work with all ATI cards! If you cannot connect to X server or face strange colours just commend it out at xorg.conf or set it to "off"But Try it! Really worths checking! Now it works for IGPs too, from 8.2 and on driver (Works for my X1250!) At 8.3 driver this is working even better!

注释 2:
TexturedXRender option gives the Textured2D mechanism the ability to use the advanced features that Xorg's RENDER extension provides and really make things even better for 2D visuals!

注释 3:
Backing Store option engages an Xorg's mechanism which stores graphics that have been rendered and so the card doesn't have to re-render the same things. BUT it can cause screen artifacts if you don't use Compiz-Fusion.

注释 4:
The first extension must be enabled to be used with the "TexturedXrender" option.
The 2 following ones are needed for getting Compiz-Fusion working.
The last one is used to enable XV video (optional cause it is usually loaded by default). (Video playback with Compiz-Fusion enabled is still a problem, at least for windowed mode).

注释 5:
If you want to have fast fullscreen 3D(unfortunately still blinks) and good fullscreen video(without blinking here!) you must check the box at CompizConfigSettingsManager->General Options->Unredirect Fullscreen Windows But be careful cause in some 3D games your mouse pointer may stop function!! No problem in RACER, but pointer may not work in Sauerbraten and Neverball, test it. I have a feeling that the pointer fullscreen problem doesn't exist under Compiz 0.7, but don't know for sure!

注释 6: ->For Xorg 7.3 users(8.04的要看)
Guys please make sure to install the latest Catalyst driver!! I checked it (official changelog doesn't mention it though) from 8.2 and on Compiz-Fusion is working under Xorg 7.3!(我在arch下试过了,确实可用,自然8.04也可以)

注释 7: ->The /etc/ati/amdpcsdb problem...
In order for our changes to really take affect we have to deal now with amdpcsdb file...
The fact is that in this file is recorded everything considering fglrx's functions from amdcccle's settings to xorg.conf's options!
Fglrx loads whatever this file has recorded, meaning that it will totally ignore the changes we make at xorg.conf file by hand and fglrx will load the previously recorded options!!
Really bad...
The solution is:
You must add an option via aticonfig tool (no matter if it already exists at your xorg.conf) for example:
aticonfig --input=/etc/X11/xorg.conf --tls=1
every time you make a change by hand at your xorg.conf.

发表于 : 2008-02-20 0:41
zhuqin_83
题外话,继续用我的开源驱动,同时等待6.8进入源,嘿嘿 :twisted:

发表于 : 2008-02-21 17:09
jarryson
在archlinux论坛已经看到过了,我这里不能开启那几个选项,我不用compiz,开了Option "Textured2D" "on"然后使用xfce4混合,会让屏幕反色,很奇特的现象。。。

Option "TexturedVideo" "on"
Option "TexturedXrender" "on"

加上则会使一播放mplayer就x崩溃

剩下的倒是加上了

发表于 : 2008-03-06 9:36
yang_hui1986527
支持哪些型号的显卡啊?

发表于 : 2008-03-06 10:09
zhuqin_83
xfce4 composite性能比较差的。本来这几个选项只是实验性的,官方都没有任何宣告,xvideo倒是正式的。
反正我继续用开源驱动。

回ls,不知道,试试不行么?

发表于 : 2008-03-06 16:11
kingwanna
我按照楼主的指导使用之后,3D明显有拖延现象,我的是FireGL mobility T2,笔记本用专业显卡,glxgears的分很低的

发表于 : 2008-03-06 16:17
yysq009
不知道是我设置问题 还是ATI驱动问题。。
同样的电影 我是9550显卡 使用XV来看 和在WIN下 来比较 明显WIN要清晰 细腻很多。。。
回去看看 加入些zhuqin 参数看看!!!

不知道新驱动 什么时候能进 arch源!!!

发表于 : 2008-03-08 0:18
tommy007
compiz开启后的XV闪烁的问题。。。。

发表于 : 2008-03-08 1:23
zhuqin_83
闪烁的问题就是需要打补丁的mplayer。

发表于 : 2008-03-08 10:35
仍然未满
按照楼主改了以后进不了图形界面。。。

发表于 : 2008-03-10 11:40
zhuqin_83
今日更新

发表于 : 2008-03-11 16:04
tommy007
需要打补丁的mplayer?
具体说说看吧。
texturedvideo下,视频明显有拖慢,cpu占用变高
texturedvideosync on后还是有点拖慢。。

发表于 : 2008-03-12 11:38
artistf
zhuqin_83 写了:题外话,继续用我的开源驱动,同时等待6.8进入源,嘿嘿 :twisted:
老大,开源似乎开不了特效啊,您说的6.8指什么?开源驱动版本?我按照你的方法装了8.1成功开了特效,但再装8.8就失败了,我现在干脆重装用了自带的开源驱动,不开特效但是totem打开后自动关闭怎么回事啊?还有就是F1到F6的控制台都没了,只有光标闪。A卡什么时候能像N卡一样开了受限驱动就能开特效啊?

发表于 : 2008-03-12 12:36
zhuqin_83
开不了?你什么卡,太新的不支持。ubuntu自带的版本低了。
totem从来不用,你用终端打开看错误报告。至于控制台么,点我签名档。受限驱动实在太老,不要指望了。这也是我从ubuntu转到arch的一个原因。

发表于 : 2008-03-21 14:50
zhuqin_83
今日更新。