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. Rendering performance problems on iMac with Retina 5K
Forum Updated to NodeBB v4.3 + New Features

Rendering performance problems on iMac with Retina 5K

Scheduled Pinned Locked Moved General and Desktop
qgraphicsviewmacretinaperformancerendering
29 Posts 9 Posters 17.8k Views 5 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.
  • D Offline
    D Offline
    DmitryGrig
    wrote on 11 Mar 2017, 15:25 last edited by
    #17

    Hi PetrM.
    Please update the link to your "working example" - it reports "File Not Found" now.
    I'd like to reproduce your results on my MacBook.

    P 1 Reply Last reply 11 Mar 2017, 19:27
    0
    • D DmitryGrig
      11 Mar 2017, 15:25

      Hi PetrM.
      Please update the link to your "working example" - it reports "File Not Found" now.
      I'd like to reproduce your results on my MacBook.

      P Offline
      P Offline
      PetrM
      wrote on 11 Mar 2017, 19:27 last edited by PetrM 3 Nov 2017, 19:29
      #18

      @DmitryGrig
      The link above is working now. Or just click here.

      1 Reply Last reply
      0
      • S ShikiSuen
        6 Dec 2016, 06:59

        Update: @mrjj did not tell me anything regarding the difference between Qt QML and Qt Widgets.

        Thanks to some answers from experts on Zhihu. Now the reason of the performance issue has been found out: Qt Widgets is a deprecated approach which never consults GPU for UI graphic manipulation.

        The solution is simple: Use Qt Quick + QML instead.

        V Offline
        V Offline
        Vadi2
        wrote on 11 Mar 2017, 20:57 last edited by
        #19

        @ShikiSuen said in Rendering performance problems on iMac with Retina 5K:

        Update: @mrjj did not tell me anything regarding the difference between Qt QML and Qt Widgets.

        Thanks to some answers from experts on Zhihu. Now the reason of the performance issue has been found out: Qt Widgets is a deprecated approach which never consults GPU for UI graphic manipulation.

        The solution is simple: Use Qt Quick + QML instead.

        You can't be serious. That's equivalent to tearing down your house and rebuilding it from the foundation. That's not a "simple" solution.


        I too have experienced QWidgets - in my case with QLabel poor rendering performance, and strangely enough, Hackintosh in Virtual box runs faster than better specced native hardware.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jcelerier
          wrote on 20 Jun 2017, 08:30 last edited by
          #20

          @mrjj @ShikiSuen there is a real performance problem not with QWidgets, but with QWidgets's macOS implementation. I'm dual booting macOS/Linux on a retina macbook, and all the QWidgets applications I use, QtCreator, Clementine, Wireshark, (and the ones I develop) are much more fluid and smooth under Linux than MacOS even though it's the same hardware and screen resolution.

          M 1 Reply Last reply 20 Jun 2017, 08:49
          0
          • J jcelerier
            20 Jun 2017, 08:30

            @mrjj @ShikiSuen there is a real performance problem not with QWidgets, but with QWidgets's macOS implementation. I'm dual booting macOS/Linux on a retina macbook, and all the QWidgets applications I use, QtCreator, Clementine, Wireshark, (and the ones I develop) are much more fluid and smooth under Linux than MacOS even though it's the same hardware and screen resolution.

            M Offline
            M Offline
            mrjj
            Lifetime Qt Champion
            wrote on 20 Jun 2017, 08:49 last edited by
            #21

            @jcelerier
            What resolution was it ?

            J 1 Reply Last reply 24 Aug 2017, 15:35
            0
            • M mrjj
              20 Jun 2017, 08:49

              @jcelerier
              What resolution was it ?

              J Offline
              J Offline
              jcelerier
              wrote on 24 Aug 2017, 15:35 last edited by
              #22

              @mrjj (sorry for the long response, didn't get any mail notification)

              I'm on 2880*1800 resolution.

              1 Reply Last reply
              0
              • J Offline
                J Offline
                jcelerier
                wrote on 24 Aug 2017, 15:40 last edited by jcelerier
                #23

                If anyone's interested I did a pass through Xcode's performance tools and put the trace here :

                https://bugreports.qt.io/browse/QTBUG-61384?focusedCommentId=361794&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-361794

                as you can see, roughly 25% of the time is spent in CGContextDrawImage. This was with QtCreator, but I have similar findings when benchmarking my app.

                S 1 Reply Last reply 20 Feb 2018, 22:36
                1
                • M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 24 Aug 2017, 15:51 last edited by
                  #24

                  Super.
                  Hopefully a fix comes out of it if possible.

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    linoleo
                    wrote on 6 Dec 2017, 12:27 last edited by
                    #25

                    I experience intolerably poor graphics performance on Macs with QtWidgets in the following constellation:

                    • Qt 5, any version - Qt 4 on the same hardware is fine.
                    • macOS 10.10 and up - 10.9 or older on the same hardware is fine.
                    • not limited to retina displays, though obviously worse on them.

                    This is becoming a major PITA as it means my cross-platform app remains stuck at Qt 4.8.6 / Quick 1.1 on macOS, vs. Qt 5.6 / Quick 2.3 everywhere else.

                    L 1 Reply Last reply 11 Dec 2017, 10:53
                    1
                    • L linoleo
                      6 Dec 2017, 12:27

                      I experience intolerably poor graphics performance on Macs with QtWidgets in the following constellation:

                      • Qt 5, any version - Qt 4 on the same hardware is fine.
                      • macOS 10.10 and up - 10.9 or older on the same hardware is fine.
                      • not limited to retina displays, though obviously worse on them.

                      This is becoming a major PITA as it means my cross-platform app remains stuck at Qt 4.8.6 / Quick 1.1 on macOS, vs. Qt 5.6 / Quick 2.3 everywhere else.

                      L Offline
                      L Offline
                      linoleo
                      wrote on 11 Dec 2017, 10:53 last edited by
                      #26

                      To be precise, by Qt5 widgets being "fine" on macOS 10.9 or older I mean that the lag is "only" ~50ms, not seconds. I suspect (though can't test right now) that adding a GL widget (cf QTBUG-61384) might get me in the same 50ms ballpark on newer versions of macOS, but that's still too much for my software (a strobe tuner, which needs fast rendering).

                      @jcelerier Right on, the last Qt version with decent QWidgets rendering performance on macOS was 4.8 with the raster engine. Qt5 widgets have been unusable for real-time graphics on Macs from the start, and it hasn't gotten any better. @ShikiSuen Steinberg has my full sympathies, I know how it feels like.

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 11 Dec 2017, 12:16 last edited by
                        #27

                        @linoleo Did you check the latest 5.9 or 5.10 ? The fixe for this bug report has been merged for these two branches.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        J 1 Reply Last reply 20 Feb 2018, 11:17
                        0
                        • S SGaist
                          11 Dec 2017, 12:16

                          @linoleo Did you check the latest 5.9 or 5.10 ? The fixe for this bug report has been merged for these two branches.

                          J Offline
                          J Offline
                          jpalmer
                          wrote on 20 Feb 2018, 11:17 last edited by
                          #28

                          @SGaist Which bug numbers were those?

                          1 Reply Last reply
                          0
                          • J jcelerier
                            24 Aug 2017, 15:40

                            If anyone's interested I did a pass through Xcode's performance tools and put the trace here :

                            https://bugreports.qt.io/browse/QTBUG-61384?focusedCommentId=361794&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-361794

                            as you can see, roughly 25% of the time is spent in CGContextDrawImage. This was with QtCreator, but I have similar findings when benchmarking my app.

                            S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 20 Feb 2018, 22:36 last edited by
                            #29

                            @jcelerier said in Rendering performance problems on iMac with Retina 5K:

                            https://bugreports.qt.io/browse/QTBUG-61384?focusedCommentId=361794&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-361794
                            .

                            That one.

                            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
                            1

                            • Login

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