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. BB10 Dev Alpha Qt Quick animations are too slow
Forum Updated to NodeBB v4.3 + New Features

BB10 Dev Alpha Qt Quick animations are too slow

Scheduled Pinned Locked Moved Mobile and Embedded
10 Posts 5 Posters 4.7k 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.
  • B Offline
    B Offline
    beemaster
    wrote on last edited by
    #1

    I wonder why QML animations in Qt Quick are so slow on Dev Alpha device? I checked both Qt 4.8 and Qt 5.0 (bundled with my app). Consider following simple example:

    @
    import QtQuick 1.1

    Rectangle {
    width: 728
    height: 1280
    color: "black"

    Rectangle {
        id: inner
        anchors.fill: parent
        color: "green"
    
        NumberAnimation { target: inner; property: "opacity"; duration: 2000; to: 0; running: true }
    }
    

    }
    @

    This is simple fullscreen green rectangle, which fades out slowly. On desktop it's smooth. On Nokia N9 it's smooth. On Symbian it's smooth. On Android it's smooth. On BB10 Dev Alpha it's lagging horribly.

    Take another example:

    @
    import QtQuick 1.1

    Rectangle {
    width: 728
    height: 1280
    color: "black"

    Rectangle {
        id: inner
        width: parent.width
        height: parent.height
        x: -width
        color: "green"
        NumberAnimation { target: inner; property: "x"; duration: 2000; to: 0; running: true }
    }
    

    }
    @

    This one is moving green rectangle slowly from left to the screen. Same story. Horrible lags on BB10. Does anyone else experience this? What's the problem? Will this be fixed in some later versions?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      Unfortunately I don't have a BB10 developer device and I cannot try it myself. The virtual machine of BB10 that I installed on my Mac OS X was quite slow in general. I hope that BB10 on the final device that will be released on the market next year will be fast and smooth :)

      http://anavi.org/

      1 Reply Last reply
      0
      • C Offline
        C Offline
        conny
        wrote on last edited by
        #3

        You're not alone :) I'm having the same issues for a very long time already. Now that RC1 is out I've rechecked everything and reported a couple of bugs. I've used one of your examples, hope that's ok :)

        https://bugreports.qt-project.org/browse/QTBUG-28487
        https://bugreports.qt-project.org/browse/QTBUG-28488
        https://bugreports.qt-project.org/browse/QTBUG-28485
        https://bugreports.qt-project.org/browse/QTBUG-28486

        1 Reply Last reply
        0
        • B Offline
          B Offline
          Bomb3rman
          wrote on last edited by
          #4

          Did you enable OpenGL?
          Which one of the dev alphas do you have?

          On my dev alpha animations are running ok.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            conny
            wrote on last edited by
            #5

            How did you enable OpenGL? AFAIK it's enabled by default. I'm on a DevAlpha-A with Beta-4. The second example of the OP runns smooth, but too slow. It takes 5 seconds instead of 2 to complete the animation.

            1 Reply Last reply
            0
            • B Offline
              B Offline
              Bomb3rman
              wrote on last edited by
              #6

              In Qt4 it is not enabled by default, in Qt5 only if you use QtQuick 2.

              setViewport(new QGLWidget);
              setViewportUpdateMode(QGraphicsView::FullViewportUpdate);

              1 Reply Last reply
              0
              • C Offline
                C Offline
                conny
                wrote on last edited by
                #7

                You're right thanks. Sorry I didn't mention that I'm using QtQuick 2.0 on Qt 5.0 RC1.

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  piggz
                  wrote on last edited by
                  #8

                  Seems like it could be fixed in the new device firmware. My initial tests seem to have much better performance.

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    conny
                    wrote on last edited by
                    #9

                    I can second that. At least the simple animation now really takes 2 seconds and not 5 as before. Still need to test with more complex scenes...

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      conny
                      wrote on last edited by
                      #10

                      Animations now have proper timing, but frame rates are still bad. I'm still stuck with max ~30 FPS. I've updated the bug report with some example BARs. Maybe someone with a DevAlpha-B could give it a try?!

                      https://bugreports.qt-project.org/browse/QTBUG-28487

                      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