LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1242|回复: 16

3d 加速的问题

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

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

谢谢大家了
发表于 2010-2-6 09:06:29 | 显示全部楼层
看看你的xorg.conf
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-2-6 16:10:14 | 显示全部楼层
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            "rotocol" "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     "ageFlip"                   # [<bool>]
        Identifier  "Card0"
        Driver      "intel"
        VendorName  "Intel Corporation"
        BoardName   "Mobile 915GM/GMS/910GML Express Graphics Controller"
        BusID       "CI: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
回复 支持 反对

使用道具 举报

发表于 2010-2-6 17:07:23 | 显示全部楼层
Intel的啊,sorry不清楚,我只用过nvidia和ati。楼主你看看:
http://wiki.archlinux.org/index.php/Intel#Drivers
回复 支持 反对

使用道具 举报

发表于 2010-2-6 20:14:36 | 显示全部楼层
glxinfo |grep OpenGL看看?
回复 支持 反对

使用道具 举报

发表于 2010-2-6 20:54:18 | 显示全部楼层
我这里从12月底intel-dri和libgl-dri自动更新到7.7-1之后glx就没正常过:执行glxinfo会报错退出,其他opengl程序只能运行在仿真模式。
今天发现一台用mach64的服务器也存在相同问题,两个包降级成7.6.1-1总算解决了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-2-6 21:38:15 | 显示全部楼层
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:
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-2-6 21:38:55 | 显示全部楼层
Post by xsam;2067815
Intel的啊,sorry不清楚,我只用过nvidia和ati。楼主你看看:
http://wiki.archlinux.org/index.php/Intel#Drivers


恩,谢谢了~~
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-2-6 23:02:31 | 显示全部楼层
谢谢楼上的几位。

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

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

还有一定要用最新的intel驱动,用yaourt下载编译安装~~
回复 支持 反对

使用道具 举报

发表于 2010-2-7 00:28:54 | 显示全部楼层
intel的有UXA干嘛不用。。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表