Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Android multicore utilization
QtWS25 Last Chance

Android multicore utilization

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 1.5k 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.
  • G Offline
    G Offline
    Gourmet
    wrote on last edited by
    #1

    I create some programs for Android using Qt. In these programs there are LOTS of signal/slot connections actively working. And programs actively work with 2D graphics - they have several simultaneous animations, including animated GIFS and SVG. On the old one Android dual core tablet with 1.0 GHz Qualcomm my programs work.... slow. Animations are antsy, it is not enough processor performance to make them smooth. But I use very old tablet with just 2 cores on 1GHz each. Now there are huge amount of phones and tablets with multicore processors and higher processor rate. Many inexpensive phones have AnTuTu rate 30K, 40K, 60K, 80K and more. Of course they must utilize their 8 or 10 cores to show high performance. But can Qt5 in Android do the same? What should I expect if I run my program on phone with AnTuTu rate about 60K? Will it work 10 times faster than on my old tablet with AnTuTu just 6K? I'm going purchase smartphone with AnTuTu rate about 40K-60K - but wouldn't me become disappointed?

    jsulmJ 1 Reply Last reply
    0
    • G Gourmet

      I create some programs for Android using Qt. In these programs there are LOTS of signal/slot connections actively working. And programs actively work with 2D graphics - they have several simultaneous animations, including animated GIFS and SVG. On the old one Android dual core tablet with 1.0 GHz Qualcomm my programs work.... slow. Animations are antsy, it is not enough processor performance to make them smooth. But I use very old tablet with just 2 cores on 1GHz each. Now there are huge amount of phones and tablets with multicore processors and higher processor rate. Many inexpensive phones have AnTuTu rate 30K, 40K, 60K, 80K and more. Of course they must utilize their 8 or 10 cores to show high performance. But can Qt5 in Android do the same? What should I expect if I run my program on phone with AnTuTu rate about 60K? Will it work 10 times faster than on my old tablet with AnTuTu just 6K? I'm going purchase smartphone with AnTuTu rate about 40K-60K - but wouldn't me become disappointed?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Gourmet "What should I expect if I run my program on phone with AnTuTu rate about 60K? Will it work 10 times faster than on my old tablet with AnTuTu just 6K?" - you should not expect that it will be 10 times faster. What is AnTuTu rate?

      To utilize more than one core you need to have more than one thread in your app. At least one thread for each core. This is something you need to take care and implement, just buying a phone with more cores does not mean your app will automatically use all of them. You can do this with Qt on Android, read: http://doc.qt.io/qt-5/threads-technologies.html
      This is not a simple topic.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • G Offline
        G Offline
        Gourmet
        wrote on last edited by
        #3

        I am familiar enough with multithreading apps and I have developed several of them. But my question was about multicore utilization by Qt itself. My app has several SVG animations in frontpage and it uses QAudioInput which works in background. Will Qt use separate cores to animate SVGs? Will it use cores for audio recording and process queued connections?

        jsulmJ 2 Replies Last reply
        0
        • G Gourmet

          I am familiar enough with multithreading apps and I have developed several of them. But my question was about multicore utilization by Qt itself. My app has several SVG animations in frontpage and it uses QAudioInput which works in background. Will Qt use separate cores to animate SVGs? Will it use cores for audio recording and process queued connections?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Gourmet I don't think Qt uses several threads for animations or audio recording. But I cannot tell you for sure. You can check the source code or just make a test application and check the CPU utilization.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • G Gourmet

            I am familiar enough with multithreading apps and I have developed several of them. But my question was about multicore utilization by Qt itself. My app has several SVG animations in frontpage and it uses QAudioInput which works in background. Will Qt use separate cores to animate SVGs? Will it use cores for audio recording and process queued connections?

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Gourmet In general you should ask Qt developers (http://lists.qt-project.org/mailman/listinfo/development) for such questions. This is Qt user forum.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1

            • Login

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