Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
no direct rendering, but XGL works good?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
redbeardmcg
Apprentice
Apprentice


Joined: 12 Mar 2006
Posts: 171
Location: Suburbia Massachusetts

PostPosted: Thu Jun 15, 2006 1:27 pm    Post subject: no direct rendering, but XGL works good? Reply with quote

My glxinfo is showing that I do not have direct rendering, but all of the compiz effects perform flawlessly. The spinning cube is very fast and fluid, and wobbly windows and all of the other effects go off without a hitch and are very fast. I had just assumed that my direct rendering was working, but after trying to watch a movie in mplayer I realized that it isnt. My glxgears score is very low (~165fps) and glxinfo shows direct rendering: No.

The strange thing is that the first time I booted up x using just startx and not xgl or compiz, it showed that direct rendering was on! I am not sure whether or not this is because I am using xgl or because I have changed my xorg.conf file, but either way here are my xorg.conf and Xorg.0.log.

Code:
Section "Extensions"
Option "Composite" "Enable"
EndSection

Section "Module"
    Load        "dbe"   # Double buffer extension

    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

#    Load        "type1"
#    Load        "speedo"
     Load        "freetype"
#    Load        "xtt"
     Load        "glx"
     Load        "dri"

EndSection

Section "Files"

#    RgbPath    "/usr/share/X11/rgb"
    FontPath   "/usr/share/fonts/misc"
    FontPath   "/usr/share/fonts/75dpi"
    FontPath   "/usr/share/fonts/100dpi"
#    FontPath   "/usr/share/fonts/TTF"
    FontPath   "/usr/share/fonts/Type1"
#    FontPath   "/usr/lib/X11/fonts/local/"
#    FontPath   "/usr/lib/X11/fonts/misc/"
#    FontPath   "/usr/lib/X11/fonts/75dpi/:unscaled"
#    FontPath   "/usr/lib/X11/fonts/100dpi/:unscaled"
#    FontPath   "/usr/lib/X11/fonts/Speedo/"
#    FontPath   "/usr/lib/X11/fonts/Type1/"
#    FontPath   "/usr/lib/X11/fonts/TrueType/"
#    FontPath   "/usr/lib/X11/fonts/freefont/"
#    FontPath   "/usr/lib/X11/fonts/75dpi/"
#    FontPath   "/usr/lib/X11/fonts/100dpi/"

#    ModulePath "/usr/lib/modules"

EndSection

Section "ServerFlags"
EndSection

Section "InputDevice"

    Identifier  "Keyboard1"
    Driver      "kbd"
    Option "AutoRepeat" "500 30"

    Option "XkbRules"   "xorg"
    Option "XkbModel"   "pc102"
    Option "XkbLayout"  "us"

EndSection

Section "InputDevice"

# Identifier and driver

    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "Auto" # Auto detect
    Option "Device"      "/dev/input/mice"
    Option "ZAxisMapping"   "4 5"
    Option "Emulate3Buttons"
#    Option "ChordMiddle"

EndSection

Section "Monitor"

    Identifier  "rosewill"
    HorizSync   31.5 - 79.0
    VertRefresh 55.0 - 85.0
    Option "DPMS" "true"
EndSection

Section "Device"
    Identifier  "Standard VGA"
    VendorName  "Unknown"
    BoardName   "Unknown"
    Driver     "vga"
EndSection

Section "Device"
    Identifier  "Radeon 9200"
    Driver      "radeon"
    Option      "AGPMode" "8"
    Option      "RenderAccel" "true"
    Option      "NoAccel" "false"
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "Radeon 9200"
    Monitor     "rosewill"
    DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection
Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

 Section "DRI"
    Mode 0666
 EndSection


My Xorg log http://mcguireusa.no-ip.org/samba/pub/Xorg.0.log

Thanks for your help, I've spent a week getting xgl working and other than constant issues with portage and some strange startup issues, this is all that I have left to fix 8)
Back to top
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Thu Jun 15, 2006 1:32 pm    Post subject: Reply with quote

