When I use WaitKeyDown, the CPU utilization goes to 100%. Needless to say, this is not good for performance of other applications.
Is there a workaround or a fix for this?
I can be contacted at:
[email protected]
I am using the latest version - 7.2.036
Thanks!
WaitKeyDown busy-waits
Moderators: JRL, Dorian (MJT support)
Well. It is a tight loop. Inside which it does pretty much nothing. So you'd expect this. But will look and see if there is any way to avoid this. Probably the only way would be to slow down the loop and have it only check for the key press at millisecond intervals.
MJT Net Support
[email protected]
[email protected]
-
- Newbie
- Posts: 12
- Joined: Wed Mar 02, 2005 9:32 pm
Hi,
We've improved things in the latest release (7.3.10.5 released today) by forcing the app to sleep for 250 milliseconds at each loop iteration. This makes a significant improvement. This should actually have been done when the function was created but it somehow got overlooked. All loops within Macro Scheduler should yield to the processor within each loop iteration to ensure it doesn't lock up the CPU.
We've improved things in the latest release (7.3.10.5 released today) by forcing the app to sleep for 250 milliseconds at each loop iteration. This makes a significant improvement. This should actually have been done when the function was created but it somehow got overlooked. All loops within Macro Scheduler should yield to the processor within each loop iteration to ensure it doesn't lock up the CPU.
MJT Net Support
[email protected]
[email protected]