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 bad drawing performance

Qt bad drawing performance

Scheduled Pinned Locked Moved Unsolved General and Desktop
macoswindowsperformancedrawing
1 Posts 1 Posters 510 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.
  • V Offline
    V Offline
    vic.ju
    wrote on 20 Oct 2020, 09:17 last edited by vic.ju
    #1

    Hello ,

    I have a question about the drawing performance differences between macOS and Windows. In my application I have some animated widgets (dynamically drawn in the paint event) that needs to be redrawn at least 30 times a second. I noticed a very big difference in cpu usage between Windows and macOS, with macOS using around 25% of my CPU and that is not an acceptable resource consumption for my simple application.

    • Is the raster-engine really that much worse on macOS?
    • Will this improve with the metal implementation in Qt 6?
    • Is there any way to speed up the rendering if I have multiple animated widgets in my application?

    I profiled it and most time was spent in QBackingStore flush and it seems to be a constant bottleneck.

    I also tried to use QGLWidget and QOpenGLWidget with the QPainter, but they are not scaling as well as standard QWidget.

    Here is an example project with some animated widgets as a showcase: https://ufile.io/78fg3ne1

    I'm using Qt 5.15.1 and tried Qt 5.14.2 and Qt 6 preview also with no performance difference.
    Also take as a note, that my Windows laptop is way less powerful than my MacBook. The cpu usages down there are from the example application.

    MacOS:
    MacBook Pro 2019
    macOS 10.15.7
    2,6 GHz 6-Core Intel Core i7
    CPU usage: around 12-15%

    Windows:
    Dell XPS 9530 (from 2014)
    Windows 10 (2004)
    2,3 GHz 4-Core Intel Core i7 (4712HQ)
    CPU usage: around 6-8%

    1 Reply Last reply
    1

    1/1

    20 Oct 2020, 09:17

    • Login

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