From 2fd0e1d5389da86a26e4b49b74805a2d863b18fa Mon Sep 17 00:00:00 2001 From: "Jake.Stine" Date: Sun, 1 Mar 2009 08:50:05 +0000 Subject: [PATCH] Win32: One more foopah left over from r634 needed fixing, this one caused games running at very high FPS to "freeze" for 2 second intervals at a time. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@644 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/MTGS.cpp | 2 ++ pcsx2/windows/WinThreads.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pcsx2/MTGS.cpp b/pcsx2/MTGS.cpp index 0ca6bec10e..5d0c5d6b19 100644 --- a/pcsx2/MTGS.cpp +++ b/pcsx2/MTGS.cpp @@ -455,6 +455,7 @@ void mtgsThreadObject::PostVsyncEnd( bool updategs ) m_lock_FrameQueueCounter.Lock(); m_QueuedFrames++; + //Console::Status( " >> Frame Added!" ); m_lock_FrameQueueCounter.Unlock(); SendSimplePacket( GS_RINGTYPE_VSYNC, @@ -569,6 +570,7 @@ int mtgsThreadObject::Callback() m_lock_FrameQueueCounter.Lock(); AtomicDecrement( m_QueuedFrames ); jASSUME( m_QueuedFrames >= 0 ); + //Console::Status( " << Frame Removed!" ); m_lock_FrameQueueCounter.Unlock(); if( PAD1update != NULL ) PAD1update(0); diff --git a/pcsx2/windows/WinThreads.cpp b/pcsx2/windows/WinThreads.cpp index 9e53802ca8..036b842365 100644 --- a/pcsx2/windows/WinThreads.cpp +++ b/pcsx2/windows/WinThreads.cpp @@ -63,7 +63,7 @@ namespace Threading __forceinline void Sleep( int ms ) { - ::Sleep( 1000*ms ); + ::Sleep( ms ); } // For use in spin/wait loops, Acts as a hint to Intel CPUs and should, in theory