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...

This commit is contained in:
Ben Anderson
2005-04-05 02:55:13 +00:00
parent fb5ece51fd
commit d6976dd40c
-1
View File
@@ -110,7 +110,6 @@ ThreadedMemoryCardWorker::ThreadedMemoryCardWorker():
{
m_pDriver = MakeMemoryCardDriver();
m_MountThreadState = detect_and_mount;
SetHeartbeat( 0.1f );
StartThread();
}