Results 1 to 9 of 9

Thread: QWidget update get so cpu usage

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QWidget update get so cpu usage

    5000 milliseconds to do 360 steps is over 70 updates per second. Even so, I don't a see a ridiculous CPU load; about 10% of one core between my application and X with default renderer. Increasing the steps to 3 degrees and doing 120 per revolution (24fps movie rate) drops that to < 5.

  2. #2
    Join Date
    Mar 2010
    Posts
    77
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QWidget update get so cpu usage

    Quote Originally Posted by ChrisW67 View Post
    5000 milliseconds to do 360 steps is over 70 updates per second. Even so, I don't a see a ridiculous CPU load; about 10% of one core between my application and X with default renderer. Increasing the steps to 3 degrees and doing 120 per revolution (24fps movie rate) drops that to < 5.
    ok i get your point, you want me to fixed timer interval to 50 ms and change my steps for increasing my speed, i did this before but what about smooth animating? it seems like a jump not continusely rounding,
    any way my cpu load is 20% in this manner, are you sure you change your radius?

Similar Threads

  1. Using QWidget::update() from non-GUI thread
    By some_birdie in forum Qt Programming
    Replies: 3
    Last Post: 21st June 2011, 09:11
  2. QWidget::update does not work!
    By sapali in forum Qt Programming
    Replies: 8
    Last Post: 17th March 2011, 16:56
  3. Unable to update QTableWidget which is on Different QWidget from MainWindow
    By sagar.mangalwedhekar in forum Qt Programming
    Replies: 1
    Last Post: 12th March 2010, 07:07
  4. update() in QWidget
    By salmanmanekia in forum Qt Programming
    Replies: 5
    Last Post: 28th July 2008, 08:03
  5. QWidget::update() qeustion
    By tanki95 in forum Qt Programming
    Replies: 7
    Last Post: 14th March 2008, 02:29

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.