LinuxSir.cn,穿越时空的Linuxsir!

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

F7下利用cedega 运行魔兽3的问题

[复制链接]
发表于 2007-6-7 20:04:13 | 显示全部楼层 |阅读模式
昨天看到cnspray发的一篇帖子(http://linuxsir.cn/bbs/showthread.php?t=304432),就下载了cedega来运行一下魔兽3冰封王座,但是进游戏后游戏声音正常,图像却支离破碎。
google了一下,看到有人说是因为显卡驱动的问题,我的是Intel 845集成显卡,用的是内核自带的810驱动,3D加速和OPENGL开启不了,不知道能不能通过修改文件或者更换驱动的方式来获得相应的性能?如果需要的话怎么修改或是换个什么驱动?哪位能帮一下,谢谢了。
[root@localhost Warcraft III]# glxinfo |grep render
libGL error: drmMap of framebuffer failed (Invalid argument)
libGL error: reverting to (slow) indirect rendering
direct rendering: No
OpenGL renderer string: Mesa DRI Intel(R) 845G 20061017 x86/MMX/SSE2

[root@localhost Warcraft III]# lspci
00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 03)
00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 82)
00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 02)
01:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
 楼主| 发表于 2007-6-7 20:13:52 | 显示全部楼层
[root@localhost Warcraft III]# glxgears
libGL error: drmMap of framebuffer failed (Invalid argument)
libGL error: reverting to (slow) indirect rendering
1556 frames in 5.1 seconds = 305.030 FPS
1500 frames in 5.1 seconds = 293.931 FPS
1514 frames in 5.2 seconds = 292.798 FPS
1633 frames in 5.1 seconds = 321.940 FPS
4068 frames in 5.1 seconds = 795.646 FPS
3955 frames in 5.1 seconds = 772.114 FPS
4407 frames in 5.0 seconds = 875.008 FPS
4407 frames in 5.0 seconds = 880.136 FPS
3955 frames in 5.1 seconds = 779.824 FPS
3390 frames in 5.0 seconds = 675.628 FPS
4533 frames in 5.1 seconds = 889.056 FPS
3955 frames in 5.0 seconds = 783.998 FPS
4520 frames in 5.2 seconds = 863.011 FPS
2938 frames in 5.1 seconds = 580.241 FPS
3616 frames in 5.0 seconds = 722.655 FPS
4294 frames in 5.0 seconds = 851.490 FPS
4181 frames in 5.1 seconds = 816.711 FPS
3955 frames in 5.1 seconds = 776.143 FPS
4181 frames in 5.1 seconds = 820.663 FPS
4181 frames in 5.1 seconds = 819.067 FPS
4181 frames in 5.1 seconds = 825.812 FPS
3736 frames in 5.1 seconds = 737.814 FPS
3390 frames in 5.0 seconds = 677.510 FPS
3503 frames in 5.0 seconds = 696.227 FPS
4407 frames in 5.0 seconds = 873.633 FPS
4479 frames in 5.0 seconds = 895.799 FPS
4448 frames in 5.1 seconds = 870.826 FPS
4294 frames in 5.1 seconds = 848.777 FPS
4520 frames in 5.1 seconds = 891.481 FPS
3918 frames in 5.1 seconds = 770.947 FPS
4294 frames in 5.1 seconds = 848.499 FPS
4181 frames in 5.1 seconds = 826.229 FPS

有人说在300FPS以上就行,那我这个也够了啊
是不是需要修改哪儿的设置?
回复 支持 反对

使用道具 举报

发表于 2007-6-7 20:21:46 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-7 20:33:34 | 显示全部楼层
[root@localhost Warcraft III]# rpm -ivh http://download.linuxsir.cn/inte ... 0040607_%20i386.rpm
Retrieving http://download.linuxsir.cn/inte ... 0040607_%20i386.rpm
Preparing...                ########################################### [100%]
   1:dri-I915               ########################################### [100%]
./install.sh: line 284: [: ==: unary operator expected
ERROR: Kernel modules did not compile
The DRI drivers can not be installed without the latest kernel modules.
Installation will be aborted. See the dri.log file for information on
what went wrong.
Package is installed, but not configured.
You'll need to use rpm -e to remove this package before re-installing.

这个驱动应该和F7集成的一样吧?错误原因说没有配置,请问一下在哪里配置?
回复 支持 反对

使用道具 举报

发表于 2007-6-7 21:05:12 | 显示全部楼层
把这个包删除了后,下载另外的那个tar安装试试看行不行,我也是菜菜啊!以下是这个驱动的redme的一部份,你看看有没有帮助?
* 3. INSTALLING THE SOFTWARE
************************************************************

General Installation Notes:

- The operating system must be installed prior to the
installation of the driver.

- This installation procedure is specific only to the
version of driver and installation file included in this
release.

- This procedure assumes that all of the software
associated with this release is located in the same
directory.

- Updating the kernel after installing the driver files
requires that you install header files for your new
kernel, delete the existing folder containing files
extracted from the tar.gz file and re-extract the
files. This removes files compiled under your old
kernel.

- Some distributions use "XF86Config" while others
use "XF86Config-4" for compatibility reasons.

- Modify the instructions as appropriate for your
distribution

1. Install Linux

2. Log in as root or as a superuser

3. Install kernel headers

a. For Red Hat 7.3, this is on CD2:
/RedHat/RPMS/kernel-source-2.4.18-3.i386.rpm

b. Alternately, load your kernel config file,
save the config, and run “make dep”

4. Extract the downloaded files:

a. tar –zxvf 20030106-i386-Linux.tar.gz

5. Ensure X Windows is not running

6. cd dripkg

7. ./install.sh

8. Follow the prompts; most users should be able to press
“Enter” at each prompt

9. Make a backup copy of your XF86Config-4 file

10. Modify the XF86Config-4 file by _ONE_ of three methods:

a. Use a text editor to modify section “Device” –
modify “Driver” entry to read “i810”

b. _OR_ run ‘Xconfigurator,’ selecting “Intel 830”
from the list

c. _OR_ run ‘X –configure’ the edit ~/XF86Config.new

i. Immediately after the “Monitor” line in
the "Screen" section, add
‘DefaultDepth 16’

ii. At the end of the file (if not already
there), add:

Section "DRI"
Mode 0666
EndSection

iii.Make the new config file the default by
copying it to XF86Config-4:
1. cp ~/XF86Config.new
/etc/X11/XF86Config-4

11. Log out of root or superuser

12. startx
这里有一篇,你看看有没有帮助?
http://www.linuxsir.cn/bbs/showt ... highlight=intel+845
回复 支持 反对

使用道具 举报

发表于 2007-6-7 21:29:05 | 显示全部楼层
[root@alaulong ~]# glxgears
7953 frames in 5.0 seconds = 1585.205 FPS
7440 frames in 5.0 seconds = 1487.060 FPS
7440 frames in 5.1 seconds = 1469.856 FPS
16200 frames in 5.0 seconds = 3224.908 FPS
17553 frames in 5.0 seconds = 3490.909 FPS
16200 frames in 5.0 seconds = 3218.991 FPS
17027 frames in 5.0 seconds = 3385.795 FPS
17640 frames in 5.0 seconds = 3507.241 FPS
17267 frames in 5.0 seconds = 3451.777 FPS
16680 frames in 5.0 seconds = 3326.442 FPS
15467 frames in 5.0 seconds = 3076.603 FPS
16440 frames in 5.0 seconds = 3286.093 FPS
16427 frames in 5.0 seconds = 3273.839 FPS
16800 frames in 5.0 seconds = 3358.871 FPS
17387 frames in 5.0 seconds = 3471.347 FPS
17040 frames in 5.0 seconds = 3404.206 FPS
17027 frames in 5.0 seconds = 3401.544 FPS
17400 frames in 5.0 seconds = 3461.657 FPS
17027 frames in 5.0 seconds = 3383.923 FPS
15960 frames in 5.0 seconds = 3175.061 FPS
15107 frames in 5.1 seconds = 2984.327 FPS
12827 frames in 5.0 seconds = 2558.204 FPS
17040 frames in 5.0 seconds = 3386.025 FPS
17400 frames in 5.0 seconds = 3479.235 FPS
16787 frames in 5.0 seconds = 3351.619 FPS
16440 frames in 5.0 seconds = 3286.213 FPS
16787 frames in 5.0 seconds = 3352.027 FPS
16800 frames in 5.0 seconds = 3354.033 FPS
15227 frames in 5.0 seconds = 3043.065 FPS
16920 frames in 5.0 seconds = 3374.180 FPS
15947 frames in 5.0 seconds = 3169.648 FPS
16080 frames in 5.0 seconds = 3208.894 FPS
16427 frames in 5.0 seconds = 3267.747 FPS
16920 frames in 5.0 seconds = 3372.891 FPS
16187 frames in 5.0 seconds = 3227.037 FPS
16200 frames in 5.0 seconds = 3219.388 FPS
15707 frames in 5.0 seconds = 3135.711 FPS
9720 frames in 5.1 seconds = 1924.228 FPS
13560 frames in 5.0 seconds = 2699.133 FPS
14400 frames in 5.0 seconds = 2868.729 FPS
16393 frames in 5.0 seconds = 3251.247 FPS
14160 frames in 5.0 seconds = 2813.837 FPS
17027 frames in 5.0 seconds = 3382.895 FPS
17040 frames in 5.0 seconds = 3396.112 FPS
17147 frames in 5.0 seconds = 3412.403 FPS
15240 frames in 5.0 seconds = 3031.635 FPS
16067 frames in 5.0 seconds = 3203.431 FPS
16440 frames in 5.0 seconds = 3279.195 FPS
我的测试结果是这个,魔兽卡死,根本就进不去。上边的值是什么意思??
回复 支持 反对

使用道具 举报

发表于 2007-6-7 21:41:15 | 显示全部楼层
应该是测试3D加速的吧?运行glxinfo | grep rendering试试你的OpenGl开了没有?
回复 支持 反对

使用道具 举报

发表于 2007-6-7 21:49:36 | 显示全部楼层
楼主用D版???
回复 支持 反对

使用道具 举报

发表于 2007-6-7 21:49:42 | 显示全部楼层
楼主用D版???
回复 支持 反对

使用道具 举报

发表于 2007-6-7 21:59:51 | 显示全部楼层
OpenGl没有开,怎么能打开?
回复 支持 反对

使用道具 举报

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

本版积分规则

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