Jump to content

How to decrease CPU overhead?


ZoltanE
 Share

Recommended Posts

Zoltan, try replacing:

Toolbar_State()     ; Toggle "AlwaysOnTop" setting as required.
    Local $iMsg = GUIGetMsg() ; Check if an event has happened on the UI.

with

Local $iMsg = GUIGetMsg() ; Check if an event has happened on the UI.
    ; avoid unnecessary processing when no events ...
    If $iMsg = 0 Then ContinueLoop
    Toolbar_State()     ; Toggle "AlwaysOnTop" setting as required.

Of course this will only help if it actually is Toolbar_State() that eats your CPU :mellow:

edit: not tested, don't have PS

HTH,

whim

Edited by whim
Link to comment
Share on other sites

whatever Edited by MvGulik

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Link to comment
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
 Share

  • Recently Browsing   0 members

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