WaitWindowOpen> very CPU hungry

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
rullbandspelare
Pro Scripter
Posts: 149
Joined: Tue Mar 23, 2004 9:11 pm

WaitWindowOpen> very CPU hungry

Post by rullbandspelare » Sun Jul 04, 2010 2:22 pm

Hi!
In version 11 I get about 50% CPU when I run a compiled machro with one line:
WaitWindowOpen>foo

If I compile the same thing in version 9 i get 0% CPU

* Is it only me that has this?
* Is there a way to fix this?
* Is it the same for version 10 and 12?

Thanks!

User avatar
JRL
Automation Wizard
Posts: 3529
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Sun Jul 04, 2010 3:52 pm

I tried versions 9, 10, 11 and 12 and got 0% CPU usage on all of them. Although for some reason under version 10 when I first start the script the CPU jumps up to 3% for about 5 seconds. The version 11 build that I have installed is 11.1.17. Perhaps that makes a difference. Which build are you running?

rullbandspelare
Pro Scripter
Posts: 149
Joined: Tue Mar 23, 2004 9:11 pm

Post by rullbandspelare » Sun Jul 04, 2010 4:06 pm

Thanks for the test!

I'm using build 11.1.23 (the latest V11) on XP.

I will install MS on another machine and try to compile there.

Thanks!

rullbandspelare
Pro Scripter
Posts: 149
Joined: Tue Mar 23, 2004 9:11 pm

Post by rullbandspelare » Sun Jul 04, 2010 4:46 pm

I tried to compile on another machine with an older V11 build. That gave me 0% CPU.
I then upgraded that machine to the last V11 build (23) and recompiled.
I now got 30% CPU!!

Could someone try with the latest V11 build.

Thanks!

rullbandspelare
Pro Scripter
Posts: 149
Joined: Tue Mar 23, 2004 9:11 pm

Post by rullbandspelare » Sun Jul 04, 2010 7:25 pm

I tried with MS V12 and it is still about 40% CPU.
On one machine I tried i got 0% CPU with the V11.1.23 and V12. But after opening about 16 windows i got about 30% CPU on that machine too.

MS V11.1.13 is ALWAYS showing 0% CPU !

rullbandspelare
Pro Scripter
Posts: 149
Joined: Tue Mar 23, 2004 9:11 pm

Post by rullbandspelare » Mon Jul 05, 2010 9:30 pm

Some more observations:
When I close the UltraVNC server on the computer ALL MS Versions drop to 0%CPU.

But the fact still remains that when You open about 16 windows at once, the CPU rises to about 30% with MS V12 and MS V11.1.23.

V11.1.10 is ALLWAYS at 0%

bnc1
Pro Scripter
Posts: 127
Joined: Sun Jul 31, 2005 5:10 pm

Post by bnc1 » Tue Jul 06, 2010 11:31 am

I had significant performance issues starting with MS 11.1.17. There was a fix applied that :

"Fixed: Window commands - if wildcard not specified child/MDI windows would not be found"

In my scripts I was using several OnEvent>WINDOW_OPEN commands. Once these commands were executed, everything slowed down with MS 11.1.17 and above and also MS 12. I had no performance issues with MS 11.1.16 and earlier.

In my case, a workaround was to replace the OnEvent>WINDOW_OPEN commands with OnEvent>WINDOW_NEWACTIVE. I had no performance issues once I made that change regardless of MS version.

I don't know if this has anything to do with your problem or not 8) ...just thought I would share my experience.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts