shithub: cstory

Download patch

ref: 92d50ae187405170dcff6c3c9ef24b39e1be5bd2
parent: e2b5809990d71f549adb023dc55d70bed5c4d5f0
author: Clownacy <Clownacy@users.noreply.github.com>
date: Thu Sep 3 22:35:31 EDT 2020

Comment on a weird-ass Sleep call

--- a/src/Organya.cpp
+++ b/src/Organya.cpp
@@ -1041,6 +1041,11 @@
 	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);
 }