Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Low fps with dri
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
crazedcougar
Tux's lil' helper
Tux's lil' helper


Joined: 16 Dec 2003
Posts: 144
Location: GMT -5

PostPosted: Wed Apr 13, 2005 5:16 pm    Post subject: Low fps with dri Reply with quote

Hi,

I have an amd64 (3000+) with nvidia mobo chipset and the ati radeon 9600. I finally got DRI working (woohoo!) but now im running glxgears and it says 800 FPS. What could be making it slow? (my resolutun is 1280x1024, 16 bit color, glxgears at default size)

Thanks,
--Peter
_________________
crazedcougar@gmail.com
Back to top
View user's profile Send private message
IVIikko
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2005
Posts: 99
Location: Helsinki, Finland

PostPosted: Wed Apr 13, 2005 5:23 pm    Post subject: Reply with quote

You can try these if you haven't tested yet:

Code:

opengl-update ati
or
export LIBGL_DRIVERS_PATH=/usr/X11R6/lib32/modules/dri
I think lib32 can be lib64, too
Back to top
View user's profile Send private message
kabage
Guru
Guru


Joined: 31 Jan 2005
Posts: 340

PostPosted: Thu Apr 14, 2005 8:08 am    Post subject: Last ATI driver Reply with quote

I used fglrx only used 24 bit color, -- you may want to verify that.

glxgears , not really a good benchmark, if you try like a doom3 demo, its throttled at 60fps but you wont have
to worry about that with the ati 9600.

I pulled my 9600 out when I built my 64 bit, because of my gentoo vs windows in quake3 benchmarking

the ati-driver just sucked then and seems to get worse with each new release.

Granted glxgears is a good indicator of real performance. But is not proportional percentage wise..

Example with my 9600 on lin x86 glxgears was about 3300 fps about 150fps in quake 3
on lin 64 glxgears was about 1600 fps about 100 fps in quake 3

with my nvidia 5700 le
on lin x86 glxgears was about 2100 fps about 300 fps in quake 3
_________________
The solutions are easy. Its finding them that is hard.
Back to top
View user's profile Send private message
crazedcougar
Tux's lil' helper
Tux's lil' helper


Joined: 16 Dec 2003
Posts: 144
Location: GMT -5

PostPosted: Thu Apr 14, 2005 12:56 pm    Post subject: Reply with quote

My bad, i am actually using 24 bit color. If you want my xorg.conf, read this thread:
https://forums.gentoo.org/viewtopic-t-323711-highlight-.html

Thanks,
--Peter
_________________
crazedcougar@gmail.com
Back to top
View user's profile Send private message
blackwhite
Apprentice
Apprentice


Joined: 24 Jun 2004
Posts: 250

PostPosted: Thu Apr 14, 2005 4:45 pm    Post subject: Reply with quote

I have this problem yesterday with NV MX400 video card. At first, it just has 2 FPS, I check the direct. After I follow the thread for ATI video card, turn off iOMMU and enable agpcart, the FPS is up 1600 FPS.
How do you know the DRI works? I know the dri and glx does not work together.
Back to top
View user's profile Send private message
crazedcougar
Tux's lil' helper
Tux's lil' helper


Joined: 16 Dec 2003
Posts: 144
Location: GMT -5

PostPosted: Thu Apr 14, 2005 4:59 pm    Post subject: Reply with quote

Code:
peter@durnt ~ $ glxinfo | grep rendering
direct rendering: Yes


my fps is doubled (to make 800), but it is still quite low for my system. What is iOMMU? where is it in kernel config?
_________________
crazedcougar@gmail.com
Back to top
View user's profile Send private message
blackwhite
Apprentice
Apprentice


Joined: 24 Jun 2004
Posts: 250

PostPosted: Thu Apr 14, 2005 6:19 pm    Post subject: Reply with quote

try to comment
Load "dri"
in xorg.conf, see what will happen?
or add the below to xorg.conf with Load "dri".
Section "dri"
Mode 0666
EndSection
what will happen?

the IOMMU is in the kernel config. refer this thread.
https://forums.gentoo.org/viewtopic-t-301437-highlight-ati+howto.html
Back to top
View user's profile Send private message
crazedcougar
Tux's lil' helper
Tux's lil' helper


Joined: 16 Dec 2003
Posts: 144
Location: GMT -5

PostPosted: Thu Apr 14, 2005 6:51 pm    Post subject: Reply with quote

commenting dri does just what it should, turns off dri and lowers my fps (glxgears) fps to 150 :!: The "mode 0666" is already in my make.conf... Thanks for the info on IOMMU, I left it off.
Back to top
View user's profile Send private message
crazedcougar
Tux's lil' helper
Tux's lil' helper


Joined: 16 Dec 2003
Posts: 144
Location: GMT -5

PostPosted: Thu Apr 21, 2005 4:18 pm    Post subject: Reply with quote

Hi,

IVIikko i tried "LIBGL_DRIVERS_PATH=/usr/X11R6/lib32/modules/dri" this time, and it worked!!! Now warcraft will run at about 30 fps. Then I notice glxgears get 300 (700 before) and glxinfo says direct rendering is off! it seems that turns off dri, but increases fps. why is that? now i need dri working at the same time, for a truely awesome fps.
_________________
crazedcougar@gmail.com
Back to top
View user's profile Send private message
Lucky B
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 235
Location: Florida

PostPosted: Thu Apr 21, 2005 7:08 pm    Post subject: Reply with quote

that should really be:

Code:
LIBGL_DRIVERS_PATH="/usr/lib32/modules/dri/:/usr/lib64/modules/dri"


What's happening is that by default it uses the 64 bit libraries if you use a 32 bit OpenGL application it'll default to Mesa (software mode, EWWW) because it can't find the 32bit DRI drivers, and if you set "LIBGL_DRIVERS_PATH=/usr/X11R6/lib32/modules/dri" you make it use only the 32 bit drivers, so the 64 bit binaries revert to Mesa.

Code:
LIBGL_DRIVERS_PATH="/usr/lib32/modules/dri/:/usr/lib64/modules/dri"


makes everyone happy.

I have that line in /etc/env.d/99local
_________________
We are Dyslexic of Borg. Fusistance is retile. Your ass will be laminated.
Back to top
View user's profile Send private message
crazedcougar
Tux's lil' helper
Tux's lil' helper


Joined: 16 Dec 2003
Posts: 144
Location: GMT -5

PostPosted: Thu Apr 21, 2005 7:43 pm    Post subject: Reply with quote

thanks for the reply! (it works great) I dont have a "99local," only 99kde-env and 99libstdc++; so i just put in my fluxbox startup script.
_________________
crazedcougar@gmail.com
Back to top
View user's profile Send private message
Lucky B
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 235
Location: Florida

PostPosted: Thu Apr 21, 2005 8:00 pm    Post subject: Reply with quote

you can add 99local, reason I say to add it there is so that you stay safe for apps updating the env.d's LIBGL_DRIVERS_PATH you don't want to over-write it and run into problems.
_________________
We are Dyslexic of Borg. Fusistance is retile. Your ass will be laminated.
Back to top
View user's profile Send private message
crazedcougar
Tux's lil' helper
Tux's lil' helper


Joined: 16 Dec 2003
Posts: 144
Location: GMT -5

PostPosted: Fri Apr 22, 2005 1:10 pm    Post subject: Reply with quote

LIBGL_DRIVERS_PATH="/usr/lib32/modules/dri/:/usr/lib64/modules/dri" did not work two days ago. yesterday, after i had be fooling around with dri for a while, it worked! now, after rebooting, it does not work. I would guess that i did something to make the drivers in /usr/lib32/modules/dri/ and /usr/lib64/modules/dri. But what??
_________________
crazedcougar@gmail.com
Back to top
View user's profile Send private message
Lucky B
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 235
Location: Florida

PostPosted: Fri Apr 22, 2005 2:33 pm    Post subject: Reply with quote

how did you use LIBGL_DRIVERS_PATH="/usr/lib32/modules/dri/:/usr/lib64/modules/dri" ?

if you put it in 99local you had to env-update and source /etc/profile. a reboot takes care of it for good but if you don't want to reboot putting it in your xinitrc would've worked fine.

Also it might be that I screwed up the trailing / in one of em, it's not necessary and might be borky.
_________________
We are Dyslexic of Borg. Fusistance is retile. Your ass will be laminated.
Back to top
View user's profile Send private message
crazedcougar
Tux's lil' helper
Tux's lil' helper


Joined: 16 Dec 2003
Posts: 144
Location: GMT -5

PostPosted: Fri Apr 22, 2005 2:56 pm    Post subject: Reply with quote

ok, problem solved! I had been missing the "export" at the start :oops:
just now I put the command (with "export") into 99local. This will run it on boot, right? Can you put other things in 99local?
_________________
crazedcougar@gmail.com
Back to top
View user's profile Send private message
Lucky B
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 235
Location: Florida

PostPosted: Fri Apr 22, 2005 3:03 pm    Post subject: Reply with quote

no export in local! it'll break what you're trying to prevent by using local =P

just put

LIBGL_DRIVERS_PATH="/usr/lib32/modules/dri:/usr/lib64/modules/dri"

in 99local

and
Code:
env-update
source /etc/profile


will take care of putting it in your env.
_________________
We are Dyslexic of Borg. Fusistance is retile. Your ass will be laminated.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Fri Apr 22, 2005 5:16 pm    Post subject: Reply with quote

Moved from Gentoo on AMD64 in favour of https://forums.gentoo.org/viewtopic-t-327287.html.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum