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
This commit is contained in:
Jake.Stine 2009-03-01 08:50:05 +00:00
parent 2270ba4eee
commit 2fd0e1d538
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

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