Results 1 to 9 of 9

Thread: How to get qtdemo with reasonable speed?

  1. #1
    Join Date
    Feb 2006
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to get qtdemo with reasonable speed?

    I've compiled Qt 4.1 on several Linux machines and tried the demos with qtdemo. On each machine the demos were slow as hell, with about a framerate of 4 fps.

    Does anyone know what the prerequisites are to get the demos at a reasonable speed?

  2. #2
    Join Date
    Jan 2006
    Location
    Athens - Greece
    Posts
    219
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to get qtdemo with reasonable speed?

    Are we talking about openGL? What's the output of:
    glxinfo | grep direct

  3. #3
    Join Date
    Feb 2006
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to get qtdemo with reasonable speed?

    Quote Originally Posted by yop
    Are we talking about openGL? What's the output of:
    glxinfo | grep direct
    Here is the output

    Qt Code:
    1. ponto@burns:~> glxinfo | grep direct
    2. direct rendering: Yes
    To copy to clipboard, switch view to plain text mode 

    I do not think that opengl is a problem here, because games like Unreal Tournament 2003 are quite fast here. I also do not know whether the qtdemo app uses opengl.

  4. #4
    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: How to get qtdemo with reasonable speed?

    Did you compile the demo in debug or release mode? (Simply speaking, is the binary of it "huge" (2MB) or "small" (200kB)?) It might be compiled in debug mode, which causes a major slowdown.

  5. #5
    Join Date
    Feb 2006
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to get qtdemo with reasonable speed?

    Quote Originally Posted by wysota
    Did you compile the demo in debug or release mode? (Simply speaking, is the binary of it "huge" (2MB) or "small" (200kB)?) It might be compiled in debug mode, which causes a major slowdown.
    I see that the qtdemo executable itself is linked against debug versions of the Qt libraries. Howver the demos themselves are linked against the release libraries. I also checked the compilation process and see that optimized binaries are build.

  6. #6
    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: How to get qtdemo with reasonable speed?

    But is it just the qtdemo that is slow or all examples are slow?

  7. #7
    Join Date
    Feb 2006
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to get qtdemo with reasonable speed?

    Quote Originally Posted by wysota
    But is it just the qtdemo that is slow or all examples are slow?
    Most examples are as slow as qtdemo. For example the composite demo is really slow. Also slow are deform and pathstroke.
    Mainwindow is not really slow but too slow for the shown effect.

  8. #8
    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: How to get qtdemo with reasonable speed?

    Composite can be a bit slow, although I don't have direct rendering working, so that may be because of the driver.

  9. #9
    Join Date
    May 2006
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to get qtdemo with reasonable speed?

    Disclaimer: X11 only

    The source for qtdemo is in QTDIR/examples/tools/qtdemo.
    Search for "slow" in displaywidget.cpp.
    This message popped up *once* for me, I responded properly, and qtdemo ran fast. Every other time, its been slow as molasses.

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.