Please read https://forums.gentoo.org/viewtopic-p-3377190.html#3377190.
Back to top
View user's profile Send private message
vipernicus
Veteran
Veteran


Joined: 17 Jan 2005
Posts: 1462
Location: Your College IT Dept.

PostPosted: Thu Jun 15, 2006 1:33 pm    Post subject: Reply with quote

Direct Rendering will show to be off while using XGL. You are using Indirect Rendering when you run XGL.
_________________
Viper-Sources Maintainer || nesl247 Projects || vipernicus.org blog
Back to top
View user's profile Send private message
redbeardmcg
Apprentice
Apprentice


Joined: 12 Mar 2006
Posts: 171
Location: Suburbia Massachusetts

PostPosted: Thu Jun 15, 2006 4:22 pm    Post subject: Reply with quote

My bad, I should have searched this more than I did. Thanks for making me aware of that.

So if everything is, in fact working properly why is it that any fullscreen video jumps and is slow? I did set unredirect_fullscreen_windows to on and this did not fix the issue.
Back to top
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Thu Jun 15, 2006 5:31 pm    Post subject: Reply with quote

Which software do you use to play the video and which output driver do you use? xv, opengl?
Back to top
View user's profile Send private message
Merlink
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2004
Posts: 104
Location: Agrigento, Italy

PostPosted: Thu Jun 15, 2006 6:37 pm    Post subject: My 2 Cents Reply with quote

Anyway, Comment out the "Composite" Line...
When using composite, i have the ATI Direct Render OFF by default...and composite isn't used by xgl ...

See Ya
Back to top
View user's profile Send private message
redbeardmcg
Apprentice
Apprentice


Joined: 12 Mar 2006
Posts: 171
Location: Suburbia Massachusetts

PostPosted: Thu Jun 15, 2006 8:22 pm    Post subject: Reply with quote

I am using mplayer, and I have tried every combination of outputs and none of them respond better. I have also toyed with options (direct rendering, etc...)

When I comment out composite, I get no compiz effects. Is this normal?
Back to top
View user's profile Send private message
zietbukuel
l33t
l33t


Joined: 30 Dec 2005
Posts: 607

PostPosted: Fri Jun 16, 2006 3:19 am    Post subject: Reply with quote

How XGL works
Back to top
View user's profile Send private message
redbeardmcg
Apprentice
Apprentice


Joined: 12 Mar 2006
Posts: 171
Location: Suburbia Massachusetts

PostPosted: Fri Jun 16, 2006 1:22 pm    Post subject: Reply with quote

I appreciate the link, but still fail to understand why my desktop seems to be accelerated, and all of the compiz effects work good, but my glxgears score is so low and I cannot watch full screen media. I am using the MESA radeon driver, and am not getting any EErrors in my xorg log. Could anyone explain this to me? Thanks for your patience,

Ryan
Back to top
View user's profile Send private message
redbeardmcg
Apprentice
Apprentice


Joined: 12 Mar 2006
Posts: 171
Location: Suburbia Massachusetts

PostPosted: Fri Jun 16, 2006 2:45 pm    Post subject: Reply with quote

I found this under another post but nobody had an answer from him. This is the EXACT issue that I am having. I also have a radeon 9200. This post perfectly describes my problem, glx scores, random refresh issues, everything. I dont know if this helps, but it seems I'm not the only one to have this problem.

