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. QGraphicsScene frame rate throttling / coalescing?
Qt 6.11 is out! See what's new in the release blog

QGraphicsScene frame rate throttling / coalescing?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 841 Views 2 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.
  • davecotterD Offline
    davecotterD Offline
    davecotter
    wrote on last edited by davecotter
    #1

    Say i have a QGraphicsScene with two or more QGraphicsVideoItems that may run at different framerates. maybe one is at 30fps and another is at 30fps, but they're both running on different timers, which may drift a little (assume this is possible even if it's not).

    If i call present() on each item during their timer fire, the scene is going to get 60fps worth of presentations... is it really going to update the scene that fast? the view? are they different? and if i have THREE at that rate, it'll get 90fps worth?

    and what if they're at different framerates? what if one is 30, one is 60, one is at 24... what's the spec for this? i see no doc covering how this should work...

    -dave

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      No it won't work like that, one of the reason is your graphics card speed and the other, your screen refresh rate.

      Usually, a graphical toolkit tries to minimize the number of time it has to trigger updates on screen for efficiency reasons. That's why calling update several times won't trigger as much repainting because Qt will try to optimize them.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • davecotterD Offline
        davecotterD Offline
        davecotter
        wrote on last edited by
        #3

        okay cool. but what is the spec? can i expect maximum 60fps and no more? is it documented somewhere?

        SGaistS 1 Reply Last reply
        0
        • davecotterD Offline
          davecotterD Offline
          davecotter
          wrote on last edited by
          #4

          nobody knows the answer to this?

          1 Reply Last reply
          0
          • davecotterD davecotter

            okay cool. but what is the spec? can i expect maximum 60fps and no more? is it documented somewhere?

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @davecotter said in QGraphicsScene frame rate throttling / coalescing?:

            okay cool. but what is the spec? can i expect maximum 60fps and no more? is it documented somewhere?

            What documentation are you looking for ?
            Current screen refresh rate goes between 60 and 360Hz however the human eyes/brains cannot process images that fast. Then you have the limit of your graphics card and what you are going to make it process and also how you are going to feed it. So it's a bit of a moving target.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • davecotterD Offline
              davecotterD Offline
              davecotter
              wrote on last edited by
              #6

              no, i want to know what the spec is for Qt's refresh rate. if i have a dozen timers each firing separately, possibly at different frequencies, possibly drifting, calling present() whenever they fire, does QGraphicsScene do coalescing? I know that macOS has coalescing but doe Qt?

              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