Keep long refreshes out of the way of typing
Tracing key presses with eight windows open and a busy feed showed the UI thread running 36 tasks of 8 ms or more in 25 seconds (up to 93 ms), nearly all of them the Available window replacing its grid rows. A key pressed meanwhile waits for the task. - OperatorActivity records the last key press. The Available, Score, Telnet, Grayline and Statistics refreshes wait until there has been no key press for 800 ms. - Bandmap no longer holds its lock while it works out spot lifetimes or spot keys, so the entry window's lookups do not wait on it. - The bandmap view stops drawing labels pushed below its edge. Tasks of 8 ms or more dropped from 36 (1,259 ms in all) to 8 (205 ms). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -43,7 +43,7 @@ public sealed partial class GraylineWindow : RefreshableWindow
|
||||
|
||||
public override void RefreshFromSession()
|
||||
{
|
||||
later ??= new Throttled(TimeSpan.FromSeconds(15), Refresh);
|
||||
later ??= new Throttled(TimeSpan.FromSeconds(15), Refresh, holdWhileTyping: true);
|
||||
later.Request();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user