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

QOpenGLWidget performance

Scheduled Pinned Locked Moved Unsolved General and Desktop
openglqgraphicssceneqgraphicsview
1 Posts 1 Posters 1.2k 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.
  • T Offline
    T Offline
    tanshihaj
    wrote on last edited by
    #1

    I faced with some QOpenGLWidget performance issues as viewport for QGraphicsView. In QGraphicsView there are one QGraphicsVideoItem and several QGraphicsItems which draw some HUD over QGraphicsVideoItem.

    When enabling QGraphicsView output through QOpenGLWidget it is uses less CPU resource than without QOpenGLWidget, but still too much. It is about 60-70% of CPU usage.

    But when you using deprecated QGLWidget, CPU usage is about 20%.

    Using profiler I find out that the most heaviest function is convertRGBA8888FromARGB32PM_sse4(unsigned int*, unsigned int const*, int, QPixelLayout const*, unsigned int const*) which is called by QWidgetBackingStore::sync():
    http://zaripov.net/Screen Shot 2016-01-24 at 9.16.36 PM.png

    Is there any solutions to make render with QOpenGLWidget faster?
    Or any ideas, why it is so slow?

    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