From db02c19a0d37d7f9dfdf719b9f47dbdd779c2644 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Tue, 11 May 2021 18:16:34 -0600 Subject: [PATCH] "Fix" the Lynx TWS of Southpole by extending the "out of input" threshold a bit --- js/headless/bulktest.mjs | 4 +++- js/main.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/js/headless/bulktest.mjs b/js/headless/bulktest.mjs index e33f177..90dedc0 100644 --- a/js/headless/bulktest.mjs +++ b/js/headless/bulktest.mjs @@ -207,7 +207,9 @@ async function test_pack(pack, ruleset, level_filter = null) { record_result('failure', "Lost", true); break; } - else if (level.tic_counter >= replay.duration + 200) { + else if (level.tic_counter >= replay.duration + 220) { + // This threshold of 11 seconds was scientifically calculated by noticing that + // the TWS of Southpole runs 11 seconds past its last input record_result('short', "Out of input", true); break; } diff --git a/js/main.js b/js/main.js index 57da8d3..943dbba 100644 --- a/js/main.js +++ b/js/main.js @@ -3303,7 +3303,9 @@ class PackTestDialog extends DialogOverlay { record_result('failure', "Lost", true); break; } - else if (level.tic_counter >= replay.duration + 200) { + else if (level.tic_counter >= replay.duration + 220) { + // This threshold of 11 seconds was scientifically calculated by noticing + // that the TWS of Southpole runs 11 seconds past its last input record_result('short', "Out of input", true); break; }