1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Qt4 applications slow redraw

Discussion in 'KDE' started by cicciopasticcio, Feb 10, 2011.

  1. cicciopasticcio

    cicciopasticcio New Member

    Messages:
    5
    Thanks Received:
    0
    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:
    $ pciconf -lv
    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
    
    $ cat /etc/X11/xorg.conf 
    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
    
    $ pkg_info |grep kde4
    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
    
    $ uname -a
    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
    
    $ pkg_info |grep xorg
    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
     
  2. darcsis

    darcsis New Member

    Messages:
    53
    Thanks Received:
    8
    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.
     
  3. cicciopasticcio

    cicciopasticcio New Member

    Messages:
    5
    Thanks Received:
    0
    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.
     
  4. wblock@

    wblock@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    11,556
    Thanks Received:
    2,224
    Your xorg.conf doesn't enable DRI. If that hardware supports it (sorry, no idea), that will help. Install graphics/mesa-demos and see what it says.
    % glxinfo | grep direct
    should say yes.
     
  5. adamk

    adamk New Member

    Messages:
    1,624
    Thanks Received:
    265
    Having direct rendering enabled doesn't mean anything. You also need to check the OpenGL renderer string. You should run glxinfo | grep -i render to see if your drivers are working properly.
     
  6. wblock@

    wblock@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    11,556
    Thanks Received:
    2,224
    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.
     
  7. cicciopasticcio

    cicciopasticcio New Member

    Messages:
    5
    Thanks Received:
    0
    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:
    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.