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. Performance while overlaping windows on windows taskbar
Forum Updated to NodeBB v4.3 + New Features

Performance while overlaping windows on windows taskbar

Scheduled Pinned Locked Moved Unsolved General and Desktop
performancewindows taskbarthread epochudprealtime
6 Posts 3 Posters 814 Views 2 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.
  • L Offline
    L Offline
    Lior
    wrote on 11 Aug 2020, 08:13 last edited by
    #1

    Hi,
    I have a small app that recive udp packets and show the data on sevarl forms.

    I VERIFIED that the thread is running on different thread.

    I have performance issui that i cant explain.

    Im opening 3 ui form that do nothing.
    Im reciving the udp data and do nothing with the data.
    I printing the frame number that is send in data structure.
    I calaculte the diff between the frame numbers(should be one becuase it integer that incremant every cycle).

    When i open the app, every thing is ok.

    the problem
    **when the forms is minimized, and i go to the taskbar, i put the mouse cursor on the app icon.
    The forms is shown as small windows and i can move across the forms to choose one of the forms.
    When i do this, i loose lots of Udp packets
    Why? **

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 11 Aug 2020, 19:00 last edited by
      #2

      Hi,

      Which version of Qt are you using ?
      On which version of Windows ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      L 1 Reply Last reply 11 Aug 2020, 19:39
      0
      • S SGaist
        11 Aug 2020, 19:00

        Hi,

        Which version of Qt are you using ?
        On which version of Windows ?

        L Offline
        L Offline
        Lior
        wrote on 11 Aug 2020, 19:39 last edited by Lior 8 Nov 2020, 20:20
        #3

        @SGaist
        I tried 4.8 and 5.12.
        Windows 7.
        Both the same result.

        In additional to the post.
        I see that when go over any minimized program on the taskbar i start lose packets.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          Kent-Dorfman
          wrote on 12 Aug 2020, 05:03 last edited by
          #4

          just a WAG, but check the settings in your windoze task manager. In there somewhere is a setting to balance CPU load between background and foreground tasks. See if adjusting it makes a difference. For a well written UDP listener it shouldn't matter but I don't know what your UDP service code looks like.

          L 1 Reply Last reply 12 Aug 2020, 08:50
          0
          • K Kent-Dorfman
            12 Aug 2020, 05:03

            just a WAG, but check the settings in your windoze task manager. In there somewhere is a setting to balance CPU load between background and foreground tasks. See if adjusting it makes a difference. For a well written UDP listener it shouldn't matter but I don't know what your UDP service code looks like.

            L Offline
            L Offline
            Lior
            wrote on 12 Aug 2020, 08:50 last edited by Lior 8 Dec 2020, 08:50
            #5

            @Kent-Dorfman
            Its very simple app.
            Controler thread.
            Udp thread.

            I implemnted the basics to verify if it work.
            The Controler thread open udp thread,
            In the udp thread i use QUdpsocket with connect to readyread().
            The data arrive contunusly.

            Currenylt the ui do nothing, the Controler do nothing.

            When i will be infront of computer i will add the basic code.

            All the thread is opend with moveToThread().

            1 Reply Last reply
            0
            • L Offline
              L Offline
              Lior
              wrote on 16 Aug 2020, 17:45 last edited by
              #6

              Hi,
              @SGaist
              @Kent-Dorfman

              I tried to google "QUdpsocket priority",
              I got many result that discribe my problem but without soultion.

              Many peopele have the same problem.

              My felling is there is some problem. But i dont have enough knowledge to debug it.

              1 Reply Last reply
              0

              6/6

              16 Aug 2020, 17:45

              • Login

              • Login or register to search.
              6 out of 6
              • First post
                6/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved