HighGuy Posted November 11, 2005 Posted November 11, 2005 (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 November 11, 2005 by HighGuy
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now