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. Increase QT code performance
Forum Updated to NodeBB v4.3 + New Features

Increase QT code performance

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 484 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.
  • S Offline
    S Offline
    s002wjh
    wrote on last edited by
    #1

    Is there ways to increase the performance of QT main thread without going to multithreading

    For example telling Linux to run QT in multiple CPU concurrently or run QT as multiple processes

    All my code are widgets class, to do multithreading I need move a lot code around into Qobject. So I'm looking for easier performance methods

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

      Hi
      You cant run anything QWidget concurrent so nope.
      Not really.
      What part of the code is slow?

      S 1 Reply Last reply
      1
      • mrjjM mrjj

        Hi
        You cant run anything QWidget concurrent so nope.
        Not really.
        What part of the code is slow?

        S Offline
        S Offline
        s002wjh
        wrote on last edited by
        #3

        @mrjj

        So basically the only way to make run faster is to move my worker functions that calculate the pixel position. Put in Qobject and create thread for it?

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          hi
          It really depends on the code and if you then can run multiple
          calculations concurrently.
          Just moving a big fat loop to a QObject+qthread wont make it
          run faster but perhaps make UI more responsive.

          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