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. How can I set dynamically the FPS of QML Animation?
Forum Updated to NodeBB v4.3 + New Features

How can I set dynamically the FPS of QML Animation?

Scheduled Pinned Locked Moved QML and Qt Quick
2 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.
  • B Offline
    B Offline
    Bluepark
    wrote on 24 Oct 2012, 02:57 last edited by
    #1

    I found the hard coded value(Qt 4.8) of QML Animation 60 FPS.

    -> qt/src/corelib/animation/qabstractanimation.cpp
    -> #define DEFAULT_TIMER_INTERVAL 16 (16ms is 62.5 FPS)

    There are any way to set dynamically the timer interval of QML Animation FPS without Qt Framework's recompile?
    Because, sometimes we need to set lower than 60 FPS for other application's graphic performance.
    (Ex. Video player with QML Animation Widget and Navigation are running at the same time.)

    Thank you in advance for your kind reply.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rcari
      wrote on 24 Oct 2012, 14:28 last edited by
      #2

      I think the 60+fps/16ms timer is set at compile time in Qt4. I read about work to use the vertical refresh rather than a timer to avoid flickering and adapt to the actual performance of the platform but that's for Qt5.

      1 Reply Last reply
      0

      1/2

      24 Oct 2012, 02:57

      • Login

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