Mouse cursor focus greatly affects performance

Mouse cursor focus greatly affects performance

Anonymous
Not applicable
383 Views
3 Replies
Message 1 of 4

Mouse cursor focus greatly affects performance

Anonymous
Not applicable
Hi,

I am working on a large number (50000) of texts, zooming in on every single one and doing some checking/drawing. Watching the screen "blinking" I noticed a great performance difference depending where cursor's focus is.

When the focus is on the black AutoCAD area and the wheel operates the zoom (sometimes I manage to change the zoom for a fraction of a sec while the macro is running) the speed is average.
As soon as I change the focus on to the menu or docked properties bar (and the wheel isn't changing the zoom) I see a great boost in the speed in the operation of the macro.

It looks like there are some "clogging-operations" performed while the focus is in the black area and my questions is if it is possible to disable them by code (I'm guessing no) and if not is it possible to move the focus onto the menu or somewhere away from the black window (by code) to speed it up (how?).

I'm using AutoCAD 2006 and there are no forms in my macro and no I don't know if changing the focus onto the macro would also work but I'd guess yes (?)

Any input on this phenomenon greatly appreciated!

regards
simon
0 Likes
384 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
is the checking/drawing done manually or by code. if it's a matter of moving the mouse do a google search for how to move mouse vba. it seems there are a number of ways, and i'm not really sure of the pros and cons of each.
0 Likes
Message 3 of 4

Anonymous
Not applicable
Yes, everything is done by code and I was hoping I could turn off whatever is slowing it down without doing the "not-so-clean" mouse moving/clicking. For example call some "BeginUpdate" method to stop the mouse cursor from being redrawn/recalculated over and over again.

simon
0 Likes
Message 4 of 4

Anonymous
Not applicable
autoregen can be turned off or autocad app could be made invisible. maybe you could wait to update everything until the program is finished... hope this helps. if everything is done by code, is zoom really necessary?
0 Likes