Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Speed up QT execution
Forum Updated to NodeBB v4.3 + New Features

Speed up QT execution

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 4 Posters 427 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.
  • K Offline
    K Offline
    kapabahwuk
    wrote on last edited by
    #1

    Having some calculations made by OpenCV into QT IDE...
    Is there any possibility to increase expectation time?
    Maybe there are some commands or smth?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mchinand
      wrote on last edited by mchinand
      #2

      Make sure you are using a Release build, not a Debug build. Most of the computation time is probably (hopefully) done within your OpenCV functions but it would be useful to add some timing output to confirm this. If that's the case, you will get more relevant help in an OpenCV forum. If you think the slow parts of your code are Qt-related, give some details as to what exactly your code is doing.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kapabahwuk
        wrote on last edited by
        #3

        Right, when I make any change and save - it builds for one minute, then If I just execute it without any change it works instantly.
        Then, If I make any change again, builds a lot
        Maybe there is a way to avoid this long building?

        jsulmJ J.HilkJ 2 Replies Last reply
        0
        • K kapabahwuk

          Right, when I make any change and save - it builds for one minute, then If I just execute it without any change it works instantly.
          Then, If I make any change again, builds a lot
          Maybe there is a way to avoid this long building?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @kapabahwuk said in Speed up QT execution:

          Then, If I make any change again, builds a lot

          What do you change (which files) and what is rebuild then?
          How fast is your machine (CPU/RAM)?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • K kapabahwuk

            Right, when I make any change and save - it builds for one minute, then If I just execute it without any change it works instantly.
            Then, If I make any change again, builds a lot
            Maybe there is a way to avoid this long building?

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #5

            @kapabahwuk
            depending on your compiler, either pump up the spinbox for parallel jobs:
            2e299166-a46e-4868-9fdb-c67cf89c2fed-image.png

            or add the argument directly to the make call:
            87d71796-45a3-46d3-9183-cab073d238af-image.png

            make sure not to exceed the number of your actual CPU cores (virtual, not "real" cores)


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            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