Page 1 of 1

fglrx drivers issue

Posted: 06 Jul 2007, 23:19
by pwl
I have a problem which I have tried to fix for several hours. I have a toshiba satellite laptop with mobility radeon x300 with 64MB of RAM, and I run Xubuntu 7.04 Feisty Fawn. I successfully installed latest proprietary drivers, from the ATI site. The output of fglrxinfo

Code: Select all

$ fglrxinfo 
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI MOBILITY RADEON X300
OpenGL version string: 2.0.6474 (8.38.6)
Of course direct rendering is enabled, glxgears runs smoothly and gives high fps count.

Here is the problem:
Spring runs normally and at normal fps (40-60, depending on a unit count) while the camera zoom is default. While I try to get farer to see a larger part of the map the fps count suddenly drops to 5-10 ( for camera frame covering the whole the cold place map ), if I zoom in again I have 40-60 fps back. The phenomenon is independent of a units count (tried with 100 peewees). Also I have a lot of the following text flooding the console:

Code: Select all

fglX11AllocateManagedSurface: __FGLTexMgrAllocMem failed!!
Adding:

Code: Select all

        Option          "UseFastTLS" "2"  
to graphics card section in xorg.cconf helped a bit (units dont disappear now and framerate doesn't get fixed at low values after zooming out and then zooming in). When I googled for this error I got a lot of URLs referring to problems with wine or cedega. Also under windows spring runs smoothly and fps drop on zoom-out doesn't occur.

Posted: 06 Jul 2007, 23:40
by Neddie
I've always gotten marginal drop on zoom out, with all six machines I've played Spring on.

Posted: 07 Jul 2007, 00:06
by Relative
neddiedrow wrote:I've always gotten marginal drop on zoom out, with all six machines I've played Spring on.
Yeah, its to be expected, but nothing as extreme as the TC's.

Posted: 07 Jul 2007, 00:07
by clericvash
I do beleive it puts more strain if you zoom out? Correct me if i'm wrong. And with your graphics card it won't run very well anyway :S

Posted: 07 Jul 2007, 01:23
by pwl
It is not the case of my hardware, as I said, under windows it runs smoothly ( as it should, radeon x300 is not as bad). I am not talking about marginal fps drop using the same settings (even lower). It drops suddenly from 40-60 to 5-10 just after zooming step farer, even if there are no new units revealed by zooming away. It still skips even if I zoom as far as icons take place of the 3D models (it shouldn't because there are less polys to render).

I will install some other 3D applications and check if there is anything wrong with them.

Posted: 07 Jul 2007, 01:26
by BrainDamage
can you post the content of your ~/.springrc file?

Posted: 07 Jul 2007, 01:50
by pwl
my ~/.springrc file:

http://pastebin.com/943530

Posted: 07 Jul 2007, 12:40
by BrainDamage
what kind of monitor do you have?

according to your settings:
XResolution=1280
YResolution=800
if your monitor has a 4/3 ratio, y res should be: 1280/4*3=960
if your monitor has a 16/9 ratio, y res should be: 1280/16*9=720

also you do have:
3DTrees=1
does your drivers support vertex program?if you are unsure try to disable and try again

and to finish, this might be a shot in the dark, you do have LUA on
LuaUI=1
try to temporaneally disable it and see if you get any improvements; if yes turn it back on, disable all widgets and start enabling them one per time and try to detect the "laggy" widget

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

to have a consistent test condition, i'd suggest you to load directly the spring engine without a lobby and select "air combat test" on mars map, xta 8.1; then test the various zoom levels (approx 1/4 of the map, 1/2, 3/4, full) and test also the "tab" button

Posted: 07 Jul 2007, 15:31
by pwl
I have made some tests using various mods and various settings, here is what I got:
- LuaUI doesn't affect fps (or it affects it in a small way)
- the choice of map doesn't affect fps (or it affects it in a small way)
- the following mods return the error I mentioned (and have lowered performance as well):
--> XTA v9 Beta Latest Release
--> NOTA 1.22
- the following mods have lowered (compared to windows) performance (but are still playable):
--> BA 5.4
--> XTA 8.1
- the following mods have unplayable performance (average fps~3):
--> CA

So this is the problem occuring along with certain effects, that XTA v9, NOTA and CA have in common, which are not willing to display fluently.

Also the resolution (1280x800) is valid, I have strange aspect ratio (8:5). I still think that is drivers problem (not being optimized well by ATI team) or the GNU/Linux itself not doing well with ATI drivers combined with Radeon x300.

I also tested some simple 3D games which shown good performance.

EDIT: I have set 3DTrees to 0, I don't think it could affect anything becouse I didn't run maps with trees.

Posted: 09 Jul 2007, 22:42
by Drezil
this is definetely a X11-issue.
I dpkg-reconfigurey my X11 yesterday and now i'm facing the exact same problems.

I got a backup of my old xorg.conf and im trying to find the reason for all this.

edit:
in the video-device-section the dpkg-routine added a
Option "UseFBDev" "true"
(this is the only graphic-related change between my 2 versions).

after commenting this out (with #) and restarting my yxserver (ctrl+alt+backspace - kills every desktop app and restarts the x-server) my framerate does not fall down to 4-5 anymore.

Posted: 10 Jul 2007, 12:59
by pwl
Could you post your xorg.conf? What GPU and version of drivers are you using?

Posted: 10 Jul 2007, 16:48
by Drezil

Code: Select all

Section "Files"
        FontPath        "/usr/share/fonts/X11/misc"
        FontPath        "/usr/share/fonts/X11/cyrillic"
        FontPath        "/usr/share/fonts/X11/100dpi/:unscaled"
        FontPath        "/usr/share/fonts/X11/75dpi/:unscaled"
        FontPath        "/usr/share/fonts/X11/Type1"
        FontPath        "/usr/share/fonts/X11/100dpi"
        FontPath        "/usr/share/fonts/X11/75dpi"
        # path to defoma fonts
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
        Load    "bitmap"
        Load    "ddc"
        Load    "dri"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "int10"
        Load    "v4l"
        Load    "vbe"
EndSection

Section "InputDevice"
        Identifier      "Generic Keyboard"
[..cut..]
EndSection

Section "InputDevice"
        Identifier      "Configured Mouse"
[..cut..]
EndSection

Section "InputDevice"
        Driver          "wacom"
        Identifier      "stylus"
        Option          "Device"        "/dev/input/wacom"
        Option          "Type"          "stylus"
        Option          "ForceDevice"   "ISDV4"         # Tablet PC ONLY
EndSection
[section identical 2 times, but with type eraser & cursor]

Section "Device"
        Identifier      "ATI RADEON X1950 Pro"
        Driver          "fglrx"
        BusID           "PCI:2:0:0"
#       Option          "UseFBDev"              "true"
EndSection

Section "Extensions"
        Option          "Composite"     "0"
EndSection

Section "Monitor"
        Identifier      "Videoseven N110"
        Option          "DPMS"
        HorizSync       30-107
        VertRefresh     50-85
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Device          "ATI RADEON X1950 Pro"
        Monitor         "Videoseven N110"
        DefaultDepth    24
[millions of screenmodes like that one:]
        SubSection "Display"
                Depth           24
                Modes           "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
        InputDevice     "stylus"        "SendCoreEvents"
        InputDevice     "cursor"        "SendCoreEvents"
        InputDevice     "eraser"        "SendCoreEvents"
EndSection

Section "DRI"
        Mode    0666
EndSection