mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
experimental multi-core support on linux
- Input seems not to work for some reason (please check and tell me if it's not only me) - Skip frames is not supported Report to me of other problems git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@740 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
a1837662a0
commit
dc3fd905c9
4 changed files with 26 additions and 4 deletions
|
@ -181,7 +181,7 @@ void Fifo_EnterLoop(const SVideoInitialize &video_initialize)
|
|||
#if defined(THREAD_VIDEO_WAKEUP_ONIDLE) && defined(_WIN32)
|
||||
while(_fifo.CPReadWriteDistance > 0)
|
||||
#else
|
||||
int count = 200;
|
||||
int count = 200;
|
||||
while(_fifo.CPReadWriteDistance > 0 && count)
|
||||
#endif
|
||||
{
|
||||
|
@ -200,12 +200,17 @@ void Fifo_EnterLoop(const SVideoInitialize &video_initialize)
|
|||
u8 *uData = video_initialize.pGetMemoryPointer(_fifo.CPReadPointer);
|
||||
#ifdef _WIN32
|
||||
EnterCriticalSection(&_fifo.sync);
|
||||
#else
|
||||
_fifo.sync->Enter();
|
||||
#endif
|
||||
_fifo.CPReadPointer += 32;
|
||||
Video_SendFifoData(uData);
|
||||
#ifdef _WIN32
|
||||
InterlockedExchangeAdd((LONG*)&_fifo.CPReadWriteDistance, -32);
|
||||
LeaveCriticalSection(&_fifo.sync);
|
||||
#else
|
||||
_fifo.CPReadWriteDistance -= 32;
|
||||
_fifo.sync->Leave();
|
||||
#endif
|
||||
// increase the ReadPtr
|
||||
if (_fifo.CPReadPointer >= _fifo.CPEnd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue