Jump to content

Big GUI-script uses a lot of CPU

Recommended Posts

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]
         Case $hmsg = -3 Or $hmsg = $hMenuFileExit
         Case $hmsg <= 0

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

Edited by HighGuy
Link to post
Share on other sites

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...