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. Qt raster engine vs OpenGL in QGraphicsView
Forum Updated to NodeBB v4.3 + New Features

Qt raster engine vs OpenGL in QGraphicsView

Scheduled Pinned Locked Moved General and Desktop
qgraphicsviewopengl
2 Posts 2 Posters 1.9k Views 2 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.
  • Resurr3ctionR Offline
    Resurr3ctionR Offline
    Resurr3ction
    wrote on last edited by
    #1

    I am working on a scene/view representation of a scalable graph diagram. I am now doing performance tests with thousands of nodes and edges and I am puzzled with few things. Test with 10 000 movable nodes and 10 000 edges:

    1. Using OpenGL instead of native raster engine is actually worse (class QOpenGLWidget). With raster I can zoom out to see everything and while it stutters it is actually not that bad. With OpenGL I can barely zoom out to see everything before it starts dying badly.

    2. In neither OpenGL or Qt raster has antialiasing noticeable impact on performance. Which is strange because visually the difference is clearly noticeable and I would expect that with this amount of stuff being drawn I could get noticeable performance difference when disabled.

    While the second point is more of a curiosity the first one seems important to me. If I understand correctly then Qt raster paint engine uses purely CPU while OpenGL should use hardware acceleration. So OpenGL should really be a lot better at this. However since it is slower/worse performance wise I would say that it is only being emulated through CPU and no graphics card is actually. Can I check that somehow from within the programme or set it? I seem not to be able to find the answer in the docs.

    But of course maybe the raster IS actually better for drawing in QGraphicsView.

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

      Hi,

      Things to check:

      • What GPU do you have on your system ?
      • OS ?
      • Qt version ?
      • GPU drivers ?
      • Are you rendering too much objects on your scene ?

      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