Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2D Performance not good
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
JApostoles
n00b
n00b


Joined: 02 Feb 2004
Posts: 16

PostPosted: Mon Mar 08, 2004 9:01 pm    Post subject: 2D Performance not good Reply with quote

Hey guys,

I've noticed XFree 4.3 running slow, particularly GTK apps, and also when KDE redraws the taskbar when the desktop is switched. DMA is on for my harddrive, it's not window manager specific (it happens under KDE, XFCE-4, even fvwm). If I load Firefox and then go to Help/About I can see the window draw, then a split second later the image draws. This is how all GTK applications work... I can actually see the window being built for a split second. KDE apps seem to work fine.

I have an Athlon XP 2400+ and GeForce 4 128MB video card with 1G RAM. Kernel version 2.6.3... I'm also using the latest NVidia drivers. If I use Knoppix I don't have any of these issues. Any ideas what could be causing the slow 2D performance in XFree? Another thing to note is my 3D performance is fine.. glxgears gives me around 3000FPS, and OpenGL games work beautifully. Any help would be appreciated!

Thanks,
- Jon
Back to top
View user's profile Send private message
paulisdead
Guru
Guru


Joined: 10 Apr 2002
Posts: 510
Location: Seattle, WA

PostPosted: Mon Mar 08, 2004 9:09 pm    Post subject: Reply with quote

This could cause image corruption with some versions of GTK and nvidia drivers, but maybe try putting a line like this in the device section for your video card in your XF86Config file

Code:
Option "RenderAccel" "True"


That's the only thing I can think of.
_________________
"we should make it a law that all geeks have dates" - Linus
Back to top
View user's profile Send private message
JApostoles
n00b
n00b


Joined: 02 Feb 2004
Posts: 16

PostPosted: Tue Mar 09, 2004 8:09 pm    Post subject: Reply with quote

That didn't really change the peformance. Could it be something with GTK since it seems to really only be the GTK apps?
Back to top
View user's profile Send private message
Majkijin
Tux's lil' helper
Tux's lil' helper


Joined: 05 Mar 2004
Posts: 88
Location: AGH-UST Krakow, Poland

PostPosted: Tue Mar 09, 2004 8:47 pm    Post subject: Reply with quote

I have the same problem. When I'm for example resizing some gtk apps I can see haw is painted evry widget evry button evry slidebar etc. This is happening since gentoo installed in my computer.
Maby someone of you can tell how to fix this problem.
Gentoo is very slow when it's happening.
Back to top
View user's profile Send private message
Eamon Nerbonne
n00b
n00b


Joined: 16 Feb 2004
Posts: 45

PostPosted: Sat Jul 03, 2004 10:50 pm    Post subject: GTK slow Reply with quote

I have the same problem and here too it seems to only affect GTK+ programs. Qt apps resize and generally redraw reasonably quickly (no more than 1/10 of a sec generally, often completely smoothly) yet gtk apps such as firefox are really slow on resize. Firefox redraws much more slowly on my gentoo box (athlon XP 2000+) than a windows XP P3 @ 550 MHz that I also have lying around.

I have an nvidia card with their driver (5xxx or so, not the latest and greates 6xxx driver yet); I'm using RenderAccel true, (which helps Qt apps quite a bit BTW) but I'm still stumped...
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Sat Jul 03, 2004 10:53 pm    Post subject: Reply with quote

* Do you sleep/suspend, and your MTRRs (cat /proc/mtrr) are not restored correctly? Do you have MTRRs in the first place (support must be enabled in the kernel)?

* What are your glib and GTK+ CFLAGS? Over-optimization can lead to chaotic performance deficits ...
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
psofa
Guru
Guru


Joined: 28 Feb 2004
Posts: 485

PostPosted: Sat Jul 03, 2004 11:37 pm    Post subject: Reply with quote

yep mtrr is very vital at least for me.When i screwed up with the framebuffers etc my mtrrs where also screwed leading to horrible performance
_________________
psofa
Back to top
View user's profile Send private message
IWBCMAN
Guru
Guru


Joined: 25 Jun 2002
Posts: 474

PostPosted: Sun Jul 04, 2004 12:37 am    Post subject: Reply with quote

Unfortunately the NVIDIA drivbers have trully poor RENDER support. Gnome applications are particularly hard hit by this due to the (VTE/PANGO) heavy use of RENDER.

X11-orgs' nvidia driver is considerably faster at RENDER-ie. 2D performance.
Back to top
View user's profile Send private message
nitro322
Guru
Guru


Joined: 24 Jul 2002
Posts: 594
Location: USA

PostPosted: Sun Jul 04, 2004 4:43 am    Post subject: Reply with quote

this happens to me as well, on multiple hardware platforms, video cards, and distributions. I can take any cross-platform GUI app (such as Firefox, Thunderbird, Gaim, OpenOffice, etc.), load them up in Linux and Windows (dual-booting on the same system), and it will always be faster in Windows. Significatnly faster.

I've never understood this, and it really bothers me, but I've never been able to find a solution for it either. As I said, this happens in any distribution, not matter how fast the hardware is. I'd love to know what the deal is, if anyone can figure it out.
Back to top
View user's profile Send private message
Jinidog
Guru
Guru


Joined: 26 Nov 2003
Posts: 593
Location: Berlin

PostPosted: Sun Jul 04, 2004 8:30 am    Post subject: Reply with quote

Quote:

glxgears gives me around 3000FPS


I think this is a bit on the low site.
I've an AthlonTB1200 with an Geforce2 Ti and I'm reaching 3100 FPS (perhaps some more).

For me, Gentoo runs much faster than an Win98.
Crossapplications like mozilla are lauching and working faster and the system reacts immediatly, even if there are multiple compiles in the background.
I don't know what special I did (I'm not that experienced, I'm using Gentoo/Linux for half a year now).
Back to top
View user's profile Send private message
wah_wah_69
Tux's lil' helper
Tux's lil' helper


Joined: 26 Aug 2003
Posts: 145

PostPosted: Sun Jul 04, 2004 1:05 pm    Post subject: Reply with quote

nitro322 wrote:
this happens to me as well, on multiple hardware platforms, video cards, and distributions. I can take any cross-platform GUI app (such as Firefox, Thunderbird, Gaim, OpenOffice, etc.), load them up in Linux and Windows (dual-booting on the same system), and it will always be faster in Windows. Significatnly faster.

I've never understood this, and it really bothers me, but I've never been able to find a solution for it either. As I said, this happens in any distribution, not matter how fast the hardware is. I'd love to know what the deal is, if anyone can figure it out.


MozilaFirefox's XUL uses GDI on windows and GDK on *nix , GDI on windows runs in kernel space , so it's not really fair to compair them at all.
_________________
Be good and if you can't be good, be careful.
Back to top
View user's profile Send private message
Eamon Nerbonne
n00b
n00b


Joined: 16 Feb 2004
Posts: 45

PostPosted: Sun Jul 04, 2004 3:02 pm    Post subject: GDI GDK... Reply with quote

Kernelspace isn't necessarily faster - it can actually be slower (that depends on the details). The actual design+implementation of a certain piece of functionality are certainly far more important.

Anyhow; if two pieces of software do similar things a comparison seems rather natural... fairness doesn't come into it.

And wasn't GDK slightly higher level than GDI? I don't really know anything about either...
Back to top
View user's profile Send private message
Eamon Nerbonne
n00b
n00b


Joined: 16 Feb 2004
Posts: 45

PostPosted: Sun Jul 04, 2004 3:06 pm    Post subject: Reply with quote

I don't think MTRR's are the problem for me - I enabled support in the kernel; but is there a way to test proper functioning?
Back to top
View user's profile Send private message
gregy_
n00b
n00b


Joined: 03 Apr 2004
Posts: 45

PostPosted: Sun Jul 04, 2004 4:10 pm    Post subject: MTRR Reply with quote

check your /proc/mtrr for ranges + /var/log/XFree86.0.log to see if it was successfully enabled.
Back to top
View user's profile Send private message
Eamon Nerbonne
n00b
n00b


Joined: 16 Feb 2004
Posts: 45

PostPosted: Mon Jul 05, 2004 1:05 am    Post subject: Reply with quote

Thanks.

cat-ing /proc/mtrr results in
Code:
reg00: base=0x00000000 (   0MB), size= 512MB: write-back, count=1
reg01: base=0xd0000000 (3328MB), size= 128MB: write-combining, count=1
reg02: base=0xe0000000 (3584MB), size= 128MB: write-combining, count=1


However, my XFree86.0.log doesn't contain the string "mtrr"
it does, however, contain the line:
Code:
325:(--) NVIDIA(0): MMIO registers at 0xDE000000


I read this to mean that mtrr is being used.

Thanks anyhow!

--Eamon
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Mon Jul 05, 2004 1:21 am    Post subject: Reply with quote

Mmm, not quite. My MTRR:

Code:
reg00: base=0x00000000 (   0MB), size= 512MB: write-back, count=1
reg01: base=0x60000000 (1536MB), size= 256MB: write-combining, count=1
reg02: base=0x48000000 (1152MB), size=  32MB: write-combining, count=2


Relevant excerpts from my X log --

For AGP MTRR:

Code:
(II) RADEON(0): [agp] ring handle = 0x60000000



For Radeon MTRR:

Code:
(II) Bus 1 prefetchable memory range:
   [0] -1   0   0x48000000 - 0x4fffffff (0x8000000) MX[B]

Code:
(--) PCI:*(1:0:0) ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500] rev 0, Mem @ 0x48000000/27, 0x40300000/16, I/O @ 0x3000/8

Code:
(--) RADEON(0): Linear framebuffer at 0x48000000

Code:
(==) RADEON(0): Write-combining range (0x48000000,0x2000000)

Code:
(II) RADEON(0): [drm] framebuffer handle = 0x48000000

_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
Eamon Nerbonne
n00b
n00b


Joined: 16 Feb 2004
Posts: 45

PostPosted: Mon Jul 05, 2004 2:08 pm    Post subject: Reply with quote

I found the relevant lines in xfree's log:

Code:
321-(**) NVIDIA(0): Enabling experimental RENDER acceleration
322-(**) NVIDIA(0): Enabling cursor shadow
323-(**) NVIDIA(0): TwinView enabled
324-(--) NVIDIA(0): Linear framebuffer at 0xD0000000
325-(--) NVIDIA(0): MMIO registers at 0xDE000000
326:(II) NVIDIA(0): NVIDIA GPU detected as: GeForce4 Ti 4200
327-(--) NVIDIA(0): VideoBIOS: 04.25.00.30.00
328-(--) NVIDIA(0): Interlaced video modes are supported on this GPU
329-(II) NVIDIA(0): Detected AGP rate: 4X
330-(--) NVIDIA(0): VideoRAM: 131072 kBytes
331-(II) NVIDIA(0): Connected display device(s): CRT-0, CRT-1


Thanks!
Back to top
View user's profile Send private message
blueSceaDa
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jan 2005
Posts: 90

PostPosted: Sun Jan 09, 2005 4:57 pm    Post subject: Re: 2D Performance not good Reply with quote

JApostoles wrote:
If I load Firefox and then go to Help/About I can see the window draw, then a split second later the image draws. This is how all GTK applications work...


Same for me running xorg-x11-6.8.0-r1
# cat /proc/mtrr
reg00: base=0x00000000 ( 0MB), size= 512MB: write-back, count=1
reg01: base=0x20000000 ( 512MB), size= 256MB: write-back, count=1
reg02: base=0xe0000000 (3584MB), size= 256MB: write-combining, count=2
reg03: base=0xf0000000 (3840MB), size= 128MB: write-combining, count=1

however the gtk stuff is quite ok, but in firefox it's really too slow,
so I'd say it's also the fault of the gecko engine
_________________
Athlon XP 2500+ @ ~2100MHz; GeForce FX 5600 256MB; 3x256MB RAM; ASUS A7N8X-X
echo 'LDFLAGS="-Wl,-O1"' >> /etc/make.conf - no problems here
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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