From 6ff379e0f405f72e3001f218066897b6c58677ed Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Thu, 28 Sep 2023 12:59:51 -0600 Subject: [PATCH] try to prevent future bad decisions --- theme/scoreboard.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/theme/scoreboard.mjs b/theme/scoreboard.mjs index e5fe5bd..ffc6b6e 100644 --- a/theme/scoreboard.mjs +++ b/theme/scoreboard.mjs @@ -7,7 +7,11 @@ const MaxScoreWidth = 90 /** * Returns a promise that resolves after timeout. - * + * + * This uses setTimeout instead of some other fancy thing like + * requestAnimationFrame, because who actually cares about scoreboard update + * framerate? + * * @param {Number} timeout How long to sleep (milliseconds) * @returns {Promise} */