LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-29-2004, 08:50 PM   #1
atheist
Member
 
Registered: Sep 2003
Location: Iceland
Distribution: Debian Lenny - Kernel 2.6.22.8
Posts: 331

Rep: Reputation: 30
Scrolling lags?


Hi, I'm not quite sure where to post this but here goes...
I've been noticing that every time I use the scrollbar (or mousewheel for that matter) my CPU usage goes through the roof and I experience a kind of lag. My CPU usage even goes up to 80-90% sometimes if I scroll fast. Finding this rather odd I boot up wintendo and open Internet Exploder. I use it's scrollbar and no matter how fast I scroll or how heavy the pages are that I'm scrolling I get no lag at all. Mean while I'm getting huge amounts from scrolling these forums. Has anyone else experienced this funkiness? Anyone know what's up with that?
Here's my XFree86config since that's the only thing I can think of that can matter.
Code:
Section "Files"
        FontPath        "unix/:7100"                    # local font server
        # if the local font server has problems, we can fall back on these
        FontPath        "/usr/lib/X11/fonts/Type1"
        FontPath        "/usr/lib/X11/fonts/CID"
        FontPath        "/usr/lib/X11/fonts/Speedo"
        FontPath        "/usr/lib/X11/fonts/misc"
        FontPath        "/usr/lib/X11/fonts/cyrillic"
        FontPath        "/usr/lib/X11/fonts/100dpi"
        FontPath        "/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
        Load    "GLcore"
        Load    "bitmap"
        Load    "dbe"
        Load    "ddc"
        Load    "dri"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "int10"
        Load    "record"
        Load    "speedo"
        Load    "type1"
        Load    "vbe"
EndSection

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "keyboard"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xfree86"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"     "us"
EndSection

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "ImPS/2"
        Option          "Emulate3Buttons"       "true"
        Option          "ZAxisMapping"          "4 5"
EndSection

Section "InputDevice"
        Identifier      "Generic Mouse"
        Driver          "mouse"
        Option          "SendCoreEvents"        "true"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ImPS/2"
        Option          "Emulate3Buttons"       "true"
        Option          "ZAxisMapping"          "4 5"
EndSection

Section "Device"
        Identifier      "Generic Video Card"
        Driver          "nvidia"
EndSection

Section "Monitor"
        Identifier      "Generic Monitor"
        HorizSync       30-72
        VertRefresh     50-160
        Option          "DPMS"
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Device          "Generic Video Card"
        Monitor         "Generic Monitor"
        DefaultDepth    24
        SubSection "Display"
                Depth           1
                Modes           "1280x1024" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth           4
                Modes           "1280x1024" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth           8
                Modes           "1280x1024" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth           15
                Modes           "1280x1024" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth           16
                Modes           "1280x1024" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth           24
                Modes           "1280x1024" "800x600" "640x480"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
        InputDevice   "Generic Mouse"
EndSection

Section "DRI"
        Mode    0666
EndSection
As always, any help appreciated.
Thanks.
 
Old 01-30-2004, 06:03 PM   #2
wapcaplet
Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Not sure, though I guess one way of finding out what program is hogging the CPU during scrolling is to run 'top' in a terminal window. Do some scrolling, and see which process takes up all the CPU. That might help you narrow it down a little.
 
Old 01-30-2004, 06:46 PM   #3
atheist
Member
 
Registered: Sep 2003
Location: Iceland
Distribution: Debian Lenny - Kernel 2.6.22.8
Posts: 331

Original Poster
Rep: Reputation: 30
Thanks, I didn't know about the top command, pretty cool.
Anyways. Xfree86 seems to be hogging the CPU. I guess it must be a Xfree86config issue then.
 
Old 01-30-2004, 07:51 PM   #4
wapcaplet
Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Looks like mine does the same thing - it's not as noticeable, but 'top' shows that X is using around 40% of the CPU when I'm scrolling intensively.

I guess maybe part of the problem could be your video driver - perhaps the CPU is having to do a lot of work to make up for a poorly-written or incorrect driver. The nvidia drivers occasionally have problems with normal XFree86 performance, even if they do well with 3D stuff - which version of the nvidia driver are you using? The latest stable one I've used is version 4496, which has been working great.
 
Old 01-30-2004, 08:04 PM   #5
atheist
Member
 
Registered: Sep 2003
Location: Iceland
Distribution: Debian Lenny - Kernel 2.6.22.8
Posts: 331

Original Poster
Rep: Reputation: 30
Yep, that's what I'm using, 4496.
But in any way... I think my computer should be able to handle intense scrolling...
1,533GHz AMD Athlon Duron, 1024 DDRAM, 128Mb GeForce 4 Ti 4200.
Could it be that I need to change something here? Or perhaps remove?
Code:
Section "Module"
        Load    "GLcore"
        Load    "bitmap"
        Load    "dbe"
        Load    "ddc"
        Load    "dri"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "int10"
        Load    "record"
        Load    "speedo"
        Load    "type1"
        Load    "vbe"
EndSection
That's about all I can think of. Or update to a newer driver perhaps...
 
Old 01-30-2004, 08:52 PM   #6
wapcaplet
Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
According to the Nvidia README, "dri" and "GLcore" should not be there.
 
Old 01-31-2004, 07:55 AM   #7
atheist
Member
 
Registered: Sep 2003
Location: Iceland
Distribution: Debian Lenny - Kernel 2.6.22.8
Posts: 331

Original Poster
Rep: Reputation: 30
Yes, I know, but I thought I needed those for 3D hardware acceleration in games, is that wrong? And since it didn't return any errors on startx I thought it was OK.
But I tried to disable them and scrolling still lags like hell.
 
Old 01-31-2004, 09:17 AM   #8
wapcaplet
Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
"glx" provides the 3D acceleration with Nvidia cards, if I'm not mistaken; "dri" is only for direct hardware rendering, so I'm under the impression that it's somehow incompatible with the glx driver. Same for GLcore. I just took Nvidia at their word that it's not good to have them loaded Though, I really wish I knew what a lot of those options did. I can't seem to find any documentation on them, aside from a couple important ones.

My XF86Config-4 file has these in it:

dbe # double buffering extension (good to have)
type1 # type1 font support
speedo # speedo font support
freetype # freetype font support
glx # GLX rendering support

I have a GeForce4 MX 420, and everything is fairly smooth. Your machine is quite a bit more powerful than mine, so it should be even smoother (though, if you run a heavier desktop environment like KDE or Gnome, that could have an effect).

Check out that Nvidia README - there are a lot of really long appendices that answer some common questions, and give a lot of possible options for tweaking your XF86 settings.
 
Old 01-31-2004, 12:35 PM   #9
atheist
Member
 
Registered: Sep 2003
Location: Iceland
Distribution: Debian Lenny - Kernel 2.6.22.8
Posts: 331

Original Poster
Rep: Reputation: 30
Thanks. I will. And no, I'm using the very resource light fluxbox.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hard scrolling vs soft scrolling (console) haxcess Linux - General 2 08-30-2004 12:17 AM
Kde Lags iotc247 Debian 2 06-01-2004 02:03 AM
kernel lags, help! doralsoral Linux - Software 3 03-30-2004 01:01 PM
XMMS lags atheist Linux - Software 3 02-05-2004 06:20 AM
OpenGL lags notslim Linux - Newbie 1 08-10-2003 10:51 PM


All times are GMT -5. The time now is 01:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration