From 92d50ae187405170dcff6c3c9ef24b39e1be5bd2 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Fri, 4 Sep 2020 02:35:31 +0100 Subject: [PATCH] Comment on a weird-ass Sleep call --- src/Organya.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Organya.cpp b/src/Organya.cpp index d60035bb..4d4ff1cb 100644 --- a/src/Organya.cpp +++ b/src/Organya.cpp @@ -1041,6 +1041,11 @@ void StopOrganyaMusic(void) memset(key_on, 0, sizeof(key_on)); memset(key_twin, 0, sizeof(key_twin)); + // Put the main thread to sleep for 100 milliseconds... but why? + // Really, what's the point? All this does is cause an annoying + // stutter when a new song loads. + // I'd guess it avoids a race-condition with the Organya thread, + // but the earlier QuitMMTimer call already disables it. Sleep(100); }