From 779fe13e62e6c0e9d591f2cb33d00a89191dd6a6 Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Mon, 26 Sep 2022 23:41:56 +0200 Subject: VideoCommon: Update EFB peek cache on draw done and tokens Massively improves performance in Mario Galaxy on Android. --- Source/Core/VideoCommon/Fifo.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Source/Core/VideoCommon/Fifo.cpp') diff --git a/Source/Core/VideoCommon/Fifo.cpp b/Source/Core/VideoCommon/Fifo.cpp index 5b31589e82..faea454147 100644 --- a/Source/Core/VideoCommon/Fifo.cpp +++ b/Source/Core/VideoCommon/Fifo.cpp @@ -26,6 +26,7 @@ #include "VideoCommon/CPMemory.h" #include "VideoCommon/CommandProcessor.h" #include "VideoCommon/DataReader.h" +#include "VideoCommon/FramebufferManager.h" #include "VideoCommon/OpcodeDecoding.h" #include "VideoCommon/VertexLoaderManager.h" #include "VideoCommon/VertexManagerBase.h" @@ -415,6 +416,7 @@ void RunGpuLoop() // The fifo is empty and it's unlikely we will get any more work in the near future. // Make sure VertexManager finishes drawing any primitives it has stored in it's buffer. g_vertex_manager->Flush(); + g_framebuffer_manager->RefreshPeekCache(); } }, 100); -- cgit v1.2.3