mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
Disabled thread synchronization check so the speed should be back, and theoretically should be even faster than r4698.
Hope it is safe to do so. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4701 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
84e6070e61
commit
b0ef811786
2 changed files with 9 additions and 8 deletions
|
@ -137,8 +137,6 @@ void Fifo_EnterLoop(const SVideoInitialize &video_initialize)
|
|||
VideoFifo_CheckEFBAccess();
|
||||
VideoFifo_CheckSwapRequest();
|
||||
|
||||
CommandProcessor::FifoCriticalEnter();
|
||||
|
||||
// check if we are able to run this buffer
|
||||
if (_fifo.bFF_GPReadEnable && _fifo.CPReadWriteDistance && !_fifo.bFF_Breakpoint)
|
||||
{
|
||||
|
@ -153,6 +151,8 @@ void Fifo_EnterLoop(const SVideoInitialize &video_initialize)
|
|||
u32 readPtr = _fifo.CPReadPointer;
|
||||
u8 *uData = video_initialize.pGetMemoryPointer(readPtr);
|
||||
|
||||
CommandProcessor::FifoCriticalEnter();
|
||||
|
||||
// It looks like even in BP mode, we still can send all the chunks we have
|
||||
/*
|
||||
// if we are on BP mode we must send 32B chunks to Video plugin for BP checking
|
||||
|
@ -194,6 +194,9 @@ void Fifo_EnterLoop(const SVideoInitialize &video_initialize)
|
|||
|
||||
Common::AtomicStore(_fifo.CPReadPointer, readPtr);
|
||||
Common::AtomicAdd(_fifo.CPReadWriteDistance, -distToSend);
|
||||
|
||||
CommandProcessor::FifoCriticalLeave();
|
||||
|
||||
/*
|
||||
video_initialize.pPeekMessages();
|
||||
if (g_ActiveConfig.bEFBAccessEnable)
|
||||
|
@ -208,8 +211,6 @@ void Fifo_EnterLoop(const SVideoInitialize &video_initialize)
|
|||
{
|
||||
Common::YieldCPU();
|
||||
}
|
||||
|
||||
CommandProcessor::FifoCriticalLeave();
|
||||
}
|
||||
fifo_exit_event.Set();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue