Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [solved] QML Linux performance issues

[solved] QML Linux performance issues

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 5.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Schneidi
    wrote on last edited by
    #1

    Hey guys,

    I'm usually developing under Windows but of curse I wanna have system independent software.

    From time to time I'm testing my software on my openSuse system to ensure that it still works.
    A friend of mine said he tested a qml based project on his ... I guess it is a Linux Mint system
    and told me that he has some serious performance problems with the qml UI.

    To validate this I have tested it under my suse system and it definitely hase some problems.

    For example:

    I have a ListView in my UI which show image data and stuff I animate the hole thing.
    I developed it on my windows 7 system on a pretty old machine with less performance.
    And it runs pretty good now I've tested the same application on my linux system with
    Intel Core 2 Quad which has a lot more power than my windows machine.

    But the ListView itself and other animation run totally stuttering. It seems that the software
    runs on a system that has to less performance to calculate the animations fluently.

    Is this a known problem ?

    Does anybody had made the same experience ?
    What could cause this kind of issue ?

    thanks for help

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mbrasser
      wrote on last edited by
      #2

      Hi,

      If you haven't seen it already, "this page":http://doc.qt.nokia.com/4.7/qdeclarativeperformance.html provides some hints for getting the best performance out of QML. Particularly important for X11 is the graphicssystem used: you will need to use "raster" rather than "native" for QML to perform acceptably ("raster" is default if you are using qmlviewer).

      Regards,
      Michael

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Schneidi
        wrote on last edited by
        #3

        Hey guys, your are so great this actually solves the problem at the first sight.

        I called

        @QApplication::setGraphicsSystem("raster");@

        before calling the QApplication constructor.
        Now I get a pretty good performance on my Quad processor maybe I have validate this on
        a weaker system, but I guess this should solve the performance problems we had.

        Thanks mbrasser I already knew this page but I just forgot to consult this one ^^

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved