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. OpenGL rendering always uses 100% GPU
Forum Updated to NodeBB v4.3 + New Features

OpenGL rendering always uses 100% GPU

Scheduled Pinned Locked Moved General and Desktop
openglvsync
2 Posts 1 Posters 2.5k 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.
  • R Offline
    R Offline
    RollerStevenson
    wrote on 10 Jun 2015, 10:48 last edited by RollerStevenson 6 Oct 2015, 20:28
    #1

    I wanted to get a first impression of Qt and compiled the example "openglwindow", that shows just a rotating coloured triangle at the screen refresh rate.
    I remarked that my graphics adaptor is always at nearly 100% GPU usage when running this simple example, while the CPU usage is low. When I set QSurfaceFormat to one refresh per second (setSwapInterval(60)), the triangle is updated just once per second as expected, but still the GPU usage is at 100%, and the system responds very slow to mouse or keyboard events.
    The same seems to occur in other samples like "openglunderqml", the GPU is always at maximum load.

    I probably did not understand some fundamental things about what the rendering loop does here.

    Qt Creator Community OpenGL, VC2013, Windows 7/64, Intel i7, VGA AMD 7850, all drivers are up-to-date

    1 Reply Last reply
    0
    • R Offline
      R Offline
      RollerStevenson
      wrote on 10 Jun 2015, 14:58 last edited by RollerStevenson 6 Oct 2015, 20:28
      #2

      Additional info:

      When I place a QThread::usleep(16667) inside the rendering loop, and create the window with QSurfaceFormat::setSwapInterval(0) (no vertical sync), the rendering runs smoothly at no noticeable GPU load. With vertical synchronisation switched on (setSwapInterval(1)), there are in fact not more than 60 fps rendered, but the GPU is heavily working on something.
      The same occurs on another system (Qt Creator Community OpenGL, mingw, Win32, Intel Q6600, VGA AMD 3850). Can anyone confirm this?

      1 Reply Last reply
      0

      1/2

      10 Jun 2015, 10:48

      • Login

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