Increase QT code performance



  • 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


  • Qt Champions 2017

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



  • @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?


  • Qt Champions 2017

    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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.