From da088e62ad25dc53e20230c84b36c573bd95c46a Mon Sep 17 00:00:00 2001 From: "memberTwo.mb2" Date: Wed, 24 Sep 2008 10:52:58 +0000 Subject: DC idle skipping part 2: video thread is woken up when "OnIdle". For testing purpose only (I can't test with lots of games) because it may break some sync. Besides, I'm not satisfied with the way things are done. So just uncomment "//#define THREAD_VIDEO_WAKEUP_ONIDLE" in thread.h in order to test it. Works fine with movies, 2D and simple 3D in ZWW at least. If it's ok I'll clean up the code. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@658 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/Thread.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/Core/Common/Src/Thread.cpp') diff --git a/Source/Core/Common/Src/Thread.cpp b/Source/Core/Common/Src/Thread.cpp index 18f0763b51..716f79ff55 100644 --- a/Source/Core/Common/Src/Thread.cpp +++ b/Source/Core/Common/Src/Thread.cpp @@ -28,6 +28,10 @@ #include "Thread.h" +#if defined(THREAD_VIDEO_WAKEUP_ONIDLE) && defined(_WIN32) +HANDLE g_hEventOnIdle=NULL; +#endif + namespace Common { #ifdef _WIN32 -- cgit v1.2.3