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. Threaded OpenGL rendering and VSYNC
Forum Updated to NodeBB v4.3 + New Features

Threaded OpenGL rendering and VSYNC

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 172 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.
  • S Offline
    S Offline
    snow45
    wrote on last edited by
    #1

    I have a QOpenGLWindow with a worker thread doing the rendering. The QOpenGLContext has been moved to my worker thread with moveToThread() and stays there until the thread finishes. In the worker thread I have a timer that fires to trigger rendering the next frame. Is there a way to tie it to vsync instead of using timers in this scenario? I am hoping to not have to continously move the context between threads.

    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