Results 1 to 4 of 4

Thread: Slow application

  1. #1
    Join Date
    Jan 2006
    Location
    Genk, Belgium
    Posts
    36
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Slow application

    I ported an application to Qt 4.2 under Linux, primarily using the porting tools and qt3support classes.
    When the program is executed, X takes about 50% of processor time, but the application is rather responsive.
    After some time it becomes very slow. Even simple mouse presses take some time. X consumes about 95% of CPU, even when the application does nothing. Other applications remain responsive...

    Any ideas?
    Last edited by Pieter from Belgium; 13th October 2006 at 16:52. Reason: updated contents

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Slow application

    Try profiling your program and detect the potential bottle necks.
    J-P Nurmi

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Slow application

    You might be leaking memory. Does your "free" command show extensive swap memory usage?

  4. #4
    Join Date
    Jan 2006
    Location
    Genk, Belgium
    Posts
    36
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Slow application

    I finally pinpointed the problem, and it is entirely within our code. Somehow a QTimer has sneaked in months ago, causing a repaint every 100 milliseconds
    Removing this, the application executes normally.

    Thanks anyway.

Similar Threads

  1. Replies: 3
    Last Post: 8th December 2006, 18:51
  2. Application default font
    By larry104 in forum Qt Programming
    Replies: 2
    Last Post: 16th September 2006, 01:24
  3. Gnome makes application crash
    By regix in forum Qt Programming
    Replies: 35
    Last Post: 18th August 2006, 19:44
  4. Replies: 5
    Last Post: 24th April 2006, 15:42
  5. Replies: 3
    Last Post: 31st March 2006, 18:38

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.