LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: xytc

tnt2pro的显卡。为什么在redhat8。0下玩3d游戏都那么慢啊

[复制链接]
发表于 2002-11-24 21:20:05 | 显示全部楼层
[root@LinuxSir01 root]# glxgears
1276 frames in 5.0 seconds = 255.200 FPS
1498 frames in 5.0 seconds = 299.600 FPS
1562 frames in 5.0 seconds = 312.400 FPS
5429 frames in 5.0 seconds = 1085.800 FPS
11439 frames in 5.0 seconds = 2287.800 FPS
11368 frames in 5.0 seconds = 2273.600 FPS
11055 frames in 5.0 seconds = 2211.000 FPS
12041 frames in 5.0 seconds = 2408.200 FPS
11864 frames in 5.0 seconds = 2372.800 FPS
11891 frames in 5.0 seconds = 2378.200 FPS
7302 frames in 5.0 seconds = 1460.400 FPS
12367 frames in 5.0 seconds = 2473.400 FPS
12526 frames in 5.0 seconds = 2505.200 FPS
12169 frames in 5.0 seconds = 2433.800 FPS
11197 frames in 5.0 seconds = 2239.400 FPS
12297 frames in 5.0 seconds = 2459.400 FPS
11201 frames in 5.0 seconds = 2240.200 FPS
12625 frames in 5.0 seconds = 2525.000 FPS
12599 frames in 5.0 seconds = 2519.800 FPS
12693 frames in 5.0 seconds = 2538.600 FPS
10837 frames in 5.0 seconds = 2167.400 FPS
11814 frames in 5.0 seconds = 2362.800 FPS
11953 frames in 5.0 seconds = 2390.600 FPS
12657 frames in 5.0 seconds = 2531.400 FPS
12782 frames in 5.0 seconds = 2556.400 FPS
12169 frames in 5.0 seconds = 2433.800 FPS

这是我的。。我安装了NVIDIA的驱动后的效果。呵。如果不是pye和quanliking兄不说这个命令,我还不知道。。。。多多感谢。。又学了一招。。。。。
发表于 2002-11-24 21:20:55 | 显示全部楼层
还有一个问题是,
我装上显卡驱动以后,我的汉化不好使了。
很多程序都是乱码。
我是先汉化后驱的

我运行gmplayer时出现
================================
[root@show root]# gmplayer
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer 0.90pre10-3.2 (C) 2000-2002 Arpad Gereoffy (看DOCS!)

