Results 1 to 14 of 14

Thread: increase microprocessor

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2013
    Location
    Jerada, Morroco
    Posts
    106
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    11

    Default Re: increase microprocessor

    Thank you for your answer,

    Firstly i'm sur that darwlines is responsible for increase microprocessor, because whene i comment it, there is no increase. secondly i can't optimise fucntion which call darwlines it's a function of qwt.

    I don't understand what do you want to say by number of cycle?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: increase microprocessor

    Quote Originally Posted by hassinoss View Post
    Firstly i'm sur that darwlines is responsible for increase microprocessor, because whene i comment it, there is no increase. secondly i can't optimise fucntion which call darwlines it's a function of qwt.
    Read my post again, especially the sentence starting with "Trace back to your code".

    I don't understand what do you want to say by number of cycle?
    I want to say that if some job makes the CPU execute 1000 instructions to complete and with a different algorithm it takes only 100 instructions then the second algorithm is more optimal than the first one.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,333
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    317
    Thanked 871 Times in 858 Posts

    Default Re: increase microprocessor

    secondly i can't optimise fucntion which call darwlines it's a function of qwt.
    OK, so finally you have given us the first real clue about what is actually going on. Your performance problem is not in reading datagram packets from your socket, it is what you are doing with the data after you read them.

    Apparently you are plotting this data using Qwt. When you run into a performance problem with Qwt, it almost always means you are trying to plot too much or plot it too frequently. Your processor gets completely tied up just drawing things.

    In that case, don't do it whatever way you are trying to plot data. If you are causing Qwt to replot with every new point, then don't do that. Each time you change the data Qwt is plotting, it will redraw all of the data. Plot the data in larger chunks, or set up a QTimer that causes Qwt to update the plot only once very second or every 1/2 second. In almost every case, you don't need real time updates, but you can get by with frequent updates instead.

Similar Threads

  1. How to increase progress bar
    By shivendra46d in forum Newbie
    Replies: 7
    Last Post: 11th September 2013, 13:07
  2. memory increase when use PageStack
    By jindoniit in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 13th October 2011, 11:23
  3. QSystemTrayIcon increase width
    By sagirahmed in forum General Programming
    Replies: 1
    Last Post: 28th September 2011, 15:33
  4. How to increase available RAM for Qt Creator?
    By fezvez in forum Qt Tools
    Replies: 4
    Last Post: 19th April 2011, 21:37
  5. Increase the height of titlebar, ...
    By vql in forum Qt Programming
    Replies: 2
    Last Post: 23rd March 2008, 11:28

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.