Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QML animation make large load of CPU core I.MX6
Forum Updated to NodeBB v4.3 + New Features

QML animation make large load of CPU core I.MX6

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 2.8k Views 1 Watching
  • 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.
  • _ Offline
    _ Offline
    _dmp
    wrote on last edited by
    #1

    I have embedded device with Freescale I.MX6 SoC. I compile Qt5.3.1 from source with support OpenGL and when I run my application I have very large use cores of I.MX6 instead use GPU at max. Other more complex animations use core of CPU even greater. Look at the htop screenshot. If I build my QML application for Windows Angle CPU of PC load at 2...3% - all work at GPU at maximum. Does works OpenGLat I.MX6 correctly or for embedded Qt is it normally (i mean great load core CPU)?

    source:
    @import QtQuick 2.2
    import QtQuick.Window 2.1
    import QtQuick.Controls 1.2
    import QtQuick.Controls.Styles 1.2

    Window {
    visible: true
    width: 360
    height: 360

    MouseArea {
    anchors.fill: parent
    onClicked: {
    Qt.quit();
    }
    }

    ProgressBar {
    anchors.fill: parent
    anchors.margins: 40

    indeterminate: true
    style: ProgressBarStyle {
    background: Rectangle {
    radius: 2
    color: "lightgray"
    border.color: "gray"
    border.width: 1
    implicitWidth: 200
    implicitHeight: 24
    }
    progress: Rectangle {
    border.color: "steelblue"
    color: "lightsteelblue"

    // Indeterminate animation by animating alternating stripes:
    Item {
     anchors.fill: parent
     anchors.margins: 1
     visible: control.indeterminate
     clip: true
     Row {
      Repeater {
       Rectangle {
        color: index % 2 ? "steelblue" : "lightsteelblue"
        width: 20 ; height: control.height
       }
       model: control.width / 20 + 2
      }
      XAnimator on x {
       from: 0 ; to: 40
       loops: Animation.Infinite
       running: control.indeterminate
       duration: 600
      }
     }
    }
    

    }
    }
    }

    }
    @

    and screenshot of htop
    !http://i66.fastpic.ru/big/2014/0818/00/c2af377719628b9aae70675641b83000.png(screenshot)!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sriram vr
      wrote on last edited by
      #2

      IMX-6 has single dual and quad core versions, open GL uses more Ram and heavily loads the core it is better to use IMx-6 Quad core with 512 0r 1GB RAM the processor is designed for audio video applications but still it gets hot very quickly even when running light weight applications..........

      1 Reply Last reply
      0
      • _ Offline
        _ Offline
        _dmp
        wrote on last edited by
        #3

        thank you for reply.

        Examples from Vivante load core of CPU more less then Qt application - 5...10%.
        If I use ListView and scroll content by finger "left-rigth" - core CPU loaded by render thread even more (upto 70% and more)...
        So is it normally, or it is wrong use compiler options, or something else?

        P.S If I use qml animation, power consumption is increases +5 watt. Explicitly GPU is activated. But the CPU core is loaded very hardly too.

        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