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. QOpenGLWidget VSync
Forum Updated to NodeBB v4.3 + New Features

QOpenGLWidget VSync

Scheduled Pinned Locked Moved Unsolved General and Desktop
qopenglcontextvsyncframerateopengl
24 Posts 6 Posters 9.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.
  • R Offline
    R Offline
    riyana
    Banned
    wrote on 19 Dec 2020, 08:26 last edited by
    #21
    This post is deleted!
    1 Reply Last reply
    0
    • R Offline
      R Offline
      rtavakko
      wrote on 13 Jan 2021, 21:05 last edited by
      #22

      @mcleary @Patterson

      Its been a long time since this thread was started but I think it makes sense to post the updates here. I put together a basic project with native OpenGL and also using Qt's QOffscreenSurface and QWindow classes.

      The github repository can be found here:

      https://github.com/rtavakko/VSync

      In this setup there is a single renderer that render to an FBO texture using its own thread and 3 display windows that share the GUI thread with all of them sharing OpenGL contexts together.

      On my machine I see a clear lag with VSync on when there are 2 or more display windows. Turning VSync off clears the lag. The calcualted FPS values do not indicate any issues in either case which doesn't help but I see a clear difference when I start the application with say 2 displays and then close one of them.

      I have my internal laptop display and an RCA RT1970 (both running at 1920x1080 - 60Hz) and both connected to my integrated Intel HD 530 GPU. My discrete GPU is an NVIDIA GeForce GTX 950M and I'm running Qt 5.12.0 MSVC2017 64 bit.

      I'll dig in further myself also with other machines but if anyone has any ideas on what could be causing this, it would really help debug further.

      Cheers!

      1 Reply Last reply
      1
      • M Offline
        M Offline
        Mylincoln Portal
        Banned
        wrote on 24 Sept 2021, 08:13 last edited by
        #23
        This post is deleted!
        1 Reply Last reply
        0
        • L Offline
          L Offline
          liamerickson
          Banned
          wrote on 4 Feb 2022, 11:22 last edited by liamerickson 2 Apr 2022, 11:23
          #24
          This post is deleted!
          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