From a2ba494e12a78423141db73eef166af0077c18da Mon Sep 17 00:00:00 2001 From: Alex Alabuzhev Date: Tue, 24 Jan 2023 20:30:11 +0000 Subject: [PATCH] Continue 6095 --- far/changelog | 5 +++++ far/manager.cpp | 15 --------------- far/vbuild.m4 | 2 +- 3 files changed, 6 insertions(+), 16 deletions(-) diff --git a/far/changelog b/far/changelog index 3b4207c87d..b345f90cb3 100644 --- a/far/changelog +++ b/far/changelog @@ -1,3 +1,8 @@ +-------------------------------------------------------------------------------- +drkns 24.01.2023 20:29:40 +0000 - build 6097 + +1. Continue 6095. + -------------------------------------------------------------------------------- MZK 22.01.2023 09:32:07 -0800 - build 6096 diff --git a/far/manager.cpp b/far/manager.cpp index 799b2b1894..ad7d08c3e7 100644 --- a/far/manager.cpp +++ b/far/manager.cpp @@ -156,22 +156,7 @@ static bool CASHook(const Manager::Key& key) { for (;;) { - // Maximum keyboard rate is ~30 Hz (every ~33 ms). - // Ideally the delay should be slightly shorter than that, - // to not consume too many cycles, but still process the events faster than they come. - // However, mouse rate is typically higher, 125 Hz or more (every 8 ms). - // In theory, the user can do goofy things while holding CAD, - // e.g. quickly move the mouse, filling the queue faster than we read it. - - // 10 ms is picked experimentally, it seems to be a good compromise. - // TODO: consider suppressing the mouse and raising the delay to 25-30. - os::chrono::sleep_for(10ms); - INPUT_RECORD Record; - - if (!PeekInputRecord(&Record, true)) - continue; - GetInputRecord(&Record, true, true); if (Record.EventType != KEY_EVENT) diff --git a/far/vbuild.m4 b/far/vbuild.m4 index f1700f94af..3a9a0e4c21 100644 --- a/far/vbuild.m4 +++ b/far/vbuild.m4 @@ -1 +1 @@ -6096 +6097