From d6976dd40c280fa43c4441d55a74aae51b037cb9 Mon Sep 17 00:00:00 2001 From: Ben Anderson Date: Tue, 5 Apr 2005 02:55:13 +0000 Subject: [PATCH] Don't use a heartbeat in the worker thread. Many platforms' timed event wait functions (most notoriously Linux) spin instead of blocking, causing performance hell (this is the source of the issues recently uncovered by LowLevelWindow_X11). This means we should avoid heartbeats in worker threads whenever possible. Strangely, this also fixed an obscure deadlock on quit... --- stepmania/src/MemoryCardManager.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/stepmania/src/MemoryCardManager.cpp b/stepmania/src/MemoryCardManager.cpp index 994ddcd280..bd71bc9eb1 100644 --- a/stepmania/src/MemoryCardManager.cpp +++ b/stepmania/src/MemoryCardManager.cpp @@ -110,7 +110,6 @@ ThreadedMemoryCardWorker::ThreadedMemoryCardWorker(): { m_pDriver = MakeMemoryCardDriver(); m_MountThreadState = detect_and_mount; - SetHeartbeat( 0.1f ); StartThread(); }