Sign in to follow this  
Followers 0

Big GUI-script uses a lot of CPU

1 post in this topic

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

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

Edited by HighGuy

Share this post

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
Sign in to follow this  
Followers 0