Qt4 applications slow redraw

The K Desktop Environment

Qt4 applications slow redraw

Postby cicciopasticcio » 10 Feb 2011, 05:51

Hello,

I have recently installed FreeBSD, I have installed all the software from source through ports. Everything looks fine except the performance of my Desktop.
Let me explain the problem: when I re-size, move, minimize or maximize an application it takes a lot of time to refresh/redraw the window.
Below I put some details:

Code: Select all
[B]$ pciconf -lv[/B]
vgapci0@pci0:0:2:0:     class=0x030000 card=0x18621043 chip=0x2a428086 rev=0x07 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Intel Mobile Graphic (Mobile Intel 4 Series Chipset Family)'
    class      = display
    subclass   = VGA
vgapci1@pci0:0:2:1:     class=0x038000 card=0x18621043 chip=0x2a438086 rev=0x07 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Intel Mobile Graphic (Mobile Intel 4 Series Chipset Family)'
    class      = display

[B]$ cat /etc/X11/xorg.conf[/B]
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/local/lib/xorg/modules"
        FontPath     "/usr/local/lib/X11/fonts/misc/"
        FontPath     "/usr/local/lib/X11/fonts/TTF/"
        FontPath     "/usr/local/lib/X11/fonts/OTF"
        FontPath     "/usr/local/lib/X11/fonts/Type1/"
        FontPath     "/usr/local/lib/X11/fonts/100dpi/"
        FontPath     "/usr/local/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
        Load  "extmod"
        Load  "record"
        Load  "dbe"
        Load  "glx"
        Load  "dri"
        Load  "dri2"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/sysmouse"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                   # [<bool>]
        #Option     "SWcursor"                  # [<bool>]
        #Option     "ColorKey"                  # <i>
        #Option     "CacheLines"                # <i>
        #Option     "Dac6Bit"                   # [<bool>]
        #Option     "DRI"                       # [<bool>]
        #Option     "NoDDC"                     # [<bool>]
        #Option     "ShowCache"                 # [<bool>]
        #Option     "XvMCSurfaces"              # <i>
        #Option     "PageFlip"                  # [<bool>]
        Identifier  "Card0"
        Driver      "intel"
        VendorName  "Intel Corporation"
        BoardName   "Mobile 4 Series Chipset Integrated Graphics Controller"
        BusID       "PCI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

[B]$ pkg_info |grep kde4[/B]
kde4-4.5.5          The "meta-port" for KDE
kde4-icons-oxygen-4.5.5 The Oxygen icon theme for KDE
kde4-shared-mime-info-1.0 Handles shared MIME database under ${KDE_PREFIX}
kde4-style-qtcurve-1.8.4 QtCurve KDE4 widget style
kde4-xdg-env-1.0    Script which hooks into startkde and helps KDE pick up XDG

[B]$ uname -a[/B]
FreeBSD  8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

[B]$ pkg_info |grep xorg[/B]
linux-f10-xorg-libs-7.4_1 Xorg libraries (Linux Fedora 10)
xorg-7.5            X.Org complete distribution metaport
xorg-apps-7.5_1     X.org apps meta-port
xorg-docs-1.4,1     X.org documentation files
xorg-drivers-7.5    X.org drivers meta-port
xorg-fonts-100dpi-7.5 X.Org 100dpi bitmap fonts
xorg-fonts-7.5      X.org fonts meta-port
xorg-fonts-75dpi-7.5 X.Org 75dpi bitmap fonts
xorg-fonts-cyrillic-7.5 X.Org Cyrillic bitmap fonts
xorg-fonts-miscbitmaps-7.5 X.Org miscellaneous bitmap fonts
xorg-fonts-truetype-7.5 X.Org TrueType fonts
xorg-fonts-type1-7.5 X.Org Type1 fonts
xorg-libraries-7.5  X.org libraries meta-port
xorg-macros-1.6.0   X.Org development aclocal macros
xorg-server-1.7.5,1 X.Org X server and related programs


Thanks for help
cicciopasticcio
Junior Member
 
Posts: 5
Joined: 22 Jan 2011, 12:35

Postby darcsis » 13 Feb 2011, 17:34

Are you using KDE Desktop? Try to *disable* desktop effects in system settings if you do not want them. With those eye candies disabled, you will end up with fast redraw, I think.
darcsis
Junior Member
 
Posts: 53
Joined: 17 Nov 2008, 03:37

Postby cicciopasticcio » 13 Feb 2011, 20:44

Thanks man for the suggestion....but I've already disabled all the effects. The problem is related I think to QT when it has to redraw the modified field of a program or refresh an application window.
cicciopasticcio
Junior Member
 
Posts: 5
Joined: 22 Jan 2011, 12:35

Postby wblock@ » 13 Feb 2011, 23:56

Your [file]xorg.conf[/file] doesn't enable DRI. If that hardware supports it (sorry, no idea), that will help. Install [port]graphics/mesa-demos[/port] and see what it says.
[cmd="%"]glxinfo | grep direct[/cmd]
should say yes.
User avatar
wblock@
Old Fart
 
Posts: 10168
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby adamk » 14 Feb 2011, 00:15

Having direct rendering enabled doesn't mean anything. You also need to check the OpenGL renderer string. You should run [cmd=""]glxinfo | grep -i render[/cmd] to see if your drivers are working properly.
adamk
Senior Member
 
Posts: 1624
Joined: 21 Nov 2008, 11:00

Postby wblock@ » 14 Feb 2011, 00:30

And additionally, disabling DRI doesn't make my window movements any slower on xfce, so that makes me wrong twice in the same post. Sorry about that.
User avatar
wblock@
Old Fart
 
Posts: 10168
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby cicciopasticcio » 14 Feb 2011, 21:44

Thanks for your reply guys, but I think the issue is not related to the Xorg config, because as I run openarena the game runs very fast, even though I have an integrated VGA card in a 13" economic notebook (ASUS-UL30A). It's strange to have a very fast running OpenGL game but a very slow KDE environment.

Code: Select all
glxinfo |grep -i render
Failed to initialize GEM.  Falling back to classic.
direct rendering: Yes
OpenGL renderer string: Mesa DRI Mobile Intel® GM45 Express Chipset 20090418 2009Q1


Cheers.
cicciopasticcio
Junior Member
 
Posts: 5
Joined: 22 Jan 2011, 12:35


Return to KDE

Who is online

Users browsing this forum: No registered users and 0 guests