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 to control FPS per window surface?
Forum Updated to NodeBB v4.3 + New Features

How to control FPS per window surface?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 221 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.
  • A Offline
    A Offline
    arceajin
    wrote on last edited by
    #1

    In my program, there are QtWaylandCompositor which contains two windows for each screen.

    WaylandCompositor {
      WaylandOutput  {
         window: Window {
           id: screen1
         }
      }
      WaylandOutput  {
         window: Window {
           id: screen2
         }
      }
    }
    

    I want to control the maximum FPS of each window surface.
    one screen performs max 30 FPS and another max 60 FPS.
    So I am looking for a solution like QT_QPA_UPDATE_IDLE_TIME not for the process but the window.


    I am trying to reimplement QPlatformWindow::requestUpdate https://code.woboq.org/data/symbol.html?root=../qt5/&ref=_ZN15QPlatformWindow13requestUpdateEv,
    but I don't know how to put the customized QPlatformWindow class into QQuickWindow.
    https://code.woboq.org/qt5/qtbase/src/gui/kernel/qwindow.h.html#_ZNK7QWindow6handleEv

    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