Results 1 to 3 of 3

Thread: Performance Issues in Qt-4.4.3 / Qwt-5.1.1

  1. #1
    Join Date
    Oct 2006
    Posts
    75
    Thanks
    10
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Performance Issues in Qt-4.4.3 / Qwt-5.1.1

    hi ppl,
    i think the performance issue is known to many. I wrote a simple application in which there is a QMainWindow and a child QFrame attached to it. in the child frame, there are some qwt plots and some qt widgets like labels and buttons. some data will be received with UDP socket and the widgets are updated at every 100ms with the received data. the qwt plots are enabled with zoomers and panners with autoreplot disabled and anti-aliasing enabled.
    the issue is, the application is run on both Linux (RHEL 4) and Windows XP with mingw. its running pretty smooth and fast on Windows XP but seems to be a bit slow on Linux. the zooming and panning operations are also slow. i came to know that, its because of windows' better graphics engine.
    in general, how can we improve performance of the application? what are the optimization and performance improvement methods and options that can be applied?

    it would be of great help,in particularly for new programmers, if general c++/qt programming tips and guidelines are posted for improving performance of qt applications.

    thank u very much in advance. bye

    swamy.

  2. #2
    Join Date
    Jan 2006
    Posts
    132
    Thanked 16 Times in 16 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Performance Issues in Qt-4.4.3 / Qwt-5.1.1

    Here you can find some information to start:

    http://www.ics.com/learning/learning_center_downloads/

  3. #3
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,311
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Performance Issues in Qt-4.4.3 / Qwt-5.1.1

    the zooming and panning operations are also slow.
    Qt renders before it clips, what is one of the main reasons for performance issues, when graphics are rendered. When you enable QwtPlotCurve::ClipPolygons, Qwt clips all lines before it passes them to Qt.

    If you want to improve the overall performance of your application you need to understand what's going on. F.e. overload QwtPlot::replot and add some debug statements, so that you can see when and how often it is called and how long each call needs.

    Uwe

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.