Qt4 applications slow redraw

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:
[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
 
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.
 
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.
 
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.
 
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.
 
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.
 
This is an old thread, but I seem to be having a similar issue with Qt applications (Okular, Lyx - screenshot).
13.2-RELEASE-p2 FreeBSD 13.2-RELEASE-p2 GENERIC amd64 from PKG. DRI enabled and working:
❯ glxinfo |grep -i render
direct rendering: Yes
OpenGL renderer string: NVIDIA GeForce GTX 660/PCIe/SSE2
GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth,
GL_NVX_conditional_render, GL_NVX_gpu_memory_info, GL_NVX_nvenc_interop,
GL_NV_compute_program5, GL_NV_conditional_render,
GL_NV_path_rendering, GL_NV_pixel_data_range, GL_NV_point_sprite,
GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted,
GL_NVX_conditional_render, GL_NVX_gpu_memory_info, GL_NVX_nvenc_interop,
GL_NV_compute_program5, GL_NV_conditional_render,
GL_NV_path_rendering, GL_NV_pixel_data_range, GL_NV_point_sprite,
GL_EXT_render_snorm, GL_EXT_robustness, GL_EXT_sRGB,
GL_NV_conditional_render, GL_NV_copy_buffer, GL_NV_copy_image,
GL_NV_packed_float_linear, GL_NV_path_rendering,
GL_OES_element_index_uint, GL_OES_fbo_render_mipmap,
Menus are scrambled, suggesting no redraw at all.
Any ideas would be greatly appreciated.
 

Attachments

  • 2023-09-12-093443_3440x1440_scrot.png
    2023-09-12-093443_3440x1440_scrot.png
    127.7 KB · Views: 33
This is an old thread, but I seem to be having a similar issue with Qt applications (Okular, Lyx - screenshot).
13.2-RELEASE-p2 FreeBSD 13.2-RELEASE-p2 GENERIC amd64 from PKG. DRI enabled and working:

Menus are scrambled, suggesting no redraw at all.
Any ideas would be greatly appreciated.

It turns out it's a desktop redraw issue with dwm and Qt applications. Sorry for the noise.
 
Back
Top