From 4bf1aef3e6e828db904ff0b47a3f694c1de80cce Mon Sep 17 00:00:00 2001 From: Joshua Fuhs Date: Sat, 23 Jun 2012 17:53:25 -0400 Subject: [PATCH] Speed up view drawing by turning down the window delay time --- src/Monitor.ahk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Monitor.ahk b/src/Monitor.ahk index 1cd2214..c7bb6d1 100644 --- a/src/Monitor.ahk +++ b/src/Monitor.ahk @@ -73,6 +73,10 @@ Monitor_activateView(v) { Monitor_#%m%_aView_#1 := v Manager_hideShow := True + ; Most of the operations here are dispersed to multiple _different_ windows. + ; Delays in this part of the code are extremely noticeable and the users + ; do a lot of view switching. + SetWinDelay, 0 StringTrimRight, wndIds, View_#%m%_#%aView%_wndIds, 1 Loop, PARSE, wndIds, `; If Not (Manager_#%A_LoopField%_tags & (1 << v - 1)) @@ -83,7 +87,7 @@ Monitor_activateView(v) { StringTrimRight, wndIds, View_#%m%_#%v%_wndIds, 1 Loop, PARSE, wndIds, `; WinShow, ahk_id %A_LoopField% - + SetWinDelay, 10 Manager_hideShow := False Bar_updateView(m, aView)