Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Performance while overlaping windows on windows taskbar

    General and Desktop
    performance windows taskbar thread epoch udp realtime
    3
    6
    327
    Loading More Posts
    • 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
      Lior last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • L
          Lior @SGaist last edited by Lior

          @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 Reply Quote 0
          • Kent-Dorfman
            Kent-Dorfman last edited by

            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 Reply Quote 0
            • L
              Lior @Kent-Dorfman last edited by Lior

              @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 Reply Quote 0
              • L
                Lior last edited by

                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 Reply Quote 0
                • First post
                  Last post