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?
QtWS25 Last Chance

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
  • 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 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 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

      • Login

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