+ -
当前位置:首页 → 问答吧 → 3d 加速的问题

3d 加速的问题

时间:2010-02-06

来源:互联网

小弟最近在linux下装了个flightgear,出了不少问题,实在解决不了了,前来求助各位。
开始的时候进入游戏极卡,基本上是一秒卡一下,一卡卡一秒,而且画面非常暗淡,基本看不到游戏面板,逛了n多论坛,改了很多配置项,最后把3d加速更改到EXA,终于不卡了,但是进入游戏之后就退出了,我不死心,又下载了几个3d游戏,发现都是一样的问题,要么进去就退出了,要不就是玩儿一会儿就退出,终端显示的都是已杀死。郁闷阿~帮帮我吧。。。

我知道自己的显卡很老intel i915,内存也不行512MB,但是以前Ubuntu的时候还是很好用的,什么3D游戏都可以跑阿,不知道为什么ARCH就不成了。。。各位好心人帮帮我吧~

谢谢大家了

作者: buaacss   发布时间: 2010-02-06

看看你的xorg.conf

作者: xsam   发布时间: 2010-02-06

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/100dpi:unscaled"
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/Type1"
EndSection

Section "Module"
Load "dri"
Load "glx"
Load "extmod"
Load "dbe"
load "xtrap"
load "GLcore"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "ColorKey" # <i>
#Option "CacheLines" # <i>
#Option "Dac6Bit" # [<bool>]
#Option "DRI" # [<bool>]
#Option "NoDDC" # [<bool>]
#Option "ShowCache" # [<bool>]
#Option "XvMCSurfaces" # <i>
#Option "PageFlip" # [<bool>]
Identifier "Card0"
Driver "intel"
VendorName "Intel Corporation"
BoardName "Mobile 915GM/GMS/910GML Express Graphics Controller"
BusID "PCI:0:2:0"
#Option "DRI" "True"
#Option "NoDDC" "True"
#Option "EnablePageFlip" "True"
#Option "RenderAccel" "True"
#Option "AddARGBGLXVisuals" "True"
#Option "AccelMethod" "EXA"
#Option "MigrationHeuristic" "greedy"

EndSection

Section "Extensions"
Option "Composite" "Enable"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

作者: buaacss   发布时间: 2010-02-06

Intel的啊,sorry不清楚,我只用过nvidia和ati。楼主你看看:
http://wiki.archlinux.org/index.php/Intel#Drivers

作者: xsam   发布时间: 2010-02-06

glxinfo |grep OpenGL看看?

作者: jarryson   发布时间: 2010-02-07

我这里从12月底intel-dri和libgl-dri自动更新到7.7-1之后glx就没正常过:执行glxinfo会报错退出,其他opengl程序只能运行在仿真模式。
今天发现一台用mach64的服务器也存在相同问题,两个包降级成7.6.1-1总算解决了。

作者: lifc   发布时间: 2010-02-07

OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) 915GM GEM 20091221 2009Q4 x86/MMX/SSE2
OpenGL version string: 1.4 Mesa 7.7
OpenGL extensions:

作者: buaacss   发布时间: 2010-02-07

引用:
作者: xsam
Intel的啊,sorry不清楚,我只用过nvidia和ati。楼主你看看:
http://wiki.archlinux.org/index.php/Intel#Drivers
恩,谢谢了~~

作者: buaacss   发布时间: 2010-02-07

谢谢楼上的几位。

我在把自己加到用户组之后确实解决了一些问题,但是flightgear还是不行,有声无影,应该是本本老了,跑不动了,算了吧

说一下,跑3D最好在xorg.conf中的Section "Device"添加如下两个选项
Option "AccelMethod" "EXA"
Option "MigrationHeuristic" "greedy"
XAA的渲染是有问题的,不要用那个

还有一定要用最新的intel驱动,用yaourt下载编译安装~~

作者: buaacss   发布时间: 2010-02-07

intel的有UXA干嘛不用。。。

作者: jarryson   发布时间: 2010-02-07

引用:
作者: jarryson
intel的有UXA干嘛不用。。。
呃,对不起,我不知道,误导大家了,谢谢指正

UXA确实比EXA快,但是我这里的flightgear依然无法使用。。。

作者: buaacss   发布时间: 2010-02-07

你去掉xorg.conf,开KMS进X试试看吧。

作者: Alerander   发布时间: 2010-02-07

我跟楼主的差不多,i915集成显卡,ubuntu 下面 glxgears 能跑 1100,到了 arch 就只能跑 500。检查了所有地方,并无问题,3D已经成功驱动,而且并非是模拟模式。只是效率确实不行,偶只能认为是intel驱动的版本不同。明显在 arch 中开同样的特效要卡一些。至于 xorg.conf 文件,那是和 ubuntu 完全一致的。

其实就 Linux 而言 intel 显卡真不是什么好选择,毕竟每个发行版都千差万别,每个发行版的不同版本的表现也千差万别,不象 N 卡就一个驱动打遍天下都没问题。

作者: poet   发布时间: 2010-02-07

引用:
作者: poet
我跟楼主的差不多,i915集成显卡,ubuntu 下面 glxgears 能跑 1100,到了 arch 就只能跑 500。检查了所有地方,并无问题,3D已经成功驱动,而且并非是模拟模式。只是效率确实不行,偶只能认为是intel驱动的版本不同。明显在 arch 中开同样的特效要卡一些。至于 xorg.conf 文件,那是和 ubuntu 完全一致的。

其实就 Linux 而言 intel 显卡真不是什么好选择,毕竟每个发行版都千差万别,每个发行版的不同版本的表现也千差万别,不象 N 卡就一个驱动打遍天下都没问题。
Arch可能有的一个问题就是mesa, drm还有DDX驱动版本之间配合的不够好,毕竟是rolling release嘛,总有超前更新的模块。这从glxgears随着版本升级的变化多端就能看出来。我这里的INTEL X4500MHD最高的时候曾经到1200多,最低的时候才300多。目前几次graphics模块更新后稳定在500左右。

但总的来说intel显卡要比ati省心多了,特别对我这种没什么太大3D要求的人来说。

作者: Alerander   发布时间: 2010-02-07

引用:
作者: Alerander
Arch可能有的一个问题就是mesa, drm还有DDX驱动版本之间配合的不够好,毕竟是rolling release嘛,总有超前更新的模块。这从glxgears随着版本升级的变化多端就能看出来。我这里的INTEL X4500MHD最高的时候曾经到1200多,最低的时候才300多。目前几次graphics模块更新后稳定在500左右。

但总的来说intel显卡要比ati省心多了,特别对我这种没什么太大3D要求的人来说。
现在ATI的开源驱动也很省心(对R500、R600、R700而言)
ATI比较新一点的卡(3系、4系、5系)就比较杯具了。

作者: Kevin_Chou   发布时间: 2010-02-07

引用:
作者: Kevin_Chou
现在ATI的开源驱动也很省心(对R500、R600、R700而言)
ATI比较新一点的卡(3系、4系、5系)就比较杯具了。
3系4系的卡就是R600,R700芯片~

作者: Alerander   发布时间: 2010-02-07

引用:
作者: Alerander
你去掉xorg.conf,开KMS进X试试看吧。
嗯,我kms开过之后也没什么太大变化。。。

作者: buaacss   发布时间: 2010-02-08