summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/Fifo.cpp
diff options
context:
space:
mode:
authorJohn Peterson <jpeterson57@gmail.com>2009-02-22 06:47:27 +0000
committerJohn Peterson <jpeterson57@gmail.com>2009-02-22 06:47:27 +0000
commit42101f0ce619c7c7eefe961b2c0a29fa0de7ce93 (patch)
treec94526fd27e4c366dbd4bc7515b04c60c2a223d7 /Source/Core/VideoCommon/Src/Fifo.cpp
parent2a946355230c49ed8d5d421029cfb45d7f2c6df0 (diff)
OpenGL: Added a Setup.h option to avoid another annoying WaitForSingleObject() hanging. WaitForSingleObject() in Fifo_ExitLoop() would hang the thread it was waiting for when it arrived at Callback_PeekMessages(). Can't these waiting loops be replaced by a timer somehow? They are pretty ineffective if they hang the loop they are waiting for all the time.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2359 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/Fifo.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/Fifo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/Fifo.cpp b/Source/Core/VideoCommon/Src/Fifo.cpp
index b3a5ee00e6..8c2940f9af 100644
--- a/Source/Core/VideoCommon/Src/Fifo.cpp
+++ b/Source/Core/VideoCommon/Src/Fifo.cpp
@@ -20,6 +20,7 @@
#include "MemoryUtil.h"
#include "Thread.h"
#include "OpcodeDecoding.h"
+#include "Setup.h"
#include "Fifo.h"
@@ -107,7 +108,7 @@ void Fifo_EnterLoop(const SVideoInitialize &video_initialize)
while (fifoStateRun)
{
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(SETUP_AVOID_OPENGL_SCREEN_MESSAGE_HANG)
video_initialize.pPeekMessages();
#endif
if (_fifo.CPReadWriteDistance == 0)