Targeting elements is pretty fast, but it could be smoother and take up less resources. From my initial investigation, the call to UIAutomation.ElementFromPoint was not the limiting factor as initially thought, the HoverWatcher seemed to be the culprit. Switching to a single thread which polls the mouse positions every x ms would probably be more efficient.
Targeting elements is pretty fast, but it could be smoother and take up less resources. From my initial investigation, the call to UIAutomation.ElementFromPoint was not the limiting factor as initially thought, the HoverWatcher seemed to be the culprit. Switching to a single thread which polls the mouse positions every x ms would probably be more efficient.