CPU: Intel Pentium 4 Xeon Foster (Family: 8, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
针对有扩展指令集x86 CPU编译: MMX MMX2 SSE SSE2

[cfg] read config file: /root/.mplayer/gui.conf
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0" => local display)
Reading /root/.mplayer/codecs.conf: can't open '/root/.mplayer/codecs.conf': No
such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 44 audio & 110 video codecs
font: can't open file: /root/.mplayer/font/font.desc
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (7649 chars)
使用Linux的硬件RTC计时(1024Hz)
Can't open input config file /root/.mplayer/input.conf : No such file or directory
Input config file /usr/local/etc/mplayer/input.conf parsed : 50 binds
SKIN dir 1: '/root/.mplayer/Skin'
SKIN dir 2: '/usr/local/share/mplayer/Skin'
[skin] file ( /usr/local/share/mplayer/Skin/default/skin ) not found.
The font "-misc-simsun-medium-r-normal--14-*-*-*-*-*-gb2312.1980-0,
-*-*-medium-r-normal--14-*-*-*-*-*-gb2312.1980-0,*-r-*" does not support all the required character sets for the current locale "zh_CN.GB18030"
  (Missing character set "ISO8859-1")
  (Missing character set "ISO8859-1")
  (Missing character set "GB2312.1980-0")
  (Missing character set "ISO10646-1")
The font "-misc-simsun-medium-r-normal--14-*-*-*-*-*-gb2312.1980-0,
-*-*-medium-r-normal--14-*-*-*-*-*-gb2312.1980-0,*-r-*" does not support all the required character sets for the current locale "zh_CN.GB18030"
  (Missing character set "ISO8859-1")
  (Missing character set "ISO8859-1")
  (Missing character set "GB2312.1980-0")
  (Missing character set "ISO10646-1")
找不到Skin( default ).

=========================================
XF86Config配置是:
# File generated by anaconda.

Section "ServerLayout"
        Identifier     "Anaconda Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Mouse1" "SendCoreEvents"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
# The location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        FontPath     "unix/:7100"
EndSection

Section "Module"
        Load "xtt"
        #Load "GLcore"
        #Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "dri"
        Load  "glx"
        Load  "record"
        #Load  "freetype"
        #Load  "type1"
EndSection

Section "InputDevice"
#        Option        "AutoRepeat"        "500 5"
# when using XQUEUE, comment out the above line, and uncomment the
# following line
#        Option        "rotocol"        "Xqueue"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#        Option        "Xleds"                "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
#        Option        "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#        Option        "XkbModel"        "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#        Option        "XkbModel"        "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#        Option        "XkbLayout"        "de"
# or:
#        Option        "XkbLayout"        "de"
#        Option        "XkbVariant"        "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#        Option        "XkbOptions"        "ctrl:swapcaps"
        #Option        "XkbOptions"        ""
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option            "XkbRules" "xfree86"
        Option            "XkbModel" "pc105"
        Option            "XkbLayout" "us"        #Option        "XkbVariant"        ""
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "rotocol" "IMPS/2"
        Option            "Device" "/dev/psaux"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "no"
EndSection

Section "InputDevice"
        Identifier  "Mouse1"
        Driver      "mouse"
        Option            "Device" "/dev/input/mice"
        Option            "rotocol" "IMPS/2"
        Option            "Emulate3Buttons" "no"
        Option            "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
        HorizSync    30.0 - 85.0
        VertRefresh  50.0 - 160.0
        #Option            "dpms"
EndSection

Section "Device"
        # no known options
        #BusID
        Identifier  "NVIDIA GeForce 2 MX (generic)"
        Driver      "nvidia"
        VendorName  "NVIDIA GeForce 2 MX (generic)"
        BoardName   "NVIDIA GeForce 2 MX (generic)"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "NVIDIA GeForce 2 MX (generic)"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Depth     24
                Modes    "1024x768" "800x600"
        EndSubSection
EndSection

Section "DRI"
        Mode         0666
EndSection

===========================================

汉化时我是照 这种方法作的:
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=8104
汉化后一切正常,但驱了以后就不行了。
发表于 2002-11-24 21:25:29 | 显示全部楼层
没有加汉化的路径。。要加上,否则不起作用。看一下这里。gmplayer问题太多,我不用mplayer,我用的是xine

用下面的来参考



# File generated by anaconda.

Section "ServerLayout"
Identifier "Anaconda Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

# The location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.

RgbPath "/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
如果汉化就把路径加在这里,如果不汉化,就不要加了
FontPath "unix/:7100"

EndSection

Section "Module"
Load "xtt"如果汉化了,在加上这一句没有汉化就不要加了
Load "GLcore"在这句的前面,要加一个#号
Load "dbe"在这句的前面,要加一个#号
Load "extmod"
Load "fbdevhw"
Load "dri"在这句的前面,要加一个#号
Load "glx"
Load "record"
Load "freetype"如果汉化了,也在这句的前面,要加一个#号;没有用汉化,就不要加#号了
Load "type1"如果汉化了,也在这句的前面,要加一个#号;没有用汉化,就不要加#号了
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"

# Option "AutoRepeat" "500 5"

# when using XQUEUE, comment out the above line, and uncomment the
# following line
# Option "rotocol" "Xqueue"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"

# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:nocaps"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc102"
Option "XkbLayout" "us"
Option "XkbVariant" "basic"
#Option "XkbOptions" ""
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "rotocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 30-62
VertRefresh 50-75
Option "dpms"在这句的前面,要加一个#号

# -- 1400x1050 --
# 1400x1050 @ 60Hz, 65.8 kHz hsync
Modeline "1400x1050" 129 1400 1464 1656 1960
1050 1051 1054 1100 +HSync +VSync

# 1400x1050 @ 70Hz, 76.8 kHz hsync
Modeline "1400x1050" 151 1400 1464 1656 1960
1050 1051 1054 1100 +HSync +VSync

# 1400x1050 @ 75Hz, 82.3 kHz hsync
Modeline "1400x1050" 162 1400 1464 1656 1960
1050 1051 1054 1100 +HSync +VSync

# 1400x1050 @ 85Hz, 93.2 kHz hsync
Modeline "1400x1050" 184 1400 1464 1656 1960
1050 1051 1054 1100 +HSync +VSync

EndSection

Section "Device"
# no known options
Identifier "NVIDIA GeForce 3 (generic)"
Driver "nv"在这里,要把nv改成nvidia
VendorName "NVIDIA GeForce 3 (generic)"
BoardName "NVIDIA GeForce 3 (generic)"

#BusID
EndSection

Section "Screen"
Identifier "Screen0"
Device "NVIDIA GeForce 3 (generic)"
Monitor "Monitor0"
DefaultDepth 24

Subsection "Display"
Depth 24
Modes "1024x768" "1024x768"
EndSubsection

EndSection

Section "DRI"
Mode 0666
EndSection
发表于 2002-11-24 21:37:37 | 显示全部楼层
ive的配置比我高很多阿,但我的glxgears速度有870以上。
上次在XF86Config-4的
Driver                "nvidia"
后面加上了
Option "backingstore" "true"

可能这样会更快。
(gforce2 mx400几千帧是不可能的,应该是因为别的窗口挡住了glxgears的窗口)
发表于 2002-11-24 22:43:25 | 显示全部楼层
加上Option "backingstore" "true"还是一样啊!
在700左右。
发表于 2002-11-25 00:02:43 | 显示全部楼层
呵呵,你实验过就不用我自己试了,反正这是显卡驱动的一个功能,开了也好。

在网上找到的关于backing store的解释:
有些 X Server 会帮视窗储存其内容, 当视窗的内容 lost 而需要重绘时, Server 会使用先前储存的
内容自动补回去, 这样的动作称为 backing store.
(择自 http://www.fanqiang.com/a4/b8/20010601/220800315.html)
发表于 2002-11-25 07:23:54 | 显示全部楼层
谢谢,
你很热心,真是个好人。
我实在是太喜欢这里了!
发表于 2002-11-25 08:15:23 | 显示全部楼层
能给我讲讲
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.

如果汉化就把路径加在这里,如果不汉化,就不要加了
FontPath "unix/:7100"
中汉化路径怎么加啊!

运行程序的时候总是出现:
The font "-misc-simsun-medium-r-normal--14-*-*-*-*-*-gb2312.1980-0,
-*-*-medium-r-normal--14-*-*-*-*-*-gb2312.1980-0,*-r-*" does not support all the required character sets for the current locale "zh_CN.GB18030"
  (Missing character set "ISO8859-1")
  (Missing character set "ISO8859-1")
  (Missing character set "GB2312.1980-0")
  (Missing character set "ISO10646-1")
The font "-misc-simsun-medium-r-normal--14-*-*-*-*-*-gb2312.1980-0,
-*-*-medium-r-normal--14-*-*-*-*-*-gb2312.1980-0,*-r-*" does not support all the required character sets for the current locale "zh_CN.GB18030"
  (Missing character set "ISO8859-1")
  (Missing character set "ISO8859-1")
  (Missing character set "GB2312.1980-0")
  (Missing character set "ISO10646-1")



我着急啊!我的GaimQQ,XMMS,mplayer...........好多东西都是乱码啊!
但Mozilla和Gnome都没有问题。
汉化是我照flysail作的
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=8104
驱动我是按下面的方法做的。
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=8024
我是先汉化后驱动的。
没有驱动前,汉化没有问题,很正常。
驱动完,就都是乱码了!:confused:  
发表于 2002-11-25 13:40:37 | 显示全部楼层
各位说清楚一点行吗?

那个命令glxgears 弹出来的窗口是可以拖动大小的,

各位的积分太高了些吧,我toy1,装过驱动1024*768*24

默认窗体大小,才420多分呀,移动窗口大小,分数变化明显喔,

900~1000++的时候都有,
发表于 2002-11-25 23:14:34 | 显示全部楼层
ive兄弟,我觉得我写的那个教程还是比较好用的,也没有那么多的步聚。建议试一下。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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