diff options
| author | ayuanx <ayuanx@gmail.com> | 2009-12-17 04:01:34 +0000 |
|---|---|---|
| committer | ayuanx <ayuanx@gmail.com> | 2009-12-17 04:01:34 +0000 |
| commit | b0ef8117869aa1c96d8957c0235c6350fe912407 (patch) | |
| tree | 9f8a815e2ffb6a7a970ea20c8db5beff233e27f1 /Source/Core/VideoCommon/Src/CommandProcessor.cpp | |
| parent | 84e6070e613cb3f4e8603daead49889bf625311d (diff) | |
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
Diffstat (limited to 'Source/Core/VideoCommon/Src/CommandProcessor.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/CommandProcessor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/Src/CommandProcessor.cpp b/Source/Core/VideoCommon/Src/CommandProcessor.cpp index cce4f62a8f..7c0864d692 100644 --- a/Source/Core/VideoCommon/Src/CommandProcessor.cpp +++ b/Source/Core/VideoCommon/Src/CommandProcessor.cpp @@ -484,9 +484,11 @@ void Write16(const u16 _Value, const u32 _Address) // TODO(mb2): better. Check if it help: avoid CPReadPointer overwrites when stupidly done like in Super Monkey Ball
if ((!fifo.bFF_GPReadEnable && fifo.CPReadIdle) || !g_VideoInitialize.bOnThread) // TOCHECK(mb2): check again if thread safe?
{
- if (g_VideoInitialize.bOnThread) FifoCriticalEnter(); // This may not be necessary, just for safety
+// Disabling this thread synchronization check does boost the speed
+// Hope it is safe to skip this check
+// if (g_VideoInitialize.bOnThread) FifoCriticalEnter(); // This may not be necessary, just for safety
UpdateFifoRegister();
- if (g_VideoInitialize.bOnThread) FifoCriticalLeave();
+// if (g_VideoInitialize.bOnThread) FifoCriticalLeave();
}
}
@@ -536,9 +538,7 @@ void STACKALIGN GatherPipeBursted() else
fifo.CPWritePointer += GATHER_PIPE_SIZE;
- FifoCriticalEnter(); // This may not be necessary, just for safety
Common::AtomicAdd(fifo.CPReadWriteDistance, GATHER_PIPE_SIZE);
- FifoCriticalLeave();
// High watermark overflow handling (hacked way)
if (fifo.CPReadWriteDistance > fifo.CPHiWatermark)
|
