From 57dd23c7dd2fd0bfee408870fca89bd57610194c Mon Sep 17 00:00:00 2001 From: cancel Date: Wed, 1 Jan 2020 15:52:12 +0900 Subject: [PATCH] Add comment --- tui_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tui_main.c b/tui_main.c index db2cc62..95ce430 100644 --- a/tui_main.c +++ b/tui_main.c @@ -2281,6 +2281,11 @@ int main(int argc, char** argv) { doupdate(); double secs_to_d = ged_secs_to_deadline(&ged_state); int new_timeout; + // These values are tuned to work OK with the normal scheduling behavior + // on Linux, Mac, and Windows. Of course, there's no guarantee about how + // the scheduler will work so if you are using a modified kernel or + // something, this might be sub-optimal. But there's not really much we + // can do about it! if (strict_timing) { if (secs_to_d < ms_to_sec(0.5)) { new_timeout = 0;