Jump to content

Recommended Posts

Posted (edited)

I have quite a big GUI with a lot of controls and I have the feeling that the bigger it gets the more CPU it uses while doing nothing. The doc says that GUIGetMsg() idles the CPU when required, but can anybody explain to me what it does the rest of the time or how I can fine tune the GUI performance?

Here is the loop that I use in my GUI:

While $hmsg <> $GUI_EVENT_CLOSE
      $dGUIMsg = GUIGetMsg(1)
      $hmsg = $dGUIMsg[0]
      $hGUIMsg = $dGUIMsg[1]
      $hGUICtrlMsg = $dGUIMsg[2]
      
      Select
         Case $hmsg = -3 Or $hmsg = $hMenuFileExit
            GUI_Exit()
         Case $hmsg <= 0
            ContinueLoop
...
      EndSelect
   WEnd

Sorry, wrong subforum. Should be in GUI or Developers.

Edited by HighGuy

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...