LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Low fps in 3D games (https://www.linuxquestions.org/questions/linux-newbie-8/low-fps-in-3d-games-697217/)

Icantmove 01-14-2009 05:52 AM

Low fps in 3D games
 
Hi everyone! 1st post. Had Debian for almost a week.

None of the 3D games I've got work well. The fps is something like 0.7.

Everything else (browsing, 2D games, etc.) will work fine. WinXP can run 3D games fine.
Seems to me it's a framebuffer (or lack thereof).
My card is a Matrox Millenium G400 (single display). 16MB VidRAM may not be a lot, but it's enough to run most of the older games I own (in WinXP).
The only diagnostic error message I can find is:

dmesg

[drm:mga_do_agp_dma_bootstrap] *ERROR* Unable to acquire AGP: -19
[drm] Initialized card for PCI DMA.

Other diagnostics:

glxinfo | grep render

direct rendering: Yes
OpenGL renderer string: Mesa DRI G400 20050609

glxgears is fine unless I move the cursor over the gears. I have no idea how you're supposed to see glxgears framerate.

lspci (trimmed)

00:00.0 Host bridge: Intel Corporation 82860 860 (Wombat) Chipset Host Bridge (MCH) (rev 04)
00:01.0 PCI bridge: Intel Corporation 82850 850 (Tehama) Chipset AGP Bridge (rev 04)
00:02.0 PCI bridge: Intel Corporation 82860 860 (Wombat) Chipset AGP Bridge (rev 04)
01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G400/G450 (rev 04)

Maybe this question is better suited for hardware...

EDIT:
Remembered about the drivers, downloaded the newest, install.sh doesn't work. Tried different ways of installing manually, managed to crash xorg once. The instructions on installing drivers don't help me at all.

luiz 55 01-14-2009 06:36 AM

You need to install a driver in order to get 3D acceleration, but sometimes the newest one is not compatible with the graphics card. You might be able to install an older version of the driver, just check its description. Even if you're sure it's not about compatibility, I think it should be easier to install another version.

GlennsPref 01-14-2009 06:36 AM

Hi, Welcome to LQ!

LQ has a fantastic search function that can save you time waiting for an answer. (no pun intended)

As for your Matrox Millenium G400, I've never used one,

maybe some one will respond to that part of your question.

glxgears, if run from a terminal like konsole(kde) or term,

usually outputs the frame rates (averaged) every 5 seconds. There's probably more options....

The gears them selves may be rotated within the box with the arrow keys. Check for smoothness.

Press Esc key to end or ctrl+c to quit the command in konsole/terminal.

drm/dri settings for agp are in the kernel config, (search here at LQ or google)..../dev/agpgart (AGP Support) (AGP)

some processors (cpu) like AMD have the agpgart on the cpu, others like Intel cpu's require the motherboard or graphics card to provide it.

current kernels provide for SiS, Intel and Via chipset support.

That's about it for me, Regards Glenn

ps. You may need to be root to install softwares, try

su [enter root password] then

cd to the directory where the file/package is.

sh ./install.sh

see how you go, regards Glenn

Icantmove 01-14-2009 07:41 AM

I knew about search (also the HCL), it didn't help much. It seems like LQ does a better job (see bottom of page).
Tried xterm, tcsh, bash, GNOME terminal, still no glxgears fps. Rotates fine, same cursor garble thing (only for nearest 50 pixels or so). glxgears is smooth unless I take the terminal or something and thrash it around the screen, or I've got lots of windows (like 15).
Quote:

:~$ cd Desktop/Downloads/matrox_driver-x86_32-4.4.0
:~/Desktop/Downloads/matrox_driver-x86_32-4.4.0$ sudo sh install.sh
Password:


========================================
Matrox Linux Driver Install Script
========================================

ERROR: The X server drivers included in this installation package
do not support the current version of your X server.

:~/Desktop/Downloads/matrox_driver-x86_32-4.4.0$
Quote:

Description of this release
===========================

This release of the Matrox display driver includes support for
Matrox G200, G400, G450 and G550 based graphics hardware.

This driver package includes previously released drivers for XFree86
versions 4.3.0 and X.org versions 6.7.0, 6.8.0, 6.8.1, 6.8.2, 6.9.0
and 7.0.0

.....

Binary install
==============

A working installation of XFree86 4.3.0, and X.org versions 6.7.0,
6.8.0, 6.8.1, 6.8.2, 6.9.0, 7.0.0 is required before the binaries
can be installed.

To extract the driver files, enter the following command where
<mga_filename> is the name of the driver file you want to extract:

tar xvzf <mga_filename>.tgz

cd mgadrivers

To install the drivers, run the script as "root" with no option:

sh install.sh

The install script prompts you to install both the XFree86 2D
driver ("mga_drv.o") and the HAL library ("mga_hal_drv.o"). Unless
otherwise specified, these files are placed in
"/usr/X11R6/lib/modules/drivers".

The installation script makes a back-up copy of "mga_drv.o" and,
if it exists, of "mga_hal_drv.o".

Also:
Quote:

:~$ cd /
:/$ cd lib/modules/2.6.18-6-686/kernel/drivers/char/agp
:/lib/modules/2.6.18-6-686/kernel/drivers/char/agp$ ls
agpgart.ko amd-k7-agp.ko intel-agp.ko sworks-agp.ko
ali-agp.ko ati-agp.ko nvidia-agp.ko via-agp.ko
amd64-agp.ko efficeon-agp.ko sis-agp.ko
:/lib/modules/2.6.18-6-686/kernel/drivers/char/agp$

What confuses me is the whole "recompile your kernel" business. agpgart.ko shows up as object code (in the search box) and from other things I've read it sounds like I have to recompile or something for the drivers, and maybe agpgart, to work. If I remember correctly, I had to apt-get agpgart.
I have tried reading what install.sh does and doing it manually. Totally useless.

GlennsPref 01-14-2009 08:05 AM

I was off topic, sorry.

So, What version of x do you have installed?

It may be too new, xorg 7.1 or what?

As I am not a debian user I should back off, it is quite different, although the agpgart modules are similar.

I was refering to the choices, with the Mandriva kernels, for agpgart that you can make static.

Unless you have to change the dri drm module, you probably won't have to recompile.

I think you need to match the driver module version with xorg version.


Cherrs, and good luck, Glenn

p.s. Watch the dates on the links below, some of them will be out dated. GW


All times are GMT -5. The time now is 04:49 AM.