Results 1 to 12 of 12

Thread: Qt4 slow like molasses

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt4 slow like molasses

    Have you tried to compile in release mode? For me, a number of things are very slow in debug mode, but are perfectly usable in release mode.

  2. #2
    Join Date
    Jan 2006
    Location
    Bend, Oregon
    Posts
    27
    Qt products
    Qt3
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt4 slow like molasses

    Good point. I'll try and run the release version. For Qt3 I have been using release code, so that could definitely make a difference. I'll report back as soon as I get a chance to test it.

    T

  3. #3
    Join Date
    Jan 2006
    Location
    Bend, Oregon
    Posts
    27
    Qt products
    Qt3
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt4 slow like molasses

    Quote Originally Posted by fatjuicymole View Post
    Have you tried to compile in release mode? For me, a number of things are very slow in debug mode, but are perfectly usable in release mode.
    Tested in release mode and it is way faster! So that is definitely part of it. However, I tried the same debug version on two other (inferior machines) and the response is immediate, no sluggishness whatsoever! Go figure.

    All systems are 64-bit Windows 7.

    Now the slow system is actually the fastest with a Core 2 Duo T9550 @ 2.67 GHz, 4GB RAM NVIDIA Quadro NVS 160M. Windows Experience: 4.4

    My little netbook is way faster, no delay whatsoever:

    U2300 @ 1.2 GHz, 4GB RAM, built in Intel Graphics, Windows Experience: 3.2

    Desktop:
    AMD Athlon 64 X2 Dual Core 5200+ @ 2.6GHz, 6GB RAM, ATI Radeon X1300 Series (Windows driver - WDDM), Windows Experience: 4.1

    So I figure it can't be the hardware by itself. Maybe the graphics adapter. Although the Nvidia is one of the fastested among these machines.

    The strange thing is that Qt3 runs perfectly fine even on the slow machine. The good news is that there are some systems where it performs fine. It would be good to figure out what the underlying problem is. Looks like it is running slowest on the fastest hardware...

    Cheers,
    Thomas

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

    Default Re: Qt4 slow like molasses

    Quote Originally Posted by Tommytrojan View Post
    It would be good to figure out what the underlying problem is. Looks like it is running slowest on the fastest hardware...
    Try changing your system password...
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Qt4 slow like molasses

    Quote Originally Posted by Tommytrojan View Post
    The strange thing is that Qt3 runs perfectly fine even on the slow machine. The good news is that there are some systems where it performs fine. It would be good to figure out what the underlying problem is. Looks like it is running slowest on the fastest hardware...
    My experience with Qt4 is that it's very fast on Windows. A simple dialog like this should not lag.
    I can see one reason why it could be lagging and that is if there's not enough processing power to handle the paint events.

    But to be sure you should try to create a minimal working example, or post your code, like already asked above.
    Maybe you did something wrong with the tree widget for example.

  6. #6
    Join Date
    Jan 2006
    Location
    Bend, Oregon
    Posts
    27
    Qt products
    Qt3
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt4 slow like molasses

    Quote Originally Posted by tbscope View Post
    My experience with Qt4 is that it's very fast on Windows. A simple dialog like this should not lag.
    I can see one reason why it could be lagging and that is if there's not enough processing power to handle the paint events.

    But to be sure you should try to create a minimal working example, or post your code, like already asked above.
    Maybe you did something wrong with the tree widget for example.
    Well, it seems to run fast on two of my three machines, so I wouldn't understand how this could be my code, if I'd do something foolish I would expect it to be slow on all machines.

  7. #7
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt4 slow like molasses

    Then it is environmental. Ship your slow machine to me and I'll have a look

    You'll have to work out what else is running on the "slow" machine? Antivirus scanning in the background, Windows updating a search index, zombie process(es) sitting on 100% CPU. Are all the machines running identical versions of the Qt run time libs? What about Windows patches? Switch the slow machine to the generic SVGA driver...
    Last edited by ChrisW67; 18th June 2010 at 02:46.

Similar Threads

  1. Slow interface
    By Guilo in forum Qt Programming
    Replies: 2
    Last Post: 4th February 2010, 17:32
  2. QGraphicsScene too slow
    By samsam in forum Qt Programming
    Replies: 1
    Last Post: 10th July 2009, 16:18
  3. Spectrogram too slow
    By a_kaa in forum Qwt
    Replies: 2
    Last Post: 9th January 2009, 16:57
  4. Qt4 designer SLOW - how to fix?
    By hvengel in forum Qt Tools
    Replies: 3
    Last Post: 10th January 2008, 12:07
  5. Slow application
    By Pieter from Belgium in forum Qt Programming
    Replies: 3
    Last Post: 17th October 2006, 09:44

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
  •  
Qt is a trademark of The Qt Company.