LinuxSir.cn,穿越时空的Linuxsir!

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

这个glxgears的输出正常吗?

[复制链接]
发表于 2009-7-23 09:22:54 | 显示全部楼层 |阅读模式
硬件如下:

cpu是amd的5200+,

显卡是nvidia的9500gt有256M的ddr3显存,

显示器是菲利普的190vw9,

----------------------------------------------------------------------

主要参考资料:http://www.gentoo.org/doc/en/dri-howto.xml

按照文档,在这一步,我没有找到自己的显卡,
  1. Processor type and features --->
  2. <*> MTRR (Memory Type Range Register) support
  3. Device drivers --->
  4.    Graphics support --->
  5.    <M> /dev/agpgart (AGP Support) --->
  6.       (The agpgart option is not present on 64-bit kernels; just choose your chipset support.)
  7.       <M> Intel 440LX/BX/GX, I8xx and E7x05 support
  8.       (Enable your chipset instead of the above.)
  9.    <M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
  10.       <M> (Select your graphics card from the list)
复制代码

但是我运行glxinfo | grep rendering命令时输出如下:
direct rendering: Yes

但是我感觉cpu占用有点高啊,详细看图。

xorg.conf内容如下:
  1. Section "ServerLayout"
  2.         Identifier     "X.org Configured"
  3.         Screen      0  "Screen0" 0 0
  4.         InputDevice    "Mouse0" "CorePointer"
  5.         InputDevice    "Keyboard0" "CoreKeyboard"
  6. EndSection
  7. Section "Files"
  8.         ModulePath   "/usr/lib64/xorg/modules"
  9.         FontPath     "/usr/share/fonts/misc/"
  10.         FontPath     "/usr/share/fonts/TTF/"
  11.         FontPath     "/usr/share/fonts/OTF"
  12.         FontPath     "/usr/share/fonts/Type1/"
  13.         FontPath     "/usr/share/fonts/100dpi/"
  14.         FontPath     "/usr/share/fonts/75dpi/"
  15. EndSection
  16. Section "Module"
  17.         Load  "dbe"
  18.         Load  "dri"
  19.         Load  "xtrap"
  20.         Load  "extmod"
  21.         Load  "record"
  22.         Load  "glx"
  23. EndSection
  24. Section "InputDevice"
  25.         Identifier  "Keyboard0"
  26.         Driver      "kbd"
  27. EndSection
  28. Section "InputDevice"
  29.         Identifier  "Mouse0"
  30.         Driver      "mouse"
  31.         Option            "Protocol" "auto"
  32.         Option            "Device" "/dev/input/mice"
  33.         Option            "ZAxisMapping" "4 5 6 7"
  34. EndSection
  35. Section "Monitor"
  36.         Identifier   "Monitor0"
  37.         VendorName   "Monitor Vendor"
  38.         ModelName    "Monitor Model"
  39.         HorizSync        30-83
  40.         VertRefresh        56-75
  41.         Option                "DPMS"
  42. EndSection
  43. Section "Device"
  44.         Identifier  "Card0"
  45.         Driver      "nvidia"
  46.         VendorName  "nVidia Corporation"
  47.         BoardName   "Unknown Board"
  48.         BusID       "PCI:1:0:0"
  49. EndSection
  50. Section "Screen"
  51.         Identifier "Screen0"
  52.         Device     "Card0"
  53.         Monitor    "Monitor0"
  54.         DefaultDepth        24
  55.         SubSection "Display"
  56.                 Viewport   0 0
  57.                 Depth     24
  58.                 Modes        "1440x900"
  59.         EndSubSection
  60. EndSection
复制代码

相关软件包信息如下:
  1. $ emerge --search nvidia
  2. Searching...   
  3. [ Results for search key : nvidia ]
  4. [ Applications found : 6 ]
  5. *  dev-util/nvidia-cuda-profiler [ Masked ]
  6.       Latest version available: 1.1
  7.       Latest version installed: [ Not Installed ]
  8.       Size of files: 6,878 kB
  9.       Homepage:      http://developer.nvidia.com/cuda
  10.       Description:   NVIDIA CUDA Visual Profiler
  11.       License:       NVIDIA
  12. *  dev-util/nvidia-cuda-sdk [ Masked ]
  13.       Latest version available: 2.2-r1
  14.       Latest version installed: [ Not Installed ]
  15.       Size of files: 54,639 kB
  16.       Homepage:      http://developer.nvidia.com/cuda
  17.       Description:   NVIDIA CUDA Software Development Kit
  18.       License:       CUDPP
  19. *  dev-util/nvidia-cuda-toolkit [ Masked ]
  20.       Latest version available: 2.2-r2
  21.       Latest version installed: [ Not Installed ]
  22.       Size of files: 58,977 kB
  23.       Homepage:      http://developer.nvidia.com/cuda
  24.       Description:   NVIDIA CUDA Toolkit
  25.       License:       NVIDIA
  26. *  media-gfx/nvidia-cg-toolkit
  27.       Latest version available: 2.1.0012
  28.       Latest version installed: [ Not Installed ]
  29.       Size of files: 27,412 kB
  30.       Homepage:      http://developer.nvidia.com/object/cg_toolkit.html
  31.       Description:   nvidia's c graphics compiler toolkit
  32.       License:       NVIDIA
  33. *  media-video/nvidia-settings
  34.       Latest version available: 180.29
  35.       Latest version installed: [ Not Installed ]
  36.       Size of files: 1,310 kB
  37.       Homepage:      http://www.nvidia.com/
  38.       Description:   NVIDIA Linux X11 Settings Utility
  39.       License:       GPL-2
  40. *  x11-drivers/nvidia-drivers
  41.       Latest version available: 180.29
  42.       Latest version installed: 180.29
  43.       Size of files: 51,046 kB
  44.       Homepage:      http://www.nvidia.com/
  45.       Description:   NVIDIA X11 driver and GLX libraries
  46.       License:       NVIDIA
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2009-7-23 10:03:12 | 显示全部楼层
我在另外的一台集成intel显卡的debian上运行glxinfo,结果如下:
  1. glxinfo | grep rendering
  2. direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
复制代码

但是运行glxgears时fps居然和gentoo的那个机器数值差不多, :yun:

具体内容看图。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2009-7-23 11:21:18 | 显示全部楼层
你 该装官方驱动的!!
9500gt该好几k的,我的1600都3k多!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-23 12:13:24 | 显示全部楼层

Seems soved.

I forgot this: http://www.gentoo.org/doc/en/nvidia-guide.xml

:yun:

Next time, when I encounter some "strange" problem I will check our documentation firstly.

Now the pfs value is reasonable, but the cpu useage is still high than I expected.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2009-7-23 13:35:15 | 显示全部楼层
肯定不正常,估计应该要有4000~6000,compiz开启后。
回复 支持 反对

使用道具 举报

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

本版积分规则

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