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. Rational way to combine compute shader and draw calls for performance
Forum Updated to NodeBB v4.3 + New Features

Rational way to combine compute shader and draw calls for performance

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

    Hello, I am creating simulation of cardiac arrhythmia and did realization of algorithm and real-time visualization in OpenGL using GLFW library. After that, I was looking for a GUI framework that has ability to integrate OpenGL window as widget, and have found Qt5, which seems nice, but:

    • OpenGL functions calls are only allowed inside paint() (because of separate thread for rendering),

    • paint() auto-calling frequency is locked to refresh rate of monitor,

    But I want to: 1) call glDispatchCompute with minimum pauses - to fully utilize GPU for compute 2) and to call glDraw at some (time) intervals between series of compute calls.

    Maybe there is any "compute and draw" pattern for simulation, that uses GPU compute and visualization of intermediate results? Or somebody have any insights?

    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