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. Best Practices When Drawing Many High Resolution Images to the Screen With High Frame Rates.
Forum Update on Monday, May 27th 2025

Best Practices When Drawing Many High Resolution Images to the Screen With High Frame Rates.

Scheduled Pinned Locked Moved Unsolved General and Desktop
qglwidgeqgraphicsviewusing gpu
2 Posts 2 Posters 876 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.
  • Z Offline
    Z Offline
    Zates
    wrote on last edited by
    #1

    HI!

    I am very new to QT Creator and am a little overwhelmed with all of the power QT has to offer. I am wondering what the best / most efficient way to draw many high resolution 2D images onto the screen, with a static background image. The processing / drawing should be hardware accelerated, because there are is a moderate amount of rotations and translations that need to occur in real time. And am hoping to see a frame rate in the 100s, and there are a lot of fast moving images that need to look smooth as they move across the screen. I have looked into a couple of solutions but I am not sure which one is best (if any).:

    Use a QGLWidget to house all of the images and override the paintEvent method. (tried this and only got 60 fps, possibly because of v-sync?, compared to comparable results with a vanilla non GL widget)

    Use a QGraphicsView to house multiple QGraphicsPixmapItems.

    Any input on the best solution to this type of problem or what tutorials I should look at that follow the best practices.

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

      Hi and welcome to devnet,

      Do I understand correctly that you want to run your FPS at 100Hz ?

      In any case, you'll have to go OpenGL (QWindow and friends)

      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

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved