Results 1 to 4 of 4

Thread: Reducing CPU load to min. when Mouse Moves

  1. #1
    Join Date
    Jun 2006
    Location
    San Diego, USA
    Posts
    95
    Thanks
    9
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Reducing CPU load to min. when Mouse Moves

    Hi all,

    How to reduce CPU load to minimum when Mouse moves in Qt-4.2 Application?

    Thanks & Regards,
    Arun

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Reducing CPU load to min. when Mouse Moves

    Have you enabled mouse tracking? What actions do you take when mouse moves?
    J-P Nurmi

  3. #3
    Join Date
    Jun 2006
    Location
    San Diego, USA
    Posts
    95
    Thanks
    9
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Reducing CPU load to min. when Mouse Moves

    I have a GUI design where it has some tabs and widgets. The widgets are used for just to display some calculated values.
    I am not using any mouse events / mouse tracking.
    But I can see that whenever I move mouse to click on some tab/widget the CPU load increases between 30-50%, otherwise it is quite normal within 5-7%. I am trying to reduce this CPU load to min. when mouse moves.
    How can I reduce the CPU load to min. whenever mouse moves?

    Thanks & Regards,
    Arun

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Reducing CPU load to min. when Mouse Moves

    Try [WIKI]profiling[/WIKI] your application to see where's the bottleneck.
    J-P Nurmi

Similar Threads

  1. Reducing latency in mouse moves
    By PhilFM in forum Qt Programming
    Replies: 4
    Last Post: 6th September 2007, 09:38

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.