Quote:
May I add I also can't get any acceleration under Xgl ? Either video or 3D, it all too slow, although it is working on a regular Xorg.
Excepted video and 3D, all Compiz effects are working nicely (some refreshing errors sometimes... but that's not the problem here).

glxgears on Xorg : ~2000fps (accelerated direct rendering)
glxgears on Xgl : ~100fps (indirect rendering... and that does not look accelerated !!!)


I'm running with a Radeon 9200 video card with the free driver.
I also tried ATI driver, but it freezes at Xgl start up. And anyway it seems slower than the free driver ( ~1600 fps at glxgears on Xorg).

Any clue ?
Back to top
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Fri Jun 16, 2006 2:54 pm    Post subject: Reply with quote

Well, glxgear is not a real benchmark. What was your glxgears score before you installed Xgl and compiz?

Anyway, you're using software-accelerated 3D and I guess Xgl and compiz are simply too much for the effects and any other 3D operations simultaneously.

As we explained previously, indirect rendering using Xgl is normal and there's nothing you can do about that. You don't have any errors in your log either so the most logical assumption would be that your hardware isn't powerful enough.
Back to top
View user's profile Send private message
redbeardmcg
Apprentice
Apprentice


Joined: 12 Mar 2006
Posts: 171
Location: Suburbia Massachusetts

PostPosted: Fri Jun 16, 2006 2:58 pm    Post subject: Reply with quote

My system is a p4 2.8ghz w/ 1gb ddr400 radeon 9200 agp, audigy 2, i can't imagine not being able to watch a movie while xgl is running. I have seen posts from people with lesser hardware who have been able to run xgl with compiz and watch fullscreen video. I'm gonna do some more digging before I give up, but thanks again for the advice. Anyone else?

I am currently using DRM in the kernel, should I try to use x11-drm? Also, these are the only odd lines in my Xorg log. The card is 128mb, so the memory size looked ok to me. Am I wrong?:

Code:
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
(WW) RADEON: No matching Device section for instance (BusID PCI:1:0:1) found
(WW) RADEON(0): [dri] limiting video memory to one aperture of 131072K
(WW) RADEON(0): [dri] detected radeon kernel module version 1.22 but 1.23 or newer is required for full memory mapping.
(WW) RADEON(0): Failed to detect secondary monitor, MergedFB/Clone mode disabled
(WW) RADEON(0): DRI init changed memory map, adjusting ...
(WW) RADEON(0):   MC_FB_LOCATION  was: 0xdfffd800 is: 0xdfffd800
(WW) RADEON(0):   MC_AGP_LOCATION was: 0xffffffc0 is: 0xe07fe000
Back to top
View user's profile Send private message
zietbukuel
l33t
l33t


Joined: 30 Dec 2005
Posts: 607

PostPosted: Fri Jun 16, 2006 3:14 pm    Post subject: Reply with quote

redbeardmcg, try using x11-drm and disabling the one from the kernel, x11-drm is more up2date.
Back to top
View user's profile Send private message
redbeardmcg
Apprentice
Apprentice


Joined: 12 Mar 2006
Posts: 171
Location: Suburbia Massachusetts

PostPosted: Fri Jun 16, 2006 6:36 pm    Post subject: Reply with quote

Re-compiled the kernel w/out drm, and installed x11-drm, no increase in performance. I also disabled composite. I have seen plenty of people with glxgears scores of 2000+, so there must be somethign fundamentally wrong here. Any more ideas? I appreciate the help, now that I finally got everything working, this is the last thing keeping me from having a fully functional XGL desktop!
Back to top
View user's profile Send private message
CreepingDeath
n00b
n00b


Joined: 10 Sep 2005
Posts: 12

PostPosted: Fri Jun 16, 2006 6:47 pm    Post subject: Reply with quote

I had a similar problem but it was because I wasn't accelerating xv and thats what mplayer was using to play video.. adding '-accel xv:pbuffer' to my xgl command line seems to have fixed it for me. Since your using ati that was recomended from the get-go so you probably have it already, but just a thought.

Plus keep in mind, when talking about xgl performance, only once piece of hardware is really relevant.. thats your video card. You could be running quad3GHZ xeon's and if your video card sucks your xgl performance will too.
Back to top
View user's profile Send private message
Jupiter1TX
Guru
Guru


Joined: 24 Feb 2006
Posts: 546
Location: 3rd Rock

PostPosted: Fri Jun 16, 2006 7:01 pm    Post subject: Reply with quote

redbeardmcg wrote:
Re-compiled the kernel w/out drm, and installed x11-drm, no increase in performance. I also disabled composite. I have seen plenty of people with glxgears scores of 2000+, so there must be somethign fundamentally wrong here. Any more ideas? I appreciate the help, now that I finally got everything working, this is the last thing keeping me from having a fully functional XGL desktop!


Although I know glxgears is not a good test but it does serve as a good measure
when used consistently when changes are made on my system.

redbeardmcg is it possible some of the plugins your using is effecting your readings?
As an example when i use the dock plugin i get a 4000 to 5000 fps slow down in
glxgears, in other words when i use the dock plugin my glxgears reports 7000
to 8000 fps in glxgears, without dock plugin i get 11500 to 12000+ fps

I also notice a slow down with some mesa versions. I try and take a measure everytime
i change my system to get an idea of the performace effects of the change. So i do
get frequent readings from glxgears as a gauge.

By the way i run with composite enabled in xorg. Like CreepingDeath I also added
-accel xv:pbuffer to my xgl command line and video playback is ok on my Nvidia.
I also get better results from glxgears when using XGL/Compiz then just plain xorg.
_________________
Core i7 920 D0 | Asus P6T DLX | Patriot Viper 1600 6GB | Antec Quattro 850W
Geforce 8800GTX OC2 768MB | Dell 22" LCD | Koolance Exos2/Swiftech GTZ
GCC 4.6.1 | 3.7.x-geek | Xorg-7.4-x | KDE-4.7.x | Compiz
Back to top
View user's profile Send private message
redbeardmcg
Apprentice
Apprentice


Joined: 12 Mar 2006
Posts: 171
Location: Suburbia Massachusetts

PostPosted: Fri Jun 16, 2006 7:24 pm    Post subject: Reply with quote

Thanks for the replies. This is the command that I am using: /usr/bin/Xgl :1 -ac -dpms -accel xv:pbuffer -accel glx:pbuffer. I am going to run glxgears in xfce to see if it is any better. There is a refresh setting under compiz in gconf-editor, should this be set to my screen's refresh? Right now it is at 75, and it says the max is 200. Could this be affecting me?

Thanks again
Back to top
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Fri Jun 16, 2006 7:33 pm    Post subject: Reply with quote

I doubt the refresh setting will help. Mine is set to 50, though.
Back to top
View user's profile Send private message
redbeardmcg
Apprentice
Apprentice


Joined: 12 Mar 2006
Posts: 171
Location: Suburbia Massachusetts

PostPosted: Sat Jun 17, 2006 4:51 am    Post subject: Reply with quote

You're right, the refresh didn't help anything.

Quote:
redbeardmcg is it possible some of the plugins your using is effecting your readings?
As an example when i use the dock plugin i get a 4000 to 5000 fps slow down in
glxgears

I tried running glxgears and fullscreen video with glx, glx2, xv plugins in xfce, gnome, and kde, with and without compiz and i get no better than 180fps. Strangely, in KDE it starts off fast and then after one or 2 seconds slows back down to 180fps.

I feel like this has got to be something simple and obvious and I am just looking too hard for the answer.

Thanks again for the help
Back to top
View user's profile Send private message
hookdonspeed
n00b
n00b


Joined: 03 Jun 2006
Posts: 3
Location: baltimore, md

PostPosted: Sun Jun 25, 2006 5:01 pm    Post subject: Reply with quote

im hving the same issue, under normal xorg im getting 15k fps in glxgears, and smooth vid playback, with xgl+compiz i get ~400fps in glxgears, and i cant play more then 1video at a time without it severly slowing down... also in xgl i get on average 60% cpu usage from doing the smallest things, where in xorg i get at the most 15%
_________________
Sun Ultra2 2x300
Back to top
View user's profile Send private message
hookdonspeed
n00b
n00b


Joined: 03 Jun 2006
Posts: 3
Location: baltimore, md

PostPosted: Mon Jun 26, 2006 2:06 pm    Post subject: Reply with quote

update - im getting normal fps when using xwinwrap on gears...
_________________
Sun Ultra2 2x300
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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