From c1ca3ae96c586d3607bb78f2826bd4bb17a73742 Mon Sep 17 00:00:00 2001 From: "XTra.KrazzY" Date: Mon, 14 Jun 2010 20:08:31 +0000 Subject: [PATCH] Optimized FIFO gather a tiny bit. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5696 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/HW/GPFifo.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/Core/Core/Src/HW/GPFifo.cpp b/Source/Core/Core/Src/HW/GPFifo.cpp index 28ba18da1f..babeaa9320 100644 --- a/Source/Core/Core/Src/HW/GPFifo.cpp +++ b/Source/Core/Core/Src/HW/GPFifo.cpp @@ -42,7 +42,9 @@ namespace GPFifo u8 GC_ALIGNED32(m_gatherPipe[GATHER_PIPE_SIZE*16]); //more room, for the fastmodes // pipe counter -u32 m_gatherPipeCount = 0; +u32 m_gatherPipeCount = 0; + +Common::TVideo_GatherPipeBursted m_GatherPipeBursted = NULL; void DoState(PointerWrap &p) { @@ -53,6 +55,7 @@ void DoState(PointerWrap &p) void Init() { ResetGatherPipe(); + m_GatherPipeBursted = CPluginManager::GetInstance().GetVideo()->Video_GatherPipeBursted; } bool IsEmpty() @@ -89,8 +92,8 @@ void STACKALIGN CheckGatherPipe() ProcessorInterface::Fifo_CPUWritePointer += GATHER_PIPE_SIZE; } - // TODO store video plugin pointer - CPluginManager::GetInstance().GetVideo()->Video_GatherPipeBursted(); + // Call pre-fetched pointer + m_GatherPipeBursted(); } // move back the spill